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
$ () -> | |
scrolls = $('.scroll') | |
if scrolls.length | |
scrolls.click (e) -> | |
href = $(this).attr('href') | |
fragments = href.split('#') | |
if fragments.length > 1 && fragments[0] == "#{window.location}".split('#')[0] | |
e.preventDefault() | |
$('html,body').animate({scrollTop: $("a[name=#{fragments[fragments.length-1]}]").offset().top}, {duration: 'fast', complete: () -> | |
window.location = href |
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 Task | |
after_save :nofity_for_next_tasks | |
def notify! | |
unless user_notified? # This is a new column | |
send_actual_email_somehow(task, user) | |
update_attribute(:user_notified, true) | |
end | |
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 Candidate | |
def this_is_instance_method | |
end | |
def self.this_is_class_method | |
end | |
class << self |
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
(function() { | |
window.DS = Ember.Namespace.create({ | |
CURRENT_API_REVISION: 4 | |
}); | |
})(); | |
(function() { |
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
MyApp.CarTextField = Ember.View.(create || expand)(function(){ | |
valueBinding: 'car' // Because you passed car in like an argument | |
beep: function(){ | |
// Beep! | |
}.observes('car.isMazda') | |
}); |
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
@function mycompact($one, $two, $three, $four, $five, $six, $seven, $eight, $nine, $ten) { | |
$originalList: $one, $two, $three, $four, $five, $six, $seven, $eight, $nine, $ten; | |
$compactList: (); | |
@each $item in $one, $two, $three, $four, $five, $six, $seven, $eight, $nine, $ten { | |
@if $item != false { | |
append $compactList, $item; | |
} | |
} | |
@return( $compactList ); | |
} |
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
Host gitolite-admin-account | |
HostName localhost | |
User matthewbeale | |
Port 22 | |
IdentityFile ~/.ssh/matthewbeale |
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
$ depdep deploy | |
-- Before Deployment -- | |
REV 23d23f2f23f23f2 | |
Last deploy by Iago <[email protected]> at 2011-12-03 13:42:34 | |
Deployment is not locked | |
-- Deploying Site -- | |
Local REV is 12312412412412 | |
Running predeploy hooks... | |
Locking for deployment... |
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
(function() { | |
window.DS = Ember.Namespace.create({ | |
CURRENT_API_REVISION: 10 | |
}); | |
})(); | |
(function() { |