This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <xc.inc> | |
#define STRIP_LENGTH 10 | |
#define LED_STRIP PORTA, 0 | |
GLOBAL _led_buffer | |
GLOBAL _populateLeds | |
PSECT ledcode,class=CODE,reloc=2 | |
_populateLeds: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Hide Facebook Feed | |
// @namespace http://www.julianhartline.com | |
// @version 0.2 | |
// @description enter something useful | |
// @match https://www.facebook.com/* | |
// @copyright 2013+, Julian | |
// @require http://code.jquery.com/jquery-latest.js | |
// ==/UserScript== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php header("Content-Type: text/plain"); ?> | |
<?php header("Content-Disposition: inline"); ?> | |
#include <Adafruit_NeoPixel.h> | |
#ifdef __AVR__ | |
#include <avr/power.h> | |
#endif | |
//IMPORTANT: Update the pin and length to match your LED strip! | |
#define PIN 5 | |
#define LENGTH 150 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Installation: On a Google Sheet, go to Tools > Script Editor and paste the code into the resulting editor. | |
// Save and return to your editor and use as follows: | |
// Usage: getSubredditSubscribers("funny") | |
// Supports subreddits in the following forms: | |
// programming | |
// http://www.reddit.com/r/electronics | |
//Refresh key can be used for force a refresh by including an arbitrary number |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Reddit Robin Spam Filter | |
// @namespace http://julianhartline.com/ | |
// @version 0.13 | |
// @description Adds mute functionality and spam filter | |
// @author Julian Hartline (julianh2o) | |
// @match https://www.reddit.com/robin | |
// @grant none | |
// ==/UserScript== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Github Recolor Diffs | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Red, Green? What's that | |
// @author You | |
// @match https://github.com/* | |
// @grant none | |
// ==/UserScript== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Usage: | |
# First, search files recursively for text using ag (SilverSearcher). This could be refactored to use grep probably | |
# $ refactor gen 'function' > lines.txt | |
# Lines.txt will contain the file paths, line numbers, and line contents like so: (one entry per line) | |
# index.js:52: handler: function onNext() { | |
# Now, using your favorite editor, edit the lines.txt file with any changes you want to make to those lines (using something search replace, a text editor, or a bash script) | |
# Save the file and now run the script again to update all the files accordingly: | |
# refactor run lines.txt | |
# Note: You can also use `refactor dry lines.txt` to show the changes that will be made |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var request = require("request") | |
var express = require("express") | |
var app = express() | |
var LIFX_TOKEN='adbadbadbadbadbabdabdabdbad4adbadbadbadbadbabdbadbabdabdbadbabdb'; | |
app.get("/", function (req, res) { | |
res.send("Hello World!") | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var request = require("request") | |
var express = require("express") | |
var app = express() | |
var LIFX_TOKEN='adbadbadbadbadbabdabdabdbad4adbadbadbadbadbabdbadbabdabdbadbabdb'; | |
var HUE_TOKEN='adbadbadbadbadbabdabdab'; | |
var HUE_IP="192.168.0.100"; | |
app.get("/", function (req, res) { | |
res.send("Hello World!") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var request = require("request") | |
var express = require('express'); | |
var _ = require("underscore"); | |
var app = express(); | |
var exec = require('child_process').exec; | |
var lifx_token='asdasdasdasdasdasd'' | |
var lifx_api='https://api.lifx.com/v1/lights' | |
var hue_token='asdasdasdasdasdasd' |
OlderNewer