Skip to content

Instantly share code, notes, and snippets.

container_commands:
sync_db:
command: "docker run --env DATABASE_URL=`/opt/elasticbeanstalk/bin/get-config environment | jq -r .DATABASE_URL` aws_beanstalk/current-app:latest lein lobos migrate"
leader_only: true
characters = ["astro.png",
"banyan.png",
"bear.png",
"bird.png",
"chillanna.png",
"cupcake.png",
"dino.png",
"frog.png",
"gorilla.png",
"monkey.png",
@toothrot
toothrot / riot_example.rb
Created July 20, 2010 21:19 — forked from gus/riot_example.rb
dick jokes
require 'rubygems'
require 'riot'
context "Something" do
setup do
D = 8
end
asserts("big") { 8==D }
asserts("bigger") { 8===D }
@toothrot
toothrot / index.txt
Created November 30, 2009 20:21 — forked from mmcgrana/index.txt
For each Ruby module/class, we have Ruby methods on the left and the equivalent
Clojure functions and/or relevant notes are on the right.
For clojure functions, symbols indicate existing method definitions, in the
clojure namespace if none is explicitly given. clojure.contrib.*/* functions can
be obtained from http://github.com/kevinoneill/clojure-contrib/tree/master,
ruby-to-clojure.*/* functions can be obtained from the source files in this
gist.
If no method symbol is given, we use the following notation:
locations = {
:name1 => "\\\\192.168.2.101\\e$\\gw.log",
:name2 => "\\\\192.168.2.101\\e$\\cima.log",
:name3 => "\\\\is-util02\\c$\\eba.log",
:name4 => "\\\\192.168.2.30\\c$\\DATA\\USERCOPYLOG.LOG",
:name5 => "\\\\192.168.2.30\\c$\\DATA\\PSTS.LOG",
:name6 => "\\\\192.168.2.105\\c$\\Program Files\\Windows Resource Kits\\Tools\\RC.log",
:name7 => "\\\\192.168.2.105\\c$\\Program Files\\Windows Resource Kits\\Tools\\RC2.log",
:name8 => "\\\\192.168.100.96\\f$\\QBROBOCOPY.LOG",
:name9 => "\\\\192.168.2.114\\c$\\RC2.LOG",
Shoes.app(:width => 200, :height => 70 * 4 + 40) do
background black
colors = [red, blue, green, yellow]
people = ["steve","ed","nick","tom"]
@next_color = colors.cycle
@next_color.next
@previous_color = colors.cycle
(colors.length - 1).times { @previous_color.next }