'^', '~', '<=', '*', ...
package.json > dependencies and devDependencies
exactly 1.3.2
"vendor/package": "1.3.2"
'^', '~', '<=', '*', ...
package.json > dependencies and devDependencies
exactly 1.3.2
"vendor/package": "1.3.2"
| // value in milliseconds | |
| function prettyTime(value){ | |
| var days = Math.floor(value/86400000); | |
| value = value%86400000; | |
| var hours = Math.floor(value/3600000); | |
| value = value%3600000; | |
| var minutes = Math.floor(value/60000); | |
| value = value%60000; | |
| var seconds = Math.floor(value/1000); | 
| function* shopping() { | |
| // stuff on the sidewalk | |
| // walking down the sidewalk | |
| // go into the store with cash | |
| const stuffFromStore = yield 'cash'; | |
| // walking to laundry place | |
| const cleanClothes = yield 'laundry'; | 
| // from an array of arrays of points | |
| const points = [ | |
| [4,5], | |
| [10,1], | |
| [0,40] | |
| ]; | |
| // to array of objects x,y points | |
| function transformPointsData(points){ | |
| return points.map(([ x, y ]) => { | 
| function unique(array) { | |
| return array.reduce(function(acc, item){ | |
| if(!acc.find(function(element){ return element === item; })){ | |
| acc.push(item); | |
| } | |
| return acc; | |
| }, []); | |
| } | |
| var numbers = [1,1,2,3,4,4]; | 
| function balancedParens(string){ | |
| return !string.split('').reduce(function(previous, char){ | |
| if(previous < 0) { return previous; } | |
| if(char === '(') { return ++previous; } | |
| if(char === ')'){ return --previous; } | |
| return previous; | |
| }, 0); | |
| } | 
info from Github staff:
To make it easier to vendor third-party dependencies via package managers like Bundler or NPM (or Yarn), Jekyll now ignores the vendor and node_modules directories by default, speeding up build times and avoiding potential errors. If you need those directories included in your site, simply add them to your configuration's include directive.
just keep in mind, avoid directories with names: vendors or node_modules when deploy anything to gh-pages =)
other info from Github staff:
Since you're not using Jekyll, it will be easier for you to add an empty .nojekyll file to the root of your repository. This will tell Jekyll not to run, and then your vendored files will be included in the build.
| function safeScopeApply(){ | |
| // safe scope call | |
| if( | |
| $scope.$root.$$phase !== '$apply' && | |
| $scope.$root.$$phase !== '$digest' | |
| ) { | |
| $scope.$apply(); | |
| } | |
| } |