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 fun = function(para1, para2, callback) { | |
| console.log(para1); | |
| callback(); | |
| console.log(para2); | |
| } | |
| fun('hello', '!', function(){ | |
| console.log('world'); | |
| }) |
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 fun(para1, para2) | |
| puts para1 | |
| yield | |
| puts para2 | |
| true | |
| end | |
| fun("hello", "!") do | |
| puts "world" | |
| end |
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
| $(that.el).children('.event:last').css({ | |
| position:'absolute', | |
| height:'60%', | |
| top:'10%', | |
| left:meeting.startDistance() + 'px', | |
| width: '200px', | |
| background:'green' | |
| }); |
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 date = new Date(), that = this; | |
| setTimeout(function () { | |
| setInterval(function () { | |
| that.updateAttribute.bind(that) | |
| }, 60*1000) | |
| }, 1000 - date.getMiliseconds()) |
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
| Clock:Backbone.Model.extend({ | |
| weekDays:['Sunday', 'Monday', 'Tuesday', 'Wednesday', | |
| 'Thursday', 'Friday', 'Saturday'], | |
| months:['January', 'February', 'March', 'April', | |
| 'May', 'June', 'July', 'August', | |
| 'September', 'October', 'November', 'December'], | |
| initialize:function () { | |
| var that = this, today = new Date(); |
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
| [~] ifconfig -- INSERT -- | |
| lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 | |
| options=3<RXCSUM,TXCSUM> | |
| inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1 | |
| inet 127.0.0.1 netmask 0xff000000 | |
| inet6 ::1 prefixlen 128 | |
| gif0: flags=8010<POINTOPOINT,MULTICAST> mtu 1280 | |
| stf0: flags=0<> mtu 1280 | |
| en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500 | |
| options=2b<RXCSUM,TXCSUM,VLAN_HWTAGGING,TSO4> |
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
| 2/11/12 6:19:37.697 PM KisMAC: Unknown class ColoredRowOutlineView in Interface Builder file at path /Applications/KisMAC.app/Contents/Resources/English.lproj/MainMenu.nib. | |
| 2/11/12 6:19:37.702 PM KisMAC: Unknown class ColoredRowTableView in Interface Builder file at path /Applications/KisMAC.app/Contents/Resources/English.lproj/MainMenu.nib. | |
| 2/11/12 6:19:37.756 PM KisMAC: { | |
| IOProviderClass = IOUSBDevice; | |
| idProduct = 2110; | |
| idVendor = 6017; | |
| } | |
| 2/11/12 6:19:37.759 PM KisMAC: DEVICE ADDED | |
| 2/11/12 6:19:37.845 PM KisMAC: KisMAC startup done. Version 0.3.3. Build from Jul 31 2011 14:39:49. Homedir is /Applications/KisMAC.app. NSAppKitVersionNumber: 1138.230000 |
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
| work POST /work(.:format) {:controller=>"works", :action=>"create"} | |
| new_work GET /work/new(.:format) {:controller=>"works", :action=>"new"} | |
| edit_work GET /work/edit(.:format) {:controller=>"works", :action=>"edit"} | |
| GET /work(.:format) {:controller=>"works", :action=>"show"} | |
| PUT /work(.:format) {:controller=>"works", :action=>"update"} | |
| DELETE /work(.:format) {:controller=>"works", :action=>"destroy"} |
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
| <%=link_to 'Edit Estimate', edit_work_path(work), :class => 'button-bar start go' -%> | |
| <%=link_to 'Make Project', dashboard_path, :method => :post, :class => 'button-bar add' -%> | |
| <%=link_to('Cancel', client_path(client), :class => 'button-bar default end') %> |
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
| class Work < ActiveRecord::Base | |
| # ... | |
| end | |
| class Project < Work | |
| # ... | |
| end |