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 browserify = require('browserify'); | |
| const gulp = require('gulp'); | |
| const rename = require('gulp-rename'); | |
| const runSequence = require('run-sequence'); | |
| const source = require('vinyl-source-stream'); | |
| const buffer = require('vinyl-buffer'); | |
| const uglify = require('gulp-uglify'); | |
| const sourcemaps = require('gulp-sourcemaps'); | |
| const gutil = require('gulp-util'); | |
| const del = require('del'); |
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
| for (var i = 0; i < 1024 * 1024; i++) { | |
| process.nextTick(function () { Math.sqrt(i) } ) | |
| } |
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
| //this is the functional version of the same code allowing you work with several inputs | |
| var onlyNumbers = function(){ | |
| 'use strict'; | |
| var coma = true, | |
| that = this; | |
| this.addEventListener('keyup', function(e){ | |
| var key = e.keyCode, | |
| value = that.value; | |
| if(key == 8 && value.search(/,/) === -1){ |
NewerOlder