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
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/ |
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
# | |
# 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:' |
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
It has a body |
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
# 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) -> |
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
// 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', |
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
{ | |
"Taylor": "likely-male", | |
"Ingrid": "female", | |
"Alex": "male", | |
"Gregory": "male", | |
"John": "male", | |
"Colleen": "female", | |
"Ross": "male", | |
"Natasha": "female", |
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
* 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) |
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
x |
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
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)}); |
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
boolean alreadyLow = true; | |
int pirPin = 3; | |
int ledPin = 2; | |
void setup(){ | |
Serial.begin(9600); | |
pinMode(pirPin, INPUT); | |
digitalWrite(pirPin, LOW); | |
pinMode(ledPin, OUTPUT); | |
} |