This file contains 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
{ | |
"consumer": { | |
"name": "FrontendWebsite" | |
}, | |
"interactions": [ | |
{ | |
"description": "get all products", | |
"providerStates": [ | |
{ | |
"name": "no products exist" |
This file contains 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
/* | |
* Creates a CSV "shopping list" from the Item List view in the Ikea Kitchen Planner. Unfortunately, | |
* Ikea does not provide an easy way to convert kitchen plans to your shopping cart. This is | |
* probably by design as they want you to come to the store and review your design with thier | |
* kitchen experts. This is good advice for most people as they will help you spot mistakes. This | |
* tool is intended for those experienced with Ikea kitchens. | |
* | |
* How To Use in Google Chrome: | |
* 1) Open your Ikea kitchen design. | |
* 2) Click on the "Item list/Total Price" button at the top. |
This file contains 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
# A demonstration of how Ruby's super keyword forwards on all arguments: | |
class A | |
def foo(*args) | |
puts "super class args are #{args.inspect}, block_given?: #{block_given?}" | |
end | |
end | |
class B < A | |
def foo(*argsb) |
This file contains 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
{ | |
"firebase": "my-awesome-app", | |
"rewrites": [ { | |
"source": "**", | |
"destination": "/index.html" | |
} ], | |
"headers": [ { | |
"source" : "**/*.html", | |
"headers" : [ { | |
"key" : "Cache-Control", |
This file contains 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
// GeoChart from https://google-developers.appspot.com/chart/interactive/docs/gallery/geochart | |
// Try out by pasting code into: https://code.google.com/apis/ajax/playground/?type=visualization#geo_chart | |
function drawVisualization() { | |
var data = google.visualization.arrayToDataTable([ | |
['State', 'Foo Factor'], | |
['US-IL', 200], | |
['US-IN', 300], | |
['US-IA', 20], |