I hereby claim:
- I am 79yuuki on github.
- I am 79yuuki (https://keybase.io/79yuuki) on keybase.
- I have a public key ASB3bX_1udfDW-noFz7SIpSernxz0pEs8TGKzVCbWC0O7wo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
module.exports = function(grunt) { | |
'use strict'; | |
grunt.loadNpmTasks('grunt-contrib-uglify'); | |
grunt.loadNpmTasks('grunt-contrib-cssmin'); | |
grunt.loadNpmTasks('grunt-contrib-stylus'); | |
grunt.loadNpmTasks('grunt-contrib-watch'); | |
grunt.loadNpmTasks('grunt-contrib-copy'); | |
grunt.loadNpmTasks('grunt-img'); | |
grunt.registerTask('default', ['stylus', 'copy', 'uglify', 'cssmin', 'img']); |
var Batch = require('batch') | |
, batch = new Batch; | |
var self = this; | |
batch.concurrency(4); | |
var ids = [0,1,2,3]; | |
var fleetName = ['加賀', '赤城', '島風', '出雲']; |
var a = [], n=10000; | |
for(var i=0; i<n; i++){ | |
a.push('item:' + i);} | |
var str = a.join('\n'); | |
// test1 | |
var s = new Date(); | |
for(var i=0; i<3000; i++){ | |
var m = str.indexOf('item:9999'); | |
} | |
console.log('#test1 ' + (new Date() - s) + '(ms) result:'+ m); |
function targetMethod(param) { | |
if(param === null || param === undefined) { | |
throw new Error('param is empty.'); | |
} | |
if(typeof param !== 'string') { | |
throw new Error('param must be a Number.'); | |
} | |
console.log(param); |
var Browser = require("zombie"); | |
var assert = require("assert"); | |
browser = new Browser(); | |
browser.on('error', function(error) { | |
console.log(error); | |
}); | |
// Load the page from AmebaBlog. |