Skip to content

Instantly share code, notes, and snippets.

View sicp_pune_meetup.md
View call_out.xml
<Response>
<script/>
<Say voice="alice">Welcome call from TrustIQ.</Say>
<Play>http://demo.twilio.com/docs/classic.mp3</Play>
</Response>
View gist:38f929b8f97630e47db704443a2b6e75
A - 🍎 - APPLE
B - 🏏 - BAT BALL
C - 😺 - CAT
D - 🐕 - DOG
E - 🐘 - ELEPHANT
F - 🐟 - FISH
G - 🐐 - GOAT
H - 🎩 - HAT
I - 🍦
J - 🃏
@nishantmodak
nishantmodak / example.com.conf
Last active Aug 29, 2015
sites-enabled/example.com
View example.com.conf
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;
}
View nginx.conf
user www-data;
worker_processes 4;
pid /var/run/nginx.pid;
events {
worker_connections 768;
# multi_accept on;
}
http {
View iotbackend-compare.mkd
  • Xively
  • Carriots
  • 1248
  • Opensense
  • opensensors.io
  • Eyehub
  • Thingspeak
  • Yanza
View nginx.conf.default
#user nobody;
#Defines which Linux system user will own and run the Nginx server
worker_processes 1;
#Referes to single threaded process. Generally set to be equal to the number of CPUs or cores.
#error_log logs/error.log; #error_log logs/error.log notice;
#Specifies the file where server logs.
View gogreeter-new.go
package main
import (
"fmt"
"net/http"
"time"
)
func main() {
http.HandleFunc("/", root)
View gogreeter.go
package main
import (
"fmt"
"net/http"
"time"
)
func main() {
http.HandleFunc("/", handler)
View staticweb.go
package main
import (
"net/http"
)
func main() {
fs := http.FileServer(http.Dir("public"))
http.ListenAndServe(":8080", fs)
}