Skip to content

Instantly share code, notes, and snippets.

View austinbv's full-sized avatar
🎯
Focusing

Austin austinbv

🎯
Focusing
View GitHub Profile
var fun = function(para1, para2, callback) {
console.log(para1);
callback();
console.log(para2);
}
fun('hello', '!', function(){
console.log('world');
})
def fun(para1, para2)
puts para1
yield
puts para2
true
end
fun("hello", "!") do
puts "world"
end
$(that.el).children('.event:last').css({
position:'absolute',
height:'60%',
top:'10%',
left:meeting.startDistance() + 'px',
width: '200px',
background:'green'
});
var date = new Date(), that = this;
setTimeout(function () {
setInterval(function () {
that.updateAttribute.bind(that)
}, 60*1000)
}, 1000 - date.getMiliseconds())
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();
[~] 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>
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
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"}
<%=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') %>
class Work < ActiveRecord::Base
# ...
end
class Project < Work
# ...
end