This file contains 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
'class' branch: (refactoring to make Flac2mp3 a class, use instance behavior, &c) | |
53 bin/flac2mp3 | |
151 lib/flac2mp3.rb | |
94 spec/flac2mp3_command_spec.rb | |
746 spec/flac2mp3_spec.rb | |
Total score = 145.244414937566 | |
Flac2mp3#convert_tags: (32.3) | |
20.9: assignment |
This file contains 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
Cassady:~/dev/scratch/plugin-testing yossef$ script/console | |
Loading development environment (Rails 2.0.2) | |
/>> cat = Category.new | |
=> #<Category id: nil, name: nil> | |
>> cat.name = 'testing' | |
=> "testing" | |
>> i = Item.new | |
=> #<Item id: nil, code: nil, category_id: nil> | |
>> i.code = 'test-1234' | |
=> "test-1234" |
This file contains 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
# This file is auto-generated from the current state of the database. Instead of editing this file, | |
# please use the migrations feature of Active Record to incrementally modify your database, and | |
# then regenerate this schema definition. | |
# | |
# Note that this schema.rb definition is the authoritative source for your database schema. If you need | |
# to create the application database on another system, you should be using db:schema:load, not running | |
# all the migrations from scratch. The latter is a flawed and unsustainable approach (the more migrations | |
# you'll amass, the slower it'll run and the greater likelihood for issues). | |
# | |
# It's strongly recommended to check this file into your version control system. |
This file contains 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
Host github.com | |
User git | |
Host github-flogic | |
HostName github.com | |
User git | |
IdentityFile /Users/yossef/.ssh/github_flogic | |
Host * | |
User ymendel |
This file contains 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
"The trigger for whether ssl should be used or not is in | |
app/controllers/application.rb:" | |
Sponsored Links | |
The Ultimate AR15 Trigger | |
A Bolt Trigger Feel For Your AR15 | |
Crisp Clean Safe Reliable | |
www.AMERICANTRIGGER.com |
This file contains 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
$ flog user.rb | |
/Library/Ruby/Gems/1.8/gems/ParseTree-2.2.0/lib/sexp_processor.rb:207:in `process': undefined method `first' for 0:Fixnum (NoMethodError) | |
from /Library/Ruby/Gems/1.8/gems/flog-1.1.0/lib/flog.rb:91:in `bleed' | |
from /Library/Ruby/Gems/1.8/gems/flog-1.1.0/lib/flog.rb:363:in `process_iter' | |
from /Library/Ruby/Gems/1.8/gems/flog-1.1.0/lib/flog.rb:86:in `bad_dog!' | |
from /Library/Ruby/Gems/1.8/gems/flog-1.1.0/lib/flog.rb:362:in `process_iter' | |
from /Library/Ruby/Gems/1.8/gems/ParseTree-2.2.0/lib/sexp_processor.rb:242:in `send' | |
from /Library/Ruby/Gems/1.8/gems/ParseTree-2.2.0/lib/sexp_processor.rb:242:in `process' | |
from /Library/Ruby/Gems/1.8/gems/ParseTree-2.2.0/lib/sexp_processor.rb:298:in `error_handler' | |
from /Library/Ruby/Gems/1.8/gems/ParseTree-2.2.0/lib/sexp_processor.rb:241:in `process' |
This file contains 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
class BestRPSPlayerEver | |
def play(*args) | |
screw_others | |
'R' | |
end | |
def name | |
'Mickey' | |
end | |
This file contains 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
Cassady:~ yossef$ irb | |
irb(main):001:0> require 'rubygems' | |
=> true | |
irb(main):002:0> require 'fsevents' | |
=> true | |
irb(main):003:0> stream = FSEvents::Stream.watch(File.expand_path('~/tmp')) do |events| | |
irb(main):004:1* p events | |
irb(main):005:1> end | |
=> #<FSEvents::Stream:0x1d8ad3c @dirs={}, @stream=#<OSX::ConstFSEventStreamRef:0x1d8ab34>, @paths=["/Users/yossef/tmp"], @mode=:mtime, @flags=0, @context=nil, @callback=#<Proc:0x01d8ae90@(irb):3>, @last_event=Sat Aug 09 16:47:55 -0500 2008, @latency=1.0, @allocator=nil, @since=-1> | |
irb(main):006:0> stream.run |
This file contains 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
#!/bin/sh | |
CWD=`pwd` | |
case $1 in | |
/*) | |
DIR=$1 | |
;; | |
*) | |
DIR=$CWD/$1 | |
;; |
This file contains 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
$ alias testsomeshit='echo "$@" feh' | |
$ testsomeshit bang | |
feh bang |
OlderNewer