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
auto lo | |
iface lo inet loopback | |
iface eth0 inet dhcp | |
allow-hotplug wlan0 | |
iface wlan0 inet manual | |
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf | |
iface default inet dhcp |
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
auto lo | |
iface lo inet loopback | |
iface eth0 inet dhcp | |
allow-hotplug wlan0 | |
auto wlan0 | |
iface wlan0 inet dhcp | |
wpa-ssid network-name | |
wpa-psk password |
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
require 'cosm-rb' | |
require 'json' | |
require 'ap' | |
def get_path_for_family path, directory_path | |
family = File.open(File.join(path, directory_path, 'family')).gets.strip.to_i | |
if family == 28 | |
File.join(path, directory_path, 'temperature') | |
elsif family == 26 | |
File.join(path, directory_path, 'humidity') |
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
require 'tempodb' | |
def get_path_for_family path, directory_path | |
family = File.open(File.join(path, directory_path, 'family')).gets.strip.to_i | |
if family == 28 | |
File.join(path, directory_path, 'temperature') | |
elsif family == 26 | |
File.join(path, directory_path, 'humidity') | |
else | |
nil |
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
Get["/builds/progress"] = _ => { | |
IList<IBuildInProgress> builds = serviceAgent.GetBuildsInProgress(); | |
return Response.AsJson(builds).AsCacheable(DateTime.Now.AddSeconds(10)) ; | |
}; |
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
{ | |
"nodejs": [ | |
{ | |
"version": "0.10.18", | |
"npm": "1.3.8" | |
}, | |
{ | |
"version": "0.10.21", | |
"npm": "1.3.11" | |
}, |
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
{ | |
"name": "node-version", | |
"version": "0.0.0", | |
"private": true, | |
"scripts": { | |
"start": "node ./bin/www" | |
}, | |
"engines": { | |
"node": "0.10.32" | |
}, |
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
$ npm install —save hubot-slack |
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
$ git init | |
$ git add . | |
$ git commit -m “Initial Commit” |
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
$ bin/hubot | |
Hubot> Hubot help | |
Hubot adapter - Reply with the adapter | |
Hubot animate me <query> - The same thing as `image me`, except adds a few parameters to try to return an animated GIF instead. | |
Hubot echo <text> - Reply back with <text> | |
Hubot help - Displays all of the help commands that Hubot knows about. | |
Hubot help <query> - Displays all help commands that match <query>. | |
Hubot image me <query> - The Original. Queries Google Images for <query> and returns a random top result. | |
Hubot map me <query> - Returns a map view of the area returned by `query`. | |
Hubot mustache me <query> - Searches Google Images for the specified query and mustaches it. |
OlderNewer