Skip to content

Instantly share code, notes, and snippets.

View LarryBattleWork's full-sized avatar

Larry Battle at Work LarryBattleWork

View GitHub Profile
@LarryBattleWork
LarryBattleWork / list_of_starbucks_drinks.js
Created January 2, 2019 05:19
List of a few drinks from Starbucks in a JSON format
// Jan 1, 2018
// Extracted from https://www.starbucks.com/menu/catalog/product#view_control=product&drink=iced-coffee
// MIT license - Author: LarryBattle
[
"almond protein blended cold brew",
"almond protein blended cold brew frappuccino",
"black and white hot cocoa frappuccino",
"black and white mocha",
"black and white mocha frappuccino",
"black and white mocha refresher",
@LarryBattleWork
LarryBattleWork / server.go
Created September 16, 2016 20:12
View the headers of a request
// Works with Golang 1.7
// Run `go run server.go` and then visit the url shown
package main
import (
"fmt"
"net/http"
)
const PORT = "8080"
@LarryBattleWork
LarryBattleWork / simplePromiseExample.js
Created February 10, 2016 22:32
Simple Promise Example
var thinkForXMin = function(time, out){
return new Promise(
function(t, c){
setTimeout(function(){
t(out);
}, time);
}
);
};