Skip to content

Instantly share code, notes, and snippets.

View highruned's full-sized avatar
💭
Forging...

HighRuned highruned

💭
Forging...
View GitHub Profile
@[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
# 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
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
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;
(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;
var jsdom = require('jsdom');
var window = jsdom.jsdom().createWindow();
jsdom.jQueryify(window, 'http://google.com/', function() {
console.log('works');
});
npm install html5
git clone https://github.com/aredridel/html5.git
cd html5
node example.js
var request = require('request');
request({uri:'http://eric.muyser.com/test/'}, function (error, response, body) {
console.log(body);
});
var request = require('request');
request({uri:'http://eric.muyser.com/test/'}, function (error, response, body) {
console.log(body);
});
$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',