Skip to content

Instantly share code, notes, and snippets.

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"
'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
@ymendel
ymendel / data-day.csv
Last active August 29, 2015 14:09
testing d3 candelstick with bl.ocks
Date Open High Low Close
22-Sep-14 243 248 242 242
23-Sep-14 242 243 239 239
24-Sep-14 239 243 238 241
25-Sep-14 241 243 240 242
26-Sep-14 242 246 240 245
27-Sep-14 245 245 242 242
28-Sep-14 242 243 242 243
29-Sep-14 243 243 240 242
30-Sep-14 242 243 239 242
Host github.com
User git
Host github-flogic
HostName github.com
User git
IdentityFile /Users/yossef/.ssh/github_flogic
Host *
User ymendel
# 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.
"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
$ 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'
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
class BestRPSPlayerEver
def play(*args)
screw_others
'R'
end
def name
'Mickey'
end
#!/bin/sh
CWD=`pwd`
case $1 in
/*)
DIR=$1
;;
*)
DIR=$CWD/$1
;;