Skip to content

Instantly share code, notes, and snippets.

View robustdj's full-sized avatar

Derrick Camerino robustdj

View GitHub Profile

Keybase proof

I hereby claim:

  • I am robustdj on github.
  • I am dcamerino (https://keybase.io/dcamerino) on keybase.
  • I have a public key ASA4gSlDYMPRFwOpJXc1g6edgt2w802tZ7UXZTTMUM5fago

To claim this, I am signing this object:

import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
prop: 12
});
it 'shows items if there are pins matching current filter', ->
stubDefaultScheduledPins()
visit '/schedule'
Ember.Test.registerWaiter ->
find("#schedule .pins .pin-wrapper").length > 0
wait().then ->
findAllScheduledPinElements().length.should.be.above 0
@robustdj
robustdj / gist:2792261
Created May 26, 2012 04:48
swing songs
1. Anita O'Day: Sing Sing Sing
2. Sinéad O'Connor: I Want To Be Loved By You
3. The Manhattan Transfer: Four Brothers
4. Eric Triton: Mari Nica Swing
5. Tom Gaebel: It's A Good Life
6. The Ray Gelato Giants: Tuo Vuo Fa Americano
7. Gordon Goodwin's Big Phat Band: Sing Sang Sung
8. Dinah Washington: What A Difference A Day Makes
9. Wet Wet Wet: Beyond The Sea
10. David Lee Roth: Just A Gigolo
@robustdj
robustdj / .rspec
Created May 1, 2012 21:35
RSpec Formatter Documentation with instant stack traces upon failure
--colour
--backtrace
--require ./spec/support/documentation_instafail_formatter.rb
--format DocumentationInstafail
@robustdj
robustdj / dotcloud.yml
Created October 11, 2011 21:08
sample dotcloud.yml with (ruby web server, ruby worker, redis, and mysql)
www:
type: ruby
exclude_bundler_groups:
- development
- test
config:
ruby-version: 1.9.2
data:
type: mysql
redis:
ul.as-selections li.as-selection-item {
color: #fff;
font-weight: bold;
font-size: 13px;
font-family: "Lucida Grande", arial, sans-serif;
text-shadow: 0 0 0 #fff;
background-color: #9d001b;
background-image: none;
border: 0;
padding: 4px 7px 4px 10px;
paperclip_defaults: &paperclip_defaults
styles:
original: "800x600>"
medium: "300x300#"
thumb: "100x100#"
path: ":rails_root/public/user_images/:id/:style/:filename"
convert_options:
all: "-strip"
defaults: &defaults
@robustdj
robustdj / boy_name.rb
Created November 8, 2010 07:10
Boy Names
# using ruby 1.8.7
if ARGV.empty?
puts "USAGE: ruby boy_name.rb <letter>"
exit
end
file = File.open("boy_names.txt")
names = file.lines.to_a.group_by{|name| name[0,1]}
selected_names = names[ARGV[0].capitalize]
@robustdj
robustdj / for_loop.sh
Created November 8, 2010 06:19
for loop in shell
for i in 1 2 3 4 5 6 7 8; do echo "search$i"; ssh root@search$i 'ls -alhrt /ip/sphinx_index/production'; done