This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ALTER TABLE gib_mailcamp_emails MODIFY confirmed NOT NULL; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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 ; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<VirtualHost *:80> | |
ServerAdmin webmaster@localhost | |
serverName www.mynewvhost.com | |
ServerAlias mynewvhost.com | |
DocumentRoot /var/www/mynewvhost | |
DocumentRoot /var/www | |
<Directory /> | |
Options FollowSymLinks |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 ) ; |
NewerOlder