- Disk utility (osx)
- Mini Tool Partition Wizard
- Robomongo
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
function EventEmitter() {} | |
EventEmitter.prototype.on = | |
EventEmitter.prototype.addListener = function (event, callback) { | |
this._events = this._events || {}; | |
this._events[event] = this._events[event] || []; | |
this._events[event].push(callback); | |
return this; | |
}; |
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
// get svn log file first: | |
// svn log -v --xml -r {2015-01-01}:{2015-12-08} > svn.log | |
var fs = require('fs'), | |
xml2js = require('xml2js'), | |
_ = require('lodash'), | |
path = require('path'); | |
var parser = new xml2js.Parser(); |
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
/** | |
* Created by VV on 2/3/2016. | |
*/ | |
"use strict"; | |
function PriorityQueue(){ | |
this._nodes = []; | |
this.enqueue = function (priority, item){ | |
this._nodes.push({priority: priority, item: item}); |
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
"use strict"; | |
function Graph(){ | |
this.vertices = {}; | |
//graph.addVertex('vFrom', {'vTo1': 1, 'vTo2': 1}); | |
this.addVertex = function(name, edges) { | |
this.vertices[name] = edges; | |
} |
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
0 info it worked if it ends with ok | |
1 verbose cli [ 'C:\\Program Files\\nodejs\\\\node.exe', | |
1 verbose cli 'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js', | |
1 verbose cli 'install', | |
1 verbose cli '-ddd' ] | |
2 info using [email protected] | |
3 info using [email protected] | |
4 silly loadCurrentTree Starting | |
5 silly install loadCurrentTree | |
6 silly install readLocalPackageData |
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
/* | |
A number is called a circular prime if it is prime and all of its rotations are primes. | |
For example the number 197 has two rotations: 971, and 719. | |
Both of them are prime. | |
There are thirteen such primes below 100: 2, 3, 5, 7, 11, 13, 17, 31, 37, 71, 73, 79, and 97. | |
How many circular primes are there below N? |
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
Design a cash register drawer function that accepts purchase price as the first argument, payment as the second argument, and cash-in-drawer (cid) as the third argument. | |
cid is a 2d array listing available currency. | |
Return the string "Insufficient Funds" if cash-in-drawer is less than the change due. Return the string "Closed" if cash-in-drawer is equal to the change due. | |
Otherwise, return change in coin and bills, sorted in highest to lowest order. | |
// Example cash-in-drawer array: | |
// [["PENNY", 1.01], |
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
function primes(num){ | |
var result = [2, 3]; | |
for(var i = 5; i<= num; i+=2){ | |
if ( result.every( x => i % x ) ) { | |
result.push(i); | |
} | |
} | |
return result; | |
} |
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
node --expose-gc --trace-gc --trace-gc-verbose --trace-gc-ignore-scavenger --max-old-space-size=1000 server.js |