Skip to content

Instantly share code, notes, and snippets.

View gerryster's full-sized avatar

Ryan Gerry gerryster

  • Woodstock, IL, USA
View GitHub Profile
@gerryster
gerryster / us_geo_chart_google
Created December 8, 2012 23:13
US State Map using the GeoChart from the Google Chart Tools
// 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],
@gerryster
gerryster / gist:18b67d6209c72a9739c0
Last active July 8, 2018 17:54
firebase.json with support for HTML5 routing and cache busting (as long as the compiled html file also supports cache busting).
{
"firebase": "my-awesome-app",
"rewrites": [ {
"source": "**",
"destination": "/index.html"
} ],
"headers": [ {
"source" : "**/*.html",
"headers" : [ {
"key" : "Cache-Control",
@gerryster
gerryster / super_forwards_everything.rb
Created April 25, 2016 17:55
A demonstration of how Ruby's super keyword forwards on all arguments
# 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)
/*
* 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.
{
"consumer": {
"name": "FrontendWebsite"
},
"interactions": [
{
"description": "get all products",
"providerStates": [
{
"name": "no products exist"