Skip to content

Instantly share code, notes, and snippets.

@ryankinal
ryankinal / LICENSE
Created February 13, 2014 21:51 — forked from rlemon/LICENSE
RYAN KINAL ESQUIRE PUBLIC LICENSE
Version 1, February 2014
Copyright (C) 2014 Ryan Kinal <email@address.com>
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, it is not used for evil (If you have to ask yourself if it is being used for evil, it is probably being used for evil.), and you consider buying Ryan Kinal a beer(no cheap stuff... well okay).
RYAN KINAL ESQUIRE PUBLIC LICENSE
@SomeKittens
SomeKittens / gist:9579594
Last active August 29, 2015 13:57
Converting commands
@SomeKittens
SomeKittens / app.js
Last active August 29, 2015 13:57
Passport auth example
// assuming you're using express
'use strict';
//express stuffs
var passport = require('passport');
var user = require('./user');
// Configs the passports
require('./passportConfig');
@benjamingr
benjamingr / gist:10536349
Created April 12, 2014 13:40
Bluebird asParallel
Promise.longStackTraces();
//end debug
/**
Hijack Promise.map to accept parallelism limit argument
**/
function queueConcurrent(work, degreeOfParallelism) {
// work is array of functions returning promises
"use strict";
@Qantas94Heavy
Qantas94Heavy / fail.js
Created April 17, 2014 14:54
Screw your JS up
delete eval;
delete parseInt;
delete parseFloat;
delete isNaN;
delete isFinite;
delete decodeURI;
delete decodeURIComponent;
delete encodeURI;
delete encodeURIComponent;
delete Object.getPrototypeOf;
@Zirak
Zirak / result.org
Last active August 29, 2015 14:02

Vote results:

commandvotes
awsm16
norris14
domain13
zalgo13
meme11
inhistory9
todo8
@loktar00
loktar00 / chatfavicon userscript
Last active August 29, 2015 14:02
User script for animated favicon on the SO Chatrooms
// ==UserScript==
// @name Favicon update for pinned chat
// @version 0.1
// @description Updates the favicon with the message count
// @match http://chat.stackoverflow.com/*
// ==/UserScript==
var canvas = document.createElement('canvas'),
ctx = canvas.getContext('2d'),
origFav = document.querySelector('[rel="shortcut icon"]'),
@rlemon
rlemon / random-image-background.js
Last active August 29, 2015 14:04
random image from imagur every 60 seconds
(function () {
"use strict";
var parts = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789',
canvas = document.createElement('canvas'),
context = canvas.getContext('2d');
imgur();
function makeImage(url, cb) {
@getify
getify / gist:80c8c68276dbda50bfc7
Created August 11, 2014 14:59
articulate the differences in these two snippets. which one is "easier"? which one is "simpler"?
function XYZ() {
X();
}
function X() {
// do X
Y();
}
function Y() {
@ooflorent
ooflorent / README.md
Last active August 29, 2015 14:05
Awesome minify