This file contains 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
@[id|class|style|title|dir<ltr?rtl|lang|xml::lang|onclick|ondblclick|onmousedown|onmouseup|onmouseover|onmousemove|onmouseout|onkeypress|onkeydown|onkeyup],a[rel|rev|charset|hreflang|tabindex|accesskey|type|name|href|target|title|class|onfocus|onblur],strong/b,em/i,strike,u,#p,-ol[type|compact],-ul[type|compact],-li,br,img[longdesc|usemap|src|border|alt=|title|hspace|vspace|width|height|align],-sub,-sup,-blockquote,-table[border=0|cellspacing|cellpadding|width|frame|rules|height|align|summary|bgcolor|background|bordercolor],-tr[rowspan|width|height|align|valign|bgcolor|background|bordercolor],tbody,thead,tfoot,#td[colspan|rowspan|width|height|align|valign|bgcolor|background|bordercolor|scope],#th[colspan|rowspan|width|height|align|valign|scope],caption,-div,-span,-code,-pre,address,-h1,-h2,-h3,-h4,-h5,-h6,hr[size|noshade],-font[face|size|color],dd,dl,dt,cite,abbr,acronym,del[datetime|cite],ins[datetime|cite],object[classid|width|height|codebase|*],param[name|value|_value],embed[type|width|height|src|*],script |
This file contains 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
# Example MySQL config file for medium systems. | |
# | |
# This is for a system with little memory (32M - 64M) where MySQL plays | |
# an important part, or systems up to 128M where MySQL is used together with | |
# other programs (such as a web server) | |
# | |
# You can copy this file to | |
# /etc/my.cnf to set global options, | |
# mysql-data-dir/my.cnf to set server-specific options (in this | |
# installation this directory is /Applications/MAMP/db/mysql) or |
This file contains 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
deb http://http.us.debian.org/debian/ squeeze main contrib non-free | |
deb-src http://http.us.debian.org/debian/ squeeze main contrib non-free | |
deb http://security.debian.org/ squeeze/updates main contrib | |
deb-src http://security.debian.org/ squeeze/updates main contrib | |
deb http://php53.dotdeb.org stable all | |
deb http://packages.dotdeb.org stable all | |
deb-src http://php53.dotdeb.org stable all | |
deb-src http://packages.dotdeb.org stable all |
This file contains 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
server { | |
listen 80; ## listen for ipv4 | |
server_name mysite.com; | |
access_log /var/log/nginx/localhost.access.log; | |
location / { | |
root /home/myuser/mysite/www; | |
index index.php; |
This file contains 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
(function() { | |
function add(name, method) { | |
if( !Date.prototype[name] ) { | |
Date.prototype[name] = method; | |
} | |
}; | |
add("isLeapYear", function() { | |
var y = this.getFullYear(); | |
return (y%4==0 && y%100!=0) || y%400==0; |
This file contains 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
var jsdom = require('jsdom'); | |
var window = jsdom.jsdom().createWindow(); | |
jsdom.jQueryify(window, 'http://google.com/', function() { | |
console.log('works'); | |
}); |
This file contains 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
npm install html5 | |
git clone https://github.com/aredridel/html5.git | |
cd html5 | |
node example.js |
This file contains 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
var request = require('request'); | |
request({uri:'http://eric.muyser.com/test/'}, function (error, response, body) { | |
console.log(body); | |
}); |
This file contains 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
var request = require('request'); | |
request({uri:'http://eric.muyser.com/test/'}, function (error, response, body) { | |
console.log(body); | |
}); |
This file contains 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
$q1 = $application->db->createQuery(' | |
select x | |
from Brain\Models\Blog x | |
where x.updated_at < :start_time | |
and x.state != :processing | |
order by x.updated_at | |
')->setMaxResults(1); | |
$q1->setParameters(array( | |
'start_time' => '1000-00-00 00:00:00', |
OlderNewer