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
<snippet> | |
<!-- put this file in /packages/User/console_log.sublime-snippet --> | |
<content><![CDATA[console.log($1);$0]]></content> | |
<tabTrigger>con</tabTrigger> | |
<description>console.log()</description> | |
</snippet> |
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
<snippet> | |
<content><![CDATA[$1: function(){ | |
$0 | |
},]]></content> | |
<tabTrigger>fnc</tabTrigger> | |
<description>object function</description> | |
</snippet> |
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
utils = { | |
log: function() { | |
this.__log("log", arguments); | |
}, | |
info: function() { | |
this.__log("info", arguments); | |
}, | |
warn: 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
utils = { | |
ie: (function(){ | |
var undef, | |
v = 3, | |
div = document.createElement("div"), | |
all = div.getElementsByTagName("i"); | |
while ( | |
div.innerHTML = "<!--[if gt IE " + (++v) + "]><i></i><![endif]-->", | |
all[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
function Test() { | |
var _secret = "12345"; | |
// private method | |
function __private() { | |
return _secret; | |
} | |
// publicly accessible method and can access private vars & methods | |
this.priviledged = 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
'use strict'; | |
var Backbone = require('backbone'); | |
var Mn = require('backbone.marionette'); | |
// var _ = require('underscore'); | |
// var config = require('libs/config'); | |
// var utils = require('libs/utils'); | |
/** |
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
'use strict'; | |
var Backbone = require('backbone'); | |
var Mn = require('backbone.marionette'); | |
// var _ = require('underscore'); | |
// var config = require('libs/config'); | |
// var utils = require('libs/utils'); | |
/** |
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
'use strict'; | |
var Backbone = require('backbone'); | |
var Mn = require('backbone.marionette'); | |
// var _ = require('underscore'); | |
// var config = require('libs/config'); | |
// var utils = require('libs/utils'); | |
/** |
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
<!--[if IE]> | |
<script>document.write('<base href="' + window.location.protocol + '//' + window.location.host + '/" />');</script> | |
<![endif]--> | |
<![if !IE]> | |
<script>document.write('<base href="/" />');</script> | |
<![endif]> |