Skip to content

Instantly share code, notes, and snippets.

View buley's full-sized avatar
🤑

Tay buley

🤑
View GitHub Profile
@buley
buley / rtlsdr-osx.txt
Created March 25, 2016 20:11 — forked from jheasly/rtlsdr-osx.txt
Build RTL-SDR on OSX with no tears using homebrew. Forked from https://gist.github.com/0xabad1dea/5777726, a macports solution.
rtl-sdr build notes for OSX
using macports http://www.macports.org/
see http://sdr.osmocom.org/trac/wiki/rtl-sdr
brew install cmake
brew install libusb
brew install pkgconfig
brew install sox # for easy audio
git clone git://git.osmocom.org/rtl-sdr.git
cd rtl-sdr/
#
# Initialize the stuff
#
# We build the status bar item menu
def setupMenu
menu = NSMenu.new
menu.initWithTitle 'FooApp'
mi = NSMenuItem.new
mi.title = 'Hellow from MacRuby!'
mi.action = 'sayHello:'
@buley
buley / And a title
Created January 12, 2014 05:13
This is my gist
It has a body
# Artsy Editorial
#
# Get Page stats from google analytics
GA = require('googleanalytics')
util = require('util')
require('date-utils');
module.exports = (robot) ->
robot.hear /stats (.*)http:\/\/artsy.net\/(.*)/i, (msg) ->
// Disable bold.
term_.prefs_.set('enable-bold', false)
// Use this for Solarized Dark
term_.prefs_.set('background-color', "#002b36");
term_.prefs_.set('foreground-color', "#839496");
term_.prefs_.set('color-palette-overrides', [
'#073642',
'#dc322f',
@buley
buley / gist:5078485
Created March 3, 2013 21:54
Guessed Gender At TC based on /feed
{
"Taylor": "likely-male",
"Ingrid": "female",
"Alex": "male",
"Gregory": "male",
"John": "male",
"Colleen": "female",
"Ross": "male",
"Natasha": "female",
@buley
buley / gist:5076940
Created March 3, 2013 16:57
Glass Research Raw Data
* For the (6332 + 1026) Google+ postings whose authors had first names assigned to a gender group, TK% (6332/(6332 + 1026)) were guessed to be male and TK% (1026/(6332 + 1026)) female. Including 517 uncertain cases, which somewhat generously throw out anything guessed to be less than 95% probability, the numbers water down to TK% male (6332/(517 + 6332 + 1026)) and TK% (1026/(517 + 6332 + 1026)) female. Among the uncertain cases, TK% (396/517) where thought to be 'likely male' and TK% (121/517) 'likely female'. TK% (2907/(6332 + 1026 + 2907 + 517)) of the overall postings were deemed ambiguous.
array(8) {
["all"]=>
int(10782)
["male"]=>
int(6332)
["gendered"]=>
int(10265)
@buley
buley / vagrant.org
Last active December 11, 2015 06:58
Vagrant Centos 6.3 -- base script. Work in progress.
x
@buley
buley / gist:71d5d0910e99d0c49c7a
Created December 7, 2015 08:06
Cancel all pending ("created") Travis-CI builds
javascript:window.jQuery.fn.reverse=[].reverse;window.jQuery(".icon.created").reverse().each(function(e,n){setTimeout(function(){var e=$(n).parent().attr("href"),t=e?window.open(e):{addEventListener:function(){}};t.addEventListener("load",function(){setTimeout(function(){t.jQuery(".button-circle-cancel").click()},3e3);setTimeout(function(){t.close()},2e4)})},5e3*e)});
@buley
buley / gist:4070160
Created November 14, 2012 03:53
Ardunio: PIR Sensor + LED Setup
boolean alreadyLow = true;
int pirPin = 3;
int ledPin = 2;
void setup(){
Serial.begin(9600);
pinMode(pirPin, INPUT);
digitalWrite(pirPin, LOW);
pinMode(ledPin, OUTPUT);
}