View tip.js
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
function(payload){ | |
var key = 'tips' | |
if(payload.type == "emessage"){ | |
var keyword = /^\s*(\S+)\+\+\s*$/ | |
var match = keyword.exec(payload.message) | |
if(match){ | |
tip(payload.target, match[1]) | |
} | |
} |
View meters.json
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View gist:11193179
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
E/ThermalEngine( 194): TM Id 'battery_LCD_monitor' Sensor 'batt_therm' - alarm raised 3 at 350.0 degC | |
E/ThermalEngine( 194): override action 5000 | |
E/ThermalEngine( 194): Thermal-Server: Thermal received msg override 5000 | |
E/ThermalEngine( 194): override_notify : SS mode 1 override 5000 | |
E/ThermalEngine( 194): enable_threshold: tsens_tz_sensor3 (/sys/devices/virtual/thermal/thermal_zone3/trip_point_0_type) | |
E/ThermalEngine( 194): enable_threshold: tsens_tz_sensor3 (/sys/devices/virtual/thermal/thermal_zone3/trip_point_1_type) | |
AndroSense says batt at 91F |
View marvel.js
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
function (payload) { | |
if(payload.type == "emessage") { | |
var marvel = /marvel (.*)/ | |
var match = marvel.exec(payload.message) | |
if(match) { | |
var terms = match[1] | |
var results = search(terms) | |
return results | |
} | |
} |
View gist:11305154
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
function (payload) { | |
if(payload.type == "emessage") { | |
var weather = /\!weather/ | |
var match = weather.exec(payload.message) | |
if(match) { | |
if(Math.random() > 0.7) { | |
return payload.nick+": you got a window? open it." | |
} | |
} | |
} |
View bitbucket.js
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
function(msg) { | |
var override = false; | |
if(/^bitbucket$/.test(msg.message)) { | |
override = true; | |
} | |
if(override || (msg.type == "ticktock" && (new Date(Date.parse(msg.message))).getMinutes() % 10 == 0) ) { | |
var bitbucket_json = http.get("http://status.bitbucket.org/?format=json") | |
var bitbucket = JSON.parse(bitbucket_json) | |
var key = 'bitbucket:status' |
View legiscan.js
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
function(payload){ | |
var override = false; | |
if(payload.type == "emessage"){ | |
if(/^legiscan$/.test(payload.message)) { | |
override = true; | |
} | |
} | |
if(payload.type == "ticktock"){ | |
var time = new Date(Date.parse(payload.message)) |
View citycouncil.js
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
function(payload){ | |
var override = false; | |
if(payload.type == "emessage"){ | |
if(/^citycouncil$/.test(payload.message)) { | |
override = true; | |
} | |
} | |
if(payload.type == "ticktock"){ | |
var time = new Date(Date.parse(payload.message)) |
View pedalpaloozaparser.rb
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
#!/usr/bin/env ruby | |
require 'bundler/setup' | |
require 'nokogiri' | |
require 'open-uri' | |
require 'json' | |
require 'time' | |
url = 'http://www.shift2bikes.org/cal/viewpp2014.php' | |
doc = Nokogiri::HTML(open(url).read) |
View kickstarter.js
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
function(payload){ | |
var go = false; | |
var project = null; | |
if(payload.type == "emessage"){ | |
var match = /^kickstarter\s+(.*)$/.exec(payload.message); | |
if(match) { | |
project = match[1] | |
go = true; | |
} | |
} |
OlderNewer