My Recent Pastes (429 and counting)
Pastes by Dreamer3 (429 and counting)
Below are the 15 most recent pasties by Dreamer3.
June 06, 2011
6:32AM EDT
by Dreamer3
View all 16 lines
var Boy = {} var Girl = {} (function() { var Super; Super = (function() {
June 05, 2011
10:37PM EDT
by Dreamer3
View all 7 lines
(function() { var Test; Test = (Test = (function() { function Test() {} return Test;
June 04, 2011
7:20AM EDT
by Dreamer3
View all 46 lines
diff --git a/lib/sprockets/engines.rb b/lib/sprockets/engines.rb index ebeb765..d1f8d30 100644 --- a/lib/sprockets/engines.rb +++ b/lib/sprockets/engines.rb @@ -1,4 +1,5 @@
June 03, 2011
10:24PM EDT
by Dreamer3
I, [2011-06-03T22:23:55.508563 #43566] INFO -- : Compiled ~/git/jsplay/app/assets/all.js (3ms) (pid 43566) I, [2011-06-03T22:23:55.515999 #43566] INFO -- : Compiled ~/git/jsplay/app/assets/javascript/jquery-1.6.1.js (6ms) (pid 43566) I, [2011-06-03T22:23:55.518412 #43566] INFO -- : Compiled ~/git/jsplay/app/assets/javascript/underscore.js (1ms) (pid 43566) I, [2011-06-03T22:24:08.253547 #43566] INFO -- : Compiled ~/git/jsplay/app/assets/all.js (12733ms) (pid 43566) I, [2011-06-03T22:24:08.254681 #43566] INFO -- : Served asset /all.js - 200 OK (14ms) (pid 43566)
June 03, 2011
10:05PM EDT
by Dreamer3
View all 6 lines
ree-1.8.7-2011.03 :015 > trail=Sprockets::Environment.new("./app/assets/").instance_variable_get("@trail") => #<Hike::Trail:0x10279e110 @root=#<Pathname:/Users/jgoebel/git/jsplay/app/assets>, @extensions=[".ejs", ".str", ".coffee", ".less", ".sass", ".erb", ".jst", ".scss", ".css", ".js"], @paths=[]> ree-1.8.7-2011.03 :016 > trail.find "all" => nil ree-1.8.7-2011.03 :018 > File.exists?(File.join(trail.root,"all.js"))
June 03, 2011
9:57PM EDT
by Dreamer3
View all 8 lines
ree-1.8.7-2011.03 :038 > puts `ls app/assets` all.js css javascript => nil
June 02, 2011
9:37AM EDT
by Dreamer3
131: def protected_attributes 132: self._protected_attributes ||= BlackList.new(attributes_protected_by_default).tap do |w| 133: w.logger = self.logger if self.respond_to?(:logger) 134: end 135: end
June 02, 2011
9:36AM EDT
by Dreamer3
126: def attr_accessible(*names) 127: self._accessible_attributes = self.accessible_attributes + names 128: self._active_authorizer = self._accessible_attributes 129: end
June 01, 2011
3:41AM EDT
by Dreamer3
View all 28 lines
class Foo < ActiveRecord::Base has_many :foo_bar_selections has_many :bars, :through => :foo_bar_selections end
May 30, 2011
7:23PM EDT
by Dreamer3
View all 13 lines
## jruby ruby-1.9.2 :006 > ratnikov-macbookpro:appengine-rails3 ratnikov$ rvm use jruby Using /Users/ratnikov/.rvm/gems/jruby-1.6.1 ratnikov-macbookpro:appengine-rails3 ratnikov$ irb jruby-1.6.1 :001 > system({ 'FOO' => 'bar' }, "echo $FOO")
May 30, 2011
7:01PM EDT
by Dreamer3
View all 79 lines
jack@hivemind:~$ rails server Usage: rails new APP_PATH [options] Options:
May 26, 2011
7:15AM EDT
by Dreamer3
View all 15 lines
class Currency MAPPINGS = { "GBP" => "£", "EUR" => "€", "USD" => "$", "AUD" => "$", "CAD" => "$" }
May 25, 2011
1:15AM EDT
by Dreamer3
View all 13 lines
~/git/raptor(master↑1…) % rvm ree-1.8.7-2010.02@global gem list *** LOCAL GEMS *** rake (0.8.7)
