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
// 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", |
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
// 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" |
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
var thinkForXMin = function(time, out){ | |
return new Promise( | |
function(t, c){ | |
setTimeout(function(){ | |
t(out); | |
}, time); | |
} | |
); | |
}; |