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
Mongoose Tips And Tricks | |
============================== |
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 /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
{ | |
"-J_XQk8huMfRRG3Y5c7H" : { | |
"id" : "470e517f-331a-4b16-a7d7-3b42a0778529", | |
"images" : [ { | |
"md5sum" : "583dc18fa8790f4a9060746bce8029bb" | |
}, { | |
"md5sum" : "be4b245b4e271a59738f51a8bf68cd80" | |
}, { | |
"md5sum" : "3169ef3cb71c17e6e2dfe4da2d822a70" | |
}, { |
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
{ | |
"activities" : { | |
"5cC4B0UaZ1qnRFkIaDFdsQ" : { | |
"name" : "Human Rights", | |
"private" : false, | |
"prompt" : "\"We believe in human rights because...\"", | |
"wordList" : "[{\"word\":\"fundamental\",\"definition\":\"necessary or central part of an idea; the basis\"},{\"word\":\"inalienable\",\"definition\":\"cannot be given or taken away from the possessor\"},{\"word\":\"charter\",\"definition\":\"a written document that defines an entity's rights and priveleges\"},{\"word\":\"reaffirm\",\"definition\":\"to confirm the validity of\"},{\"word\":\"dignity\",\"definition\":\"the state of being worthy of honor or respect\"},{\"word\":\"uphold\",\"definition\":\"to support or defend; to not judge against something\"},{\"word\":\"promote\",\"definition\":\"to raise to a higher level; to help or assist\"},{\"word\":\"protect\",\"definition\":\"to keep from being harmed\"}]" | |
}, | |
"7_fLLcFTx2U9rUFKeoTKwA" : { | |
"name" : "The Pirate Treasure", |
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
#!/bin/bash | |
URL="https://quill-writer.firebaseapp.com/#/" | |
PROMPTS="1 2 3 4 5" | |
USERS="1 2" | |
newRandomThing() | |
{ |
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
// ======================= | |
// Sumobot Jr demo program | |
// ======================= | |
var five = require("johnny-five"); | |
var keypress = require('keypress'); | |
keypress(process.stdin); | |
var board = new five.Board(); |
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
{ | |
"data" : [ | |
[ | |
"2013", | |
3.56 | |
], | |
[ | |
"2012", | |
3.681 | |
] |
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
{ | |
"request" : { | |
"series_id" : "PET.EMM_EPMR_PTE_R1Y_DPG.A", | |
"command" : "series" | |
}, | |
"series" : [ | |
{ | |
"source" : "EIA, U.S. Energy Information Administration", | |
"unitsshort" : "$/gal", | |
"geography" : "USA-DC+USA-DE+USA-MD+USA-NJ+USA-NY+USA-PA", |
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 ( | |
"code.google.com/p/go-tour/wc" | |
"strings" | |
) | |
func WordCount(s string) map[string]int { | |
words := strings.Fields(s) | |
counts := make(map[string]int) |
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 "code.google.com/p/go-tour/pic" | |
func Pic(dx, dy int) [][]uint8 { | |
image := make([][]uint8, dy) | |
for i := range image { | |
image[i] = make([]uint8, dx) | |
for x,_ := range image[i] { | |
image[i][x] = uint8(x^2 * x) |
NewerOlder