Skip to content

Instantly share code, notes, and snippets.

View jcblw's full-sized avatar
💤
Don't wake me, my computer is sleeping in.

Jacob Lowe jcblw

💤
Don't wake me, my computer is sleeping in.
View GitHub Profile
@jcblw
jcblw / index.js
Created January 31, 2015 07:43
requirebin sketch
var vsvg = require( 'vsvg' ),
paths = require( 'vsvg-paths' ),
svg = vsvg.svg,
g = vsvg.g,
rect = vsvg.rect,
text = vsvg.text;
el = (
svg( { xmlns: 'http://www.w3.org/2000/svg', width: 500, height: 500 },
g ( { className: 'group-rects' },
@jdx
jdx / boot.js
Last active October 4, 2016 03:42
node cluster loader
'use strict';
var numCpus = require('os').cpus().length
var cluster = require('cluster')
cluster.setupMaster({exec: __dirname + '/server.js'})
// workerIds returns the node cluster index for each worker
function workerIds() { return Object.keys(cluster.workers) }
// Gets the count of active workers
@atamanroman
atamanroman / active-property-on-link-to.js
Last active February 16, 2017 17:22
Examples around ember.js {{link-to}} and its active state
anonymous
anonymous / create.sh
Created September 3, 2013 04:00
pirjfworifj
curl -X POST https://www.signature.io/api/v0/people.json \
-d "first_name=YOUR_FIRST_NAME" \
-d "email=YOUR_EMAIL" \
-d "password=YOUR_PASSWORD"
anonymous
anonymous / ts-retirement.txt
Created August 26, 2013 17:44
Made with Gist Clipboard
Terms of Use
PLEASE READ THESE TERMS CAREFULLY. IF YOU DO NOT AGREE WITH ANY OF THESE TERMS OR CONDITIONS, DO NOT ACCESS OR OTHERWISE USE THIS WEBSITE OR ANY INFORMATION CONTAINED ON THIS WEBSITE.
IMPORTANT! THESE TERMS OF USE GOVERN YOUR USE OF THIS SITE. BY ACCESSING THIS SITE, YOU ARE INDICATING YOUR ACKNOWLEDGMENT AND ACCEPTANCE OF THESE TERMS OF USE. THESE TERMS OF USE ARE SUBJECT TO CHANGE, UPDATE AND/OR REVISION (COLLECTIVELY "CHANGE") BY SITE OWNERS AT ANY TIME, WITHOUT NOTICE, IN THEIR SOLE DISCRETION. IF SITE OWNERS MAKE ANY MATERIAL CHANGES TO THESE TERMS OF USE, YOU WILL BE ASKED TO ACKNOWLEDGE AND ACCEPT THE NEW TERMS OF USE. PLEASE CONSULT THESE TERMS OF USE REGULARLY.
anonymous
anonymous / ModeStore.js
Created August 26, 2013 02:17
Made with Gist Clipboard
module.exports = MemoryStore;
function MemoryStore(options) {
this.options = options || {};
this.app = this.options.app;
this.cache = {};
}
MemoryStore.prototype.cacheVersion = '';
@wanderingmatt
wanderingmatt / _retina-sprite.scss
Created October 1, 2012 17:19
Mixin that generates both a regular and retina sprite (using the Compass Sprite Helpers) and returns the appropriate declarations and media queries.
// Mixin that generates both a regular and retina sprite (using the Compass Sprite Helpers) and returns the appropriate declarations and media queries.
//
// $folder - The name of the folder that contains the icons to sprite.
//
// No styleguide reference.
@mixin retina-sprite($folder) {
$sprites: sprite-map("icons/#{$folder}/*.png"); // Generates a sprite containing every icon in the supplied folder.
$sprites-2x: sprite-map("icons/#{$folder}@2x/*.png"); // Generates a second sprite containing every icon @2x resolution.
@febuiles
febuiles / hubot.sh
Created November 25, 2011 22:02
Hubot startup script
#!/bin/sh
# This assumes you have:
# 1) A user called `hubot` in charge of the bot.
# 2) A file called /home/hubot/.hubotrc that contains the Hubot credentials.
#
# To set the adapter either edit bin/hubot to specify what you want or append
# `-- -a campfire` to the $DAEMON variable below.
#
### BEGIN INIT INFO