- Xively
- Carriots
- 1248
- Opensense
- opensensors.io
- Eyehub
- Thingspeak
- Yanza
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
| source 'https://rubygems.org' | |
| # Bundle edge Rails instead: gem 'rails', github: 'rails/rails' | |
| gem 'rails', '4.0.3' | |
| # Use sqlite3 as the database for Active Record | |
| gem 'sqlite3' | |
| # Use SCSS for stylesheets | |
| gem 'sass-rails', '~> 4.0.0' |
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
| package main | |
| import ( | |
| "net/http" | |
| ) | |
| func main() { | |
| fs := http.FileServer(http.Dir("public")) | |
| http.ListenAndServe(":8080", fs) | |
| } |
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
| package main | |
| import ( | |
| "fmt" | |
| "net/http" | |
| "time" | |
| ) | |
| func main() { | |
| http.HandleFunc("/", handler) |
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
| package main | |
| import ( | |
| "fmt" | |
| "net/http" | |
| "time" | |
| ) | |
| func main() { | |
| http.HandleFunc("/", root) |
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
| user www-data; | |
| worker_processes 4; | |
| pid /var/run/nginx.pid; | |
| events { | |
| worker_connections 768; | |
| # multi_accept on; | |
| } | |
| http { |
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
| server { | |
| listen 80; | |
| server_name www.example.com example.com; | |
| access_log /var/log/Nginx/example_com_access.log; | |
| error_log /var/log/Nginx/example_com_error.log; | |
| location / { | |
| root /var/www/www.example.com; | |
| index index.html index.htm; | |
| } |
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
| #include <IRremote.h> | |
| int RECV_PIN = 11; | |
| IRrecv irrecv(RECV_PIN); | |
| decode_results results; | |
| int i = 0; | |
| int blinkarray[11]; | |
| int user=0; | |
| void setup() | |
| { | |
| for(i=2;i<11;i++) |
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
| int led = 13; | |
| // the setup routine runs once when you press reset: | |
| void setup() { | |
| // initialize the digital pin as an output. | |
| pinMode(led, OUTPUT); | |
| } | |
| // the loop routine runs over and over again forever: | |
| void loop() { |
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 "serialport" | |
| #params for serial port | |
| port_str = "/dev/ttyUSB0" #may be different for you | |
| baud_rate = 9600 | |
| data_bits = 8 | |
| stop_bits = 1 | |
| parity = SerialPort::NONE |
OlderNewer