Skip to content

Instantly share code, notes, and snippets.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>
<body>
<table width="35%" border="1" align="center">
<tr>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>
<body>
<table width="35%" border="1" align="center">
<tr>
mysql> ALTER TABLE gib_mailcamp_emails MODIFY confirmed NOT NULL;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NOT NULL' at line 1
ALTER TABLE gib_mailcamp_emails MODIFY confirmed NOT NULL;
<?php
class Encoder
{
const ENCODE_STYLE_HTML = 0 ;
const ENCODE_STYLE_JAVASCRIPT = 1 ;
const ENCODE_STYLE_CSS = 2 ;
const ENCODE_STYLE_URL = 3 ;
const ENCODE_STYLE_URL_SPECIAL = 4 ;
#!/bin/bashi
count=0;
for i in $(cat /home/donkarlo/.profile); do
count=$((count+1))
echo "Word $count ($i) contains $(echo -n $i | wc -c) characters"
done
<VirtualHost *:80>
ServerAdmin webmaster@localhost
serverName www.mynewvhost.com
ServerAlias mynewvhost.com
DocumentRoot /var/www/mynewvhost
DocumentRoot /var/www
<Directory />
Options FollowSymLinks
Composability
In your interfaces, try to use the simplest data structures that work and make
functions do a single, clear thing—if possible, they should be pure functions
(see Chapter 2).
For example, it is not uncommon for modules to provide their own
array-like collection objects, with their own interface for extracting elements
from such an object, and return those from functions that return collections
of things. Such objects cannot be passed to map or forEach. This is a case of
bad composability, since the module cannot be easily composed with algo-
rithms operating on arrays.
For example, it is not uncommon for modules to provide their own
array-like collection objects, with their own interface for extracting elements
from such an object, and return those from functions that return collections
of things. Such objects cannot be passed to map or forEach. This is a case of
bad composability, since the module cannot be easily composed with algo-
rithms operating on arrays.
header ( "Cache-Control: public" ) ;
header ( "Content-Description: File Transfer" ) ;
header ( 'Content-Disposition: attachment; filename="' . $file_name . '"' ) ;
header ( "Content-Transfer-Encoding: binary" ) ;
readfile ( $path_to_file ) ;