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
var gulp = require('gulp'), | |
gulpLoadPlugins = require('gulp-load-plugins'), | |
del = require('del'), | |
lazy = require('lazypipe'), | |
browserSync = require('browser-sync').create(), | |
runSequence = require('run-sequence'), | |
cleanCss = require('gulp-clean-css'), | |
merge = require('merge-stream'), | |
reload = browserSync.reload, | |
$ = gulpLoadPlugins(); |
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
-------------------------------------------------------------------------------- | |
-- rtoshiro - https://github.com/rtoshiro | |
-- You should see: http://www.hammerspoon.org/docs/index.html | |
-------------------------------------------------------------------------------- | |
------------------- | |
-- John's Config -- | |
------------------- | |
-------------------------------------------------------------------------------- |
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
https://jsbin.com/ruyahuv/3/edit?js,console | |
https://jsbin.com/faveqip/3/edit?js,console | |
https://jsbin.com/muzapex/3/edit?js,console |
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
https://jsbin.com/nilovix/2/edit?js,console | |
https://jsbin.com/ciwuqep/3/edit?js,console | |
https://jsbin.com/fihedoh/2/edit?js,console |
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
https://jsbin.com/cofuwi/3/edit?js,console,output | |
https://jsbin.com/zomogu/3/edit?js,console,output |
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
https://jsbin.com/honiri/2/edit?js,console | |
https://jsbin.com/doseze/4/edit?js,console | |
https://jsbin.com/majigup/2/edit?js,console | |
https://jsbin.com/lecafo/2/edit?js,console | |
https://jsbin.com/voyaxe/5/edit?js,console | |
https://jsbin.com/tutapah/6/edit?js,console | |
https://jsbin.com/pixihub/2/edit?js,console | |
https://jsbin.com/lesoyo/2/edit?js,console | |
https://jsbin.com/jelomek/2/edit?js,console | |
https://jsbin.com/jugifeq/2/edit?js,console |
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
https://jsbin.com/xoyiyah/2/edit?js,console | |
https://jsbin.com/zidoqef/2/edit?js,console | |
https://jsbin.com/debafi/6/edit?js,console |
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
What is scope? | |
John Resig coauthored a book "Secrets of the JavaScript Ninja, second edition" that really solidified my understanding | |
of scope in javascript. Global and local/functional scope is a consequence of lexical environments and execution context (global and functional). If in a function an undeclared variable identifier is referenced, its outer lexical environment is checked for that variable, this is done until the global execution context is reached, if that variable is found, its reference is assigned to the inner identifier, if not, a global variable identifier is created. | |
Why are global variables avoided? | |
Global variable can cause identifier conflicts in a lot of unexpected ways. | |
Explain JavaScript's strict mode. | |
This forces the interpreter to be "more strict" with certain default javascript behaviors. i.e. referencing an undeclared variable from within a function will not create a global variable. |
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
https://jsbin.com/lamuqir/2/edit?js,console | |
https://jsbin.com/nupadar/2/edit?js,console | |
https://jsbin.com/qecixep/2/edit?js,console | |
https://jsbin.com/vopuga/2/edit?js,console |
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
https://jsbin.com/faqeme/2/edit?js,console | |
https://jsbin.com/yecilug/4/edit?js,console | |
https://jsbin.com/gikacu/2/edit?js,console | |
https://jsbin.com/madopo/14/edit?js,console | |
https://jsbin.com/qeqonom/5/edit?js,console |
OlderNewer