I hereby claim:
- I am dmerrick on github.
- I am dmerrick (https://keybase.io/dmerrick) on keybase.
- I have a public key ASBfbOy8KJdeAf-NASIA0BQEMCwL2zXV1P-E-_czTSiQWAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| #!/bin/bash | |
| # wrapper script to include required ENV variables | |
| # set these if the variable is not already set | |
| # c.p. http://stackoverflow.com/a/11686779 | |
| export EXAMPLE_INT="${EXAMPLE_INT:=5}" | |
| export EXAMPLE_STRING="${EXAMPLE_STRING:=potatoes}" | |
| # actually run the binary | |
| ./bin/binary-name $* |
| [28,14,64] | |
| [46,80,44] | |
| [56,19,44] | |
| [38,65,44] | |
| [28,37,64] | |
| [48,25,44] | |
| [76,44,44] | |
| [42,58,44] | |
| [64,62,44] | |
| [34,31,64] |
| #!/usr/bin/env ruby | |
| input = { | |
| foo: [ 1, 2], | |
| bar: [ 3, 4] | |
| } | |
| num_args = input.values.first.size | |
| output = [] |
| #!/usr/bin/env ruby | |
| # this script takes a list of encoded words, | |
| # and returns the decoded message. for example: | |
| # | |
| # gravity-falls-decoder.rb 4-16-19 11-23-10 | |
| # | |
| # | |
| # we'll start by setting up some important variables |
| #!/usr/bin/env ruby | |
| # this script will delete ECR images that are older than N days | |
| require 'date' | |
| require 'json' | |
| # customize this script | |
| repo = 'snapdocs' | |
| delete_if_older_than = 60 # days |
Welcome!
This is the source code to twitch.tv/ADanaLife_
It is composed of two parts:
| #!/usr/bin/env ruby | |
| require 'sinatra' | |
| require 'pp' | |
| # env.oy/<random_str> | |
| $data = {} | |
| def generate_random_string(length = 5) |
| #!/usr/bin/env ruby | |
| require 'pp' | |
| require 'open-uri' | |
| require 'json' | |
| input = "61.210841,-149.888735\nSan Francisco\n33132" | |
| places = input.split(/\n/) | |
| results = {} |
| #!/usr/bin/env ruby | |
| require 'pp' | |
| require 'awesome_print' | |
| # example_line = 'www-c8.proxy.aol.com - - [31/Aug/1995:23:59:52 -0400] "GET /icons/unknown.xbm HTTP/1.0" 200 515' | |
| # line = example_line | |
| results = {} |