Skip to content

Instantly share code, notes, and snippets.

@jcavena
jcavena / game_loop.rb
Created August 27, 2016 21:01 — forked from jimnanney/game_loop.rb
Sonic pi game loop
use_debug false
notes = (scale :b2, :minor_pentatonic, num_octaves: 3).shuffle
live_loop :drums do
sample :bd_haus, amp: 3
sleep 0.25
sample :drum_snare_hard
sleep 0.25
end
@jcavena
jcavena / blue_monday.rb
Created August 27, 2016 20:56 — forked from jimnanney/blue_monday.rb
Sonic Pi - Blue Monday
define :mydrums do
2.times do
sample :drum_heavy_kick
sleep 0.5
end
8.times do
sample :drum_heavy_kick
sleep 0.125
end

Trello CSS Guide

“I perfectly understand our CSS. I never have any issues with cascading rules. I never have to use !important or inline styles. Even though somebody else wrote this bit of CSS, I know exactly how it works and how to extend it. Fixes are easy! I have a hard time breaking our CSS. I know exactly where to put new CSS. We use all of our CSS and it’s pretty small overall. When I delete a template, I know the exact corresponding CSS file and I can delete it all at once. Nothing gets left behind.”

You often hear updog saying stuff like this. Who’s updog? Not much, who is up with you?

This is where any fun you might have been having ends. Now it’s time to get serious and talk about rules.

Writing CSS is hard. Even if you know all the intricacies of position and float and overflow and z-index, it’s easy to end up with spaghetti code where you need inline styles, !important rules, unused cruft, and general confusion. This guide provides some architecture for writing CSS so it stays clean and ma

## Prepare ###################################################################
# Remove RVM
rvm implode
# Ensure your homebrew is working properly and up to date
brew doctor
brew update
## Install ###################################################################
#!/usr/bin/env ruby
if ARGV == ['who', 'is', 'this?']
puts "THIS IS SPARTA!!!"
end
puts (words = File.read('/usr/share/dict/words')).length
good_words = words.split.select {|w| w.size > 6}
puts good_words.sample(3).join(' ')
Thread.new{ STDERR.<< ", \n A PLAY IN 3 PARTS.\n\n============ PAGE " }
puts good_words.length
puts File.read(__FILE__).split.detect{|_| _ =~ /SPARTA/}
@jcavena
jcavena / gist:3450535
Created August 24, 2012 13:28 — forked from ahoward/gist:3423753
Everything you can override in a refinerycms project with refinerycms-blog
When starting a project that includes refinerycms-blog:
$ rake refinery:override view=refinery/pages/*
$ rake refinery:override view=layouts/*
$ rake refinery:override view=refinery/blog/shared/*
$ rake refinery:override view=refinery/blog/posts/*
$ rake refinery:override view=refinery/*
$ rake refinery:override controller=refinery/blog/*
$ rake refinery:override controller=refinery/*