Skip to content

Instantly share code, notes, and snippets.

mocha
jasmine
tape
Qunit
ava
jest
babel - recommended
typescript - type safety
elm - steep learning curve but cause no errors in runtime
transpiling with babel: http://jsrocks.org/2016/01/configuring-babel-6-for-node-js
1. grunt
2. gulp
3. npm scripts
http://bit.ly/npmvsgulp
1. http-server
2. live-server
3. express ( alternatives: kapi and hoa)
4. budo
5. webpack dev server
6. browserSync
local-tunnel
ngrok
now
surge
https://github.com/settings/applications/new
https://www.splessons.com/how-to-use-ng-option-to-set-default-value-of-select-element/
/*a clear explanation can be found here on how to use default value in drop down*/
https://www.gurustop.net/blog/2014/01/28/common-problems-and-solutions-when-using-select-elements-with-angular-js-ng-options-initial-selection/
@zenius
zenius / debounce
Created June 21, 2019 20:25
debounce in javascript
let counter = 0;
const getData = function() {
console.log('fetching data ...' + counter++);
};
const debounce = function(fn, delay) {
let timer;
return function() {
let context = this,