This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
NewerOlder