Opinions are like assholes, every one has got one.
This one is mine.
Punctuation is a bikeshed. Put your semicolons, whitespace, and commas where you like them.
#! /bin/sh | |
cat /var/spool/cron/* /etc/crontab | grep '^\(\*\|[0-9]\)' | sort -nk2 -nk1 |
function queue(name){ | |
queue.q[name]++ || (queue.q[name] = 1); | |
return function(err){ | |
if (err && queue.e[name]) queue.e[name](err); | |
else if (err) throw err; | |
process.nextTick(function(){ | |
queue.q[name]--; | |
queue.check(name); | |
}); | |
} |
<?php | |
function list_files($dir) { | |
if(is_dir($dir)) { | |
if($handle = opendir($dir)) { | |
while(($file = readdir($handle)) !== FALSE) { | |
if($file !== "." and $file !== ".." and $file != "Thumbs.db") { | |
echo '<a target="_blank" href="'. $dir . $file .'">'. $file .'</a><br>'."\n"; | |
} | |
} |
jQuery.fn.shake = function(intShakes, intDistance, intDuration) { | |
this.each(function() { | |
$(this).css({ | |
position: "relative" | |
}); | |
for (var x = 1; x <= intShakes; x++) { | |
$(this).animate({ | |
left: (intDistance * -1) | |
}, (((intDuration / intShakes) / 4))).animate({ | |
left: intDistance |
/* | |
jquery.draghover.js | |
Emulates draghover event by tracking | |
dragenter / dragleave events of element + children. | |
https://gist.github.com/gists/3794126 | |
http://stackoverflow.com/a/10310815/4196 |
function asanaRequest($methodPath, $httpMethod = 'GET', $body = null) | |
{ | |
$apiKey = 'ASANA_API_KEY_HERE'; /// Get it from http://app.asana.com/-/account_api | |
$url = "https://app.asana.com/api/1.0/$methodPath"; | |
$ch = curl_init(); | |
curl_setopt($ch, CURLOPT_URL, $url); | |
curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC ) ; | |
curl_setopt($ch, CURLOPT_USERPWD, $apiKey); | |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); |
Derby Community Info | |
- Projects | |
- Codeparty (Brian & Nate) | |
"https://github.com/codeparty" | |
- Derby | |
"https://github.com/codeparty/derby" | |
- Derby Examples | |
"https://github.com/codeparty/derby-examples" | |
- Racer |
function go() { | |
var userId = prompt('Username?', 'Guest'); | |
var userData = { name: userId }; | |
tryCreateUser(userId, userData); | |
} | |
var USERS_LOCATION = 'https://SampleChat.firebaseIO-demo.com/users'; | |
function userCreated(userId, success) { | |
if (!success) { |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE> | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. | |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |