Skip to content

Instantly share code, notes, and snippets.

View Schoonology's full-sized avatar
🦄

Michael Schoonmaker Schoonology

🦄
View GitHub Profile
@brandoaire
brandoaire / sparkbot_firmware.ino
Last active January 9, 2018 18:40
SparkBot Firmware that runs on the Spark Core
// SparkBot Firmware
// Began 12/4
// Last updated 12/9
//
// Firmware for controlling a Spark Core connected to a Roomba Vacuum cleaner, controlled by sparkbot_bashscript.sh
// Link to project share on Spark Community site below:
//
// https://community.sparkdevices.com/t/sparkbot-manually-automatically-vacuum-your-living-room/625
//
// Credits to http://skaterj10.hackhut.com/2013/01/22/roomba-hacking-101/ for the tips!
@matthewrobb
matthewrobb / gist:5272889
Created March 29, 2013 19:06
Simple mixin function with prototype support
function mixin(receiver, source) {
var descriptors = {};
for(var name in source) {
if(source.hasOwnProperty(name)) {
if(typeof receiver == "function" && name == "prototype") {
receiver.prototype = mixin(Object.create(receiver.prototype), source.prototype);
} else {
descriptors[name] = Object.getOwnPropertyDescriptor(source, name);
}
}
@piscisaureus
piscisaureus / pr.md
Created August 13, 2012 16:12
Checkout github pull requests locally

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = git@github.com:joyent/node.git

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this: