This file contains 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
guard 'livereload' do | |
watch(%r{app/views/.+\.(erb|haml|slim)$}) | |
watch(%r{app/helpers/.+\.rb}) | |
watch(%r{public/.+\.(css|js|html)}) | |
watch(%r{config/locales/.+\.yml}) | |
# Rails Assets Pipeline | |
watch(%r{(app|vendor)(/assets/\w+/(.+\.(css|js|coffee|less|html|png|jpg|hbs|emblem))).*}) { |m| "/assets/#{m[3]}" } | |
end |
This file contains 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 ApplicationController | |
before_fitler :autfind_stuff | |
def self.autofinders | |
@autofinders ||= [] | |
end | |
def self.autofind(param, &block) | |
autofinders << [param, block] | |
end |
This file contains 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
.editor.is-focused { | |
.cursor { | |
transition: opacity .25s ease-in-out; | |
opacity: 0.7; | |
background: gray; | |
border: none; | |
&.blink-off { | |
visibility: visible; | |
opacity: 0.2; |
This file contains 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 random_hex(size) { | |
return Array.apply(null, Array(size)).map(function() { | |
return (Math.random()*16|0).toString(16); | |
}).join(""); | |
} | |
console.log(random_hex(128)); |
This file contains 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
Wetsuit, size M/MT (height 182cm, weight 77kg), thickness 3/2mm, colors black/red/yellow | |
Climbing shoes (size 44.5) | |
Manly surfing school | |
Longboard, mini cruiser skateboard (not a penny board), something with a kicktail, ~27" long, something like this one http://i.ebayimg.com/00/s/NTA0WDUwNA==/z/QD0AAMXQ1d1TGjaH/$_12.JPG | |
Cheezburger |
This file contains 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
atom-text-editor.is-focused::shadow .cursors { | |
.cursor { | |
transition: opacity .2s ease-out; | |
opacity: 0.7; | |
background: gray; | |
border: none; | |
border-radius: 1px; | |
} | |
&.blink-off .cursor { |
This file contains 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 parent_removal_behavior = { | |
click: function() { | |
this.parent().hide(); | |
} | |
}; | |
// assigning to css-rules | |
".remove_parent".behave(parent_removal_behavior); | |
".some_other_rule".behave(parent_removal_behavior); |
This file contains 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
Behavior.delegate = function(rules) { | |
return function(e) { | |
var element = $(e.target); | |
for (var selector in rules) | |
if (element.match(selector)) return rules[selector].apply(this, arguments); | |
} | |
}; | |
".something".behave('click', Behavior.delegate({ | |
".foo": function() { return 'foo'; }, |
This file contains 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 Klass = new Class((function() { | |
var private_method = function() { | |
// bla bla bla | |
}; | |
return { | |
initialize: function() { |
This file contains 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
RightJS.run(function(_) { | |
with (_) { | |
var Klass = new Class(Observer, { | |
EVENTS: $w('some darn events'), | |
initialize: function() { | |
alert("Holy Jack!") | |
} | |
}); | |
OlderNewer