Skip to content

Instantly share code, notes, and snippets.

View jlipps's full-sized avatar

Jonathan Lipps jlipps

View GitHub Profile
@jlipps
jlipps / everything.js
Last active December 10, 2015 21:48
initialize everything!
function initializeEverything(cb) {
host_info.create(function(err, h) {
other_module.create(function(err, m) {
yet_another_module.create(function(err, y) {
cb(err, h, m, y);
});
});
});
}
@jlipps
jlipps / HostInfo.js
Last active December 10, 2015 21:50 — forked from freynaud/HostInfo.js
/*
* Copyright 2012 ios-driver committers.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
@jlipps
jlipps / secret_santa.py
Created December 6, 2012 20:08
Randomized "Secret Santa" gift exchange generator with advanced behaviors, enables complete anonymity, allowing organizer to participate
from collections import OrderedDict
from random import randint
import smtplib
FROM = "Santa Claus <santa.claus@gmail.com>"
PARTICIPANTS = OrderedDict([
('Dasher', 'dasher@gmail.com'),
('Dancer', 'dancer@gmail.com'),
('Prancer', 'prancer@gmail.com'),