I hereby claim:
- I am douathao on github.
- I am douathao (https://keybase.io/douathao) on keybase.
- I have a public key ASBU-ELgbaPFfI8PfNwdHWZwN-UwjjOhdOzcXsErZeciMwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
(function($, window, undefined) { | |
$.fn.myPlugin = function(opts) { | |
var defaults = { | |
// setting your default values for options | |
}; | |
// extend the options from defaults with user's options | |
var options = $.extend(defaults, opts || {}); | |
return this.each(function() { // jQuery chainability | |
// do plugin stuff | |
}); |
<snippet> | |
<content><![CDATA[ | |
/********************************************************/ | |
console.group('%c${1:data} :', 'color:red;font:strait'); | |
console.log(${1:data}); | |
console.groupEnd(); | |
/********************************************************/ | |
]]></content> | |
<!-- Optional: Set a tabTrigger to define how to trigger the snippet --> | |
<tabTrigger>log</tabTrigger> |
for (var i = 1; i <= 100; i++) { | |
var isDividibleByThree = i % 3 === 0; | |
var isDivisibleByFive = i % 5 === 0; | |
if (isDividibleByThree && isDivisibleByFive) { | |
console.log('FizzBuzz'); | |
} else if (isDividibleByThree) { | |
console.log('Fizz'); | |
} else if (isDivisibleByFive) { | |
console.log('Buzz'); |
/********************************************************/ | |
console.group('%c$data$ :', 'color:red;font:strait'); | |
console.log($data$); | |
console.groupEnd(); | |
/********************************************************/ | |
-------------------------- | |
(function () { | |
'use strict'; |
{ | |
"excludeFiles": ["node_modules/**", "bower_components/**"], | |
"requireCurlyBraces": [ | |
"if", | |
"else", | |
"for", | |
"while", | |
"do", | |
"try", |
{ | |
"maxerr" : 50, | |
"bitwise" : true, | |
"camelcase" : true, | |
"curly" : true, | |
"eqeqeq" : true, | |
"forin" : false, | |
"freeze" : true, | |
"immed" : true, | |
"indent" : 4, |
G5.apps = G5.apps || {}; | |
// core file | |
G5.apps.core ... | |
// each file | |
G5.apps.dashboardOverview = G5.apps.dashboardOverview || {}; | |
(function (app){ | |
app.views = app.views || {}; | |
app.props = app.props || {}; |