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
[ | |
{ "keys": ["super+d"], "command": "duplicate_line" }, | |
{ "keys": ["ctrl+shift+k"], "command": "run_macro_file", "args": {"file": "res://Packages/Default/Delete Line.sublime-macro"} }, | |
{ "keys": ["super+shift+d"], "command": "run_macro_file", "args": {"file": "res://Packages/Default/Delete Line.sublime-macro"} }, | |
{ "keys": ["super+j"], "command": "join_lines" }, | |
{ "keys": ["ctrl+shift+j"], "command": "join_lines" }, | |
{ "keys": ["super+\\"], "command": "reveal_in_side_bar" }, | |
{ "keys": ["super+alt+l"], "command": "reindent" }, | |
// Select text between brackets | |
{ |
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 Command | |
include ActiveModel::Validations | |
include ActiveRecord::Serialization | |
include Virtus | |
include VirtusParameters | |
def initialize(params = {}) | |
super | |
parse_params params | |
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
# simple commands to alter the GOPATH for longer than a single command | |
alias guse='GOPATH=$(godep path):$HOME/dev/go' | |
alias greset='GOPATH=$HOME/dev/go' |
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 AssignCaseCommand < Command | |
attribute :case, Case | |
attribute :owner, User | |
attribute :created_by, User | |
attribute :comments, String | |
attribute :distribute_at, DateTime | |
attribute :distribute_rule_name, String | |
attribute :require_initial, Boolean |
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
app = (function () { | |
var Namespace = function () { | |
} | |
var Module = function () { | |
} | |
Namespace.prototype.createModule = function () { | |
var m = new Module; | |
if(arguments.length > 0) |
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
mything = (function(){ | |
var Foo, Bar, binky, boo; | |
binky = function() { | |
// does something useful | |
}; | |
boo = function() { | |
// does something amazing | |
}; |
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
company = app.namespace(company); | |
company.master= app.namespace(company.master) |
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
company.master.users = company.master.createModule( function(){ | |
var RevealedClass, hiddenFunction | |
RevealedClass = function(){ | |
// stuff | |
}; | |
hiddenFunction = function(){}; | |
// this is the private area of the module | |
this.privateThing = 42; |
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
company.master.users = company.master.users.extend(function(){ | |
// use it | |
var myLocalThing = this.privateThing, | |
ExposedClass = function(){ | |
}; | |
return { | |
Exposed:ExposedClass | |
} | |
}); |
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
company.master.users = company.master.users.extend(function($, log){ | |
}, $, loggingSystem); |
OlderNewer