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
[test]: Update test/* files | |
[dist]: Changes to submodules, version bumps, updates to package.json | |
[minor]: Small changes | |
[doc]: Updates to documentation | |
[fix]: Bug fixes | |
[bin]: Update binary scripts associated with the project | |
[refactor]: Refactor of existing code | |
[nit]: Small code review changes mainly around style or syntax | |
[feat]: New features |
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 root(num){ | |
var total = 0; | |
if(num.toString().length == 1){ | |
var iNum = parseInt(num); | |
return iNum; | |
}else{ | |
num.toString().split("").forEach( function(value){ | |
var iValue = parseInt(value); | |
return total += iValue; | |
}); |
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 FormattedDivision(num1, num2){ | |
var quotient = num1 / num2; | |
var fixed = quotient.toFixed(4); | |
var parts = fixed.toString().split("."); | |
parts[0] = parts[0].replace(/\B(?=(\d{3})+(?!\d))/g, ","); | |
return parts.join("."); | |
} |
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 gulp = require('gulp'); | |
var sass = require('gulp-sass'); | |
var connect = require('gulp-connect'); | |
var watch = require('gulp-watch'); | |
var batch = require('gulp-batch'); | |
var gutil = require('gulp-util'); | |
var source = require('vinyl-source-stream'); | |
var browserify = require('browserify'); |
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
# vim:ft=zsh ts=2 sw=2 sts=2 | |
# | |
# agnoster's Theme - https://gist.github.com/3712874 | |
# A Powerline-inspired theme for ZSH | |
# | |
# # README | |
# | |
# In order for this theme to render correctly, you will need a | |
# [Powerline-patched font](https://github.com/Lokaltog/powerline-fonts). | |
# Make sure you have a recent version: the code points that Powerline |
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 Timer { | |
constructor(duration) { | |
const initDuration = (duration || 1) * 60; | |
this.initDuration = initDuration; | |
this.duration = initDuration; | |
this.intervalId = -1; | |
this.interval = 1000; | |
this.displayDuration = `${duration}:00`; | |
} |
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
// jscs:disable | |
'use strict'; | |
var gulp = require('gulp'); | |
var sass = require('gulp-sass'); | |
var connect = require('gulp-connect'); | |
var watch = require('gulp-watch'); | |
var batch = require('gulp-batch'); | |
var gutil = require('gulp-util'); | |
var source = require('vinyl-source-stream'); |
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
import { render } from './script1'; | |
render(); |
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 Foo { | |
async getData() { | |
try { | |
const f1 = await this.fakeAsyncCall(); | |
const f2 = await this.fakeAsyncCall(); | |
const f3 = await this.fakeAsyncCall(); | |
const f4 = await this.fakeAsyncCall(); | |
console.log(f1, f2, f3, f4); // 'foo data' x 4 |
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
// Variable assignment | |
const getData = async () => { | |
try { | |
const data = await fakeAsyncCall(); | |
console.log(data); // foo data | |
} catch (error) { | |
console.error(`Uh oh: ${error}`); | |
} | |
} |
NewerOlder