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
| $('#fixHead td.change').click (evt)-> # jQuery will automatically add the event handler to | |
| # every matching element, no need for $.each. | |
| evt.preventDefault() # instead of returning false in an event handler | |
| # (this is a general JS tip, not just CS) | |
| $this = $ this # since you use $(this) twice, just keep it around | |
| $('#contactArea').load $this.data 'content' # parentheses are optional... | |
| $("#ui-dialog-title-dialog").text($this.attr 'title') # but still useful for clarity | |
| centerPopup() | |
| loadPopup() |
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
| MIME-Version: 1.0 | |
| Received: by 10.147.40.10 with HTTP; Wed, 12 Oct 2011 12:14:39 -0700 (PDT) | |
| Date: Wed, 12 Oct 2011 14:14:39 -0500 | |
| Delivered-To: jrunning@g***l.com | |
| Message-ID: <CAEi5Ti8cXuMF=XCrFH1s1W3S_oMnZL66SrGkryW1vi2E-quzYQ@mail.gmail.com> | |
| Subject: Test | |
| From: Jordan Running <jrunning@g***l.com> | |
| To: Jordan Running <jrunning+foo@g***l.com> | |
| Content-Type: multipart/alternative; boundary=000e0cd4d5c0e4c1b804af1ed5ab |
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
| Fhqwhgads:IntroMe (design)$ rake db:setup --trace | |
| (in /Users/jordan/Documents/Dev/IntroMe) | |
| ** Invoke db:setup (first_time) | |
| ** Invoke db:create (first_time) | |
| ** Invoke db:load_config (first_time) | |
| ** Invoke rails_env (first_time) | |
| ** Execute rails_env | |
| ** Execute db:load_config | |
| ** Execute db:create | |
| db/test.sqlite3 already exists |
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
| !! BEFORE: one table | |
| `some_table` | |
| some_col | another_col | ascii_stuff | |
| ---------+-------------+------------ | |
| abc | ... | xyzzy | |
| abc | ... | idspispopd | |
| uvw | | idspispopd | |
| wzy | | it is a good day to die |
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
| var C = Backbone.Model.extend({ | |
| foo : function() { return this.constructor.bar; } | |
| }, { | |
| bar : 123 | |
| }); | |
| var ci = new C; | |
| ci.foo(); | |
| // -> 123 |
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
| {} |
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
| { "write" : "one" } |
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
| { "hey" : "there" } |
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
| { "hey" : "there" } |
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
| { "Hello" : "World." } |