These rules are adopted from the AngularJS commit conventions.
This file contains hidden or 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 get_pos(arr, number) { | |
| var l = 0, | |
| r = arr.length, | |
| m; | |
| while (l < r) { | |
| m = Math.floor( (l + r) / 2 ); | |
| if (number < arr[m]) { | |
| r = m; |
This file contains hidden or 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 gcd(a, b) { | |
| if (a < 0 || b < 0) throw Error ('positive numbers only'); | |
| if (a === 0 || b === 0) | |
| return Math.max(a, b); | |
| else if (a >= b) | |
| return gcd(a % b, b); | |
| else | |
| return gcd(a, b % a); | |
| } |
This file contains hidden or 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 fPrev, fCurr; | |
| function fib (n) { | |
| var result; | |
| if (n < 0) throw Error('invalid given number'); | |
| if (n <= 1) { | |
| return n; | |
| } |
This file contains hidden or 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
| const values = [ | |
| () => console.log({moveCircleToMiddle: true}), | |
| 1000, | |
| () => console.log({showGrayCircle: true}), | |
| () => console.log({showMicrophone: true}), | |
| 5000, | |
| () => console.log({moveCircleToTop: true}), | |
| 1000, | |
| () => console.log({pulseGrayCircle: true}), | |
| 5000, |
This file contains hidden or 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 fs = require('enb/lib/fs/async-fs'), | |
| vow = require('vow'), | |
| path = require('path'); | |
| module.exports = require('enb/lib/build-flow').create() | |
| .name('enb-exports-file') | |
| .target('target', '?.js') | |
| .useSourceFilename('source', '?.txt') | |
| .builder(function(cssFilename) { | |
| var def = vow.defer(); |
This file contains hidden or 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 precss = require('precss'); | |
| var autoprefixer = require('autoprefixer'); | |
| var sorting = require('postcss-sorting'); // ! | |
| module.exports = { | |
| module: { | |
| loaders: [ | |
| { | |
| test: /\.css$/, | |
| loader: "style-loader!css-loader!postcss-loader" |
This file contains hidden or 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
| <div class="js-favorite"> | |
| <a href="/favoriteActionWithAjaxSupport" class="js-favorite-link">Favorite</a> | |
| </div> |
This file contains hidden or 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 enbBemTechs = require('enb-bem-techs'), | |
| borschikTech = require('enb-borschik/techs/borschik'), | |
| fs = require('fs'), | |
| path = require('path'), | |
| techs = enbBemTechs, | |
| provide = require('enb/techs/file-provider'); | |
| // php | |
| // process.env.YENV = 'production'; | |
| enbBhPhp = require('enb-bh-php'); | |
| //wpPhp = require('./techs/wp-php.js'); |
This file contains hidden or 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
| { | |
| "programming":[ | |
| "http://blog.codinghorror.com/", | |
| "http://thedailywtf.com/", | |
| "http://www.hanselman.com/blog/", | |
| "http://code.tutsplus.com", | |
| "https://news.ycombinator.com/", | |
| "http://www.reddit.com/r/programming/", | |
| "http://codebetter.com", | |
| "http://android-developers.blogspot.com/", |