This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Paperclip | |
# Creates short snippets of an mp3 | |
# SoX FTW! http://sox.sourceforge.net/sox.html | |
class TrackPreview < Processor | |
def initialize(file, options = {}) | |
super | |
@file = file | |
@current_format = File.extname(@file.path) | |
@basename = File.basename(@file.path, @current_format) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=cannot_be_selected_with_a_mousing_device | |
:-webkit-user-select none | |
:-moz-user-select none | |
:-o-user-select none | |
:user-select none | |
:cursor default | |
.my_fancy_interface_widget | |
+cannot_be_selected_with_a_mousing_device |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
whitey:dev grant$ cat test.sass | |
= vendor_attribute(!attribute, !value) | |
:-webkit-#{!attribute} #{!value} | |
:-moz-#{!attribute} #{!value} | |
:-o-#{!attribute} #{!value} | |
:#{!attribute} #{!value} | |
h1 | |
+vendor_attribute("box-shadow", "1px 1px 1px red") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!column_width = 60px | |
!gutter = 20px | |
!baseline = 20px | |
=columns( !number_of_columns ) | |
:width = !column_width * !number_of_columns + !gutter * (!number_of_columns - 1) | |
:display inline | |
:float left | |
:margin 0 10px |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading development environment (Rails 2.2.2) | |
>> Abingo.test('yay', [1,2]) | |
=> 1 | |
>> Abingo.test('yay', [1,2]) | |
=> 1 | |
>> Abingo.test('hay', [1,2]) | |
TypeError: can't modify frozen array | |
from /Users/grant/dev/soundfolder/vendor/plugins/abingo/lib/abingo.rb:65:in `<<' | |
from /Users/grant/dev/soundfolder/vendor/plugins/abingo/lib/abingo.rb:65:in `test' | |
from (irb):3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ gem buy enki | |
orly? [Y/n] | |
Installed enki | |
Sent two bucks to Xav | |
$ apt-get buy rails | |
orly? [Y/n] | |
rails is already installed | |
sent two bucks to [email protected] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget -m http://example.com |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def storage_quota_in_minutes | |
# ,--------------------------. | |
# |o ^ _____ BASF o|. | |
# |- ,' `. -|| | |
# | / *** \ *** || | |
# | | *(_)* :|:::: *(_)* || | |
# | \ *** / *** \ || | |
# |\|`. _____'_________ \ /|| | |
# |.| / o \\ \.|| | |
# |o()/__O|o|_____|o|O__\\()o|| |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"You will receive a confimation email within the business day. If you don't receive a confirmation email, please call 13 6954 (13 myki) with your myki reference number." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jetset:~ grant$ mdfind "kMDItemRecordingYear == 1981" | |
/Users/grant/Music/iTunes/iTunes Music/Music/Midnight Oil/Place Without A Postcard/11 Lucky Country.mp3 | |
/Users/grant/Music/iTunes/iTunes Music/Music/Midnight Oil/Place Without A Postcard/10 If Ned Kelly Was King.mp3 | |
/Users/grant/Music/iTunes/iTunes Music/Music/Midnight Oil/Place Without A Postcard/09 Loves On Sale.mp3 | |
/Users/grant/Music/iTunes/iTunes Music/Music/Midnight Oil/Place Without A Postcard/08 Quinella Holiday.mp3 | |
/Users/grant/Music/iTunes/iTunes Music/Music/Midnight Oil/Place Without A Postcard/07 Burnie.mp3 | |
/Users/grant/Music/iTunes/iTunes Music/Music/Midnight Oil/Place Without A Postcard/06 Written In The Heart.mp3 | |
/Users/grant/Music/iTunes/iTunes Music/Music/Midnight Oil/Place Without A Postcard/05 Basement Flat.mp3 | |
/Users/grant/Music/iTunes/iTunes Music/Music/Midnight Oil/Place Without A Postcard/04 Someone Else To Blame.mp3 | |
/Users/grant/Music/iTunes/iTunes Music/Music/Midnight Oil/Place Without A Postcard/03 Armistice Day.mp3 |
OlderNewer