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
namespace :type_of_task do | |
task :name_of_task => [:task_dependency] do | |
puts "I Work!" | |
end | |
task :task_dependency do | |
puts "I am working as well!" | |
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
var TodoItem = Backbone.Model.extend({}); | |
var TodoView = Backbone.View.extend({ | |
render: function(){ | |
var html = '<h3>' + this.model.get('description') + '</h3>' | |
this.$el.html(html); | |
return this; | |
} | |
}); |
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
validate: function(attrs, options){ | |
if (attrs.data[0].value === null || | |
attrs.data[1].value === null || | |
attrs.data[2].value === null || | |
attrs.data[3].value === null || | |
attrs.data[4].value === null || | |
attrs.data[5].value === null || | |
attrs.data[6].value === null || | |
attrs.data[7].value === null || | |
attrs.data[8].value === null || |
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 myLib = (function() { | |
// Using IIFE + Closure | |
var $cachedLookup = $('.element'); | |
function hideCachedElement() { | |
$cachedLookup.hide(); | |
} | |
return { | |
hide: hideCachedElement |
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
{ | |
"key": "cmd+1", | |
"command": "workbench.action.openEditorAtIndex1" | |
}, | |
{ | |
"key": "cmd+2", | |
"command": "workbench.action.openEditorAtIndex2" | |
}, | |
{ | |
"key": "cmd+3", |
OlderNewer