JSConf.eu opening song - JavaScript Will Listen - Bella Morningstar
- Plask - Dean McNamee
- Plask
// ==UserScript== | |
// @name UTM param stripper | |
// @author Paul Irish | |
// @namespace http://github.com/paulirish | |
// @version 1.1 | |
// @description Drop the UTM params from a URL when the page loads. | |
// @extra Cuz you know they're all ugly n shit. | |
// @include http://* | |
// ==/UserScript== |
require 'rubygems' | |
require 'mongo' | |
@con = Mongo::Connection.new | |
# Instance of Mongo::DB | |
@db = @con['webinar'] | |
# Instance of Mongo::Collection | |
@col = @db['users'] |
// makeURI 1.2.2 - create a URI from an object specification; compatible with | |
// parseURI (http://blog.stevenlevithan.com/archives/parseuri) | |
// (c) Niall Smart <niallsmart.com> | |
// MIT License | |
function makeUri(u) { | |
var uri = ""; | |
if (u.protocol) { | |
uri += u.protocol + "://"; |
/*jslint regexp: true, sloppy: true, maxerr: 50, indent: 2 */ | |
function parseURI(url) { | |
var m = String(url).match(/^([^:\/?#]+:)?(\/\/(?:[^:@]*(?::[^:@]*)?@)?(([^:\/?#]*)(?::(\d*))?))?([^?#]*)(\?[^#]*)?(#[\s\S]*)?/); | |
// authority = '//' + user + ':' + pass '@' + hostname + ':' port | |
return (m ? { | |
href : m[0] || '', | |
protocol : m[1] || '', | |
authority: m[2] || '', | |
host : m[3] || '', |
NSDate *timenow=[NSDate date]; | |
NSLog(@"Date before date2dot net=%@",[timenow description]); | |
NSString *date2DotNet=[timenow dateToDotNet]; | |
NSLog(@"Dot net version of now = %@",date2DotNet); | |
timenow=[NSDate dateFromDotNet:date2DotNet]; | |
NSLog(@"Date back from date2dot net=%@",[timenow description]); |
Steps: | |
0. Checkout your git repo from the server (I use /var/www/carbonite) | |
1. Upload both of these files to the same directory on your server | |
2. chmod +x restart_node.sh | |
3. nohup node github_post_commit.js 2>&1 >> github_post_commit.log & | |
4. In the github admin for your repo, set a post commit hook to the url http://<your host>:8080/ | |
5. Make a commit to your repo | |
6. Point a browser at http://<your host>:8080/ and you should see the commit |
.monospace { | |
font: 11px/1.3 Monaco !important; | |
} | |
/* slightly larger indentation of source code */ | |
.outline-disclosure ol { | |
-webkit-padding-start: 18px !important; | |
} | |
/* margin underneath styles panel heading */ |
<?php | |
/** | |
* WordPress Query Comprehensive Reference | |
* Compiled by luetkemj - luetkemj.com | |
* | |
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query | |
* Source: http://core.trac.wordpress.org/browser/tags/3.3.1/wp-includes/query.php | |
*/ | |
$args = array( |
user www-data; | |
worker_processes 4; | |
worker_cpu_affinity 0001 0010 0100 1000; | |
error_log /var/log/nginx/error.log; | |
pid /var/run/nginx.pid; | |
events { | |
worker_connections 2048; | |
} |