Skip to content

Instantly share code, notes, and snippets.

View douathao's full-sized avatar
🌴
On vacation

Doua Thao douathao

🌴
On vacation
View GitHub Profile

Keybase proof

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:

@douathao
douathao / ssh.md
Last active November 11, 2015 01:19
Get SSH or Generate

SSH

SSH keys

An SSH key allows you to establish a secure connection between your computer and GitLab. Before generating an SSH key in your shell, check if your system already has one by running the following command:

  cat ~/.ssh/id_rsa.pub

To generate a new SSH key, use the following command:

@douathao
douathao / jquery.plugin.js
Created September 3, 2015 01:21
jquery template plugin
(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
});
@douathao
douathao / log.sublime-snippet
Created September 3, 2015 01:20
Sublime log
<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>
@douathao
douathao / fizzbuzz.js
Last active September 3, 2015 01:21
FizzBuzz Test
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');
@douathao
douathao / ws-live-templates.js
Last active August 29, 2015 14:18
webstorm live templates
/********************************************************/
console.group('%c$data$ :', 'color:red;font:strait');
console.log($data$);
console.groupEnd();
/********************************************************/
--------------------------
(function () {
'use strict';
@douathao
douathao / .jscsrc
Created February 16, 2015 17:39
.jscsrc
{
"excludeFiles": ["node_modules/**", "bower_components/**"],
"requireCurlyBraces": [
"if",
"else",
"for",
"while",
"do",
"try",
@douathao
douathao / .jshintrc
Created February 16, 2015 17:39
.jshintrc
{
"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 || {};