Skip to content

Instantly share code, notes, and snippets.

View oroce's full-sized avatar

Róbert Oroszi oroce

  • Budapest, Hungary
View GitHub Profile
@oroce
oroce / gist:5520406
Created May 5, 2013 10:18
ugyfelkapu.hu console output.
Load on server execution time= 1657ms MiniWebFormAction.js:655
Load full execution time= 1807ms MiniWebFormAction.js:655
console.trace() MiniWebFormAction.js:444
actionChangesOnly MiniWebFormAction.js:444
CheckAjax on server execution time= 6281ms MiniWebFormAction.js:653
************ actChanges törölve ********* MiniWebFormAction.js:194
CheckAjax full execution time= 6460ms MiniWebFormAction.js:653
blockInd= 0 parcInd=0 tterId=391991743 mapDraw.js:234
2
Error: Problem parsing d="" ek13.do:1
@oroce
oroce / leak-test.js
Created May 12, 2013 15:08
should test this on linux, on mac it's terrible.
var async = require( "async" );
var amount = 100*100*100;
var _arr = Array(amount).join(0).split(0);
var dummyFunction = function( cb ){
return setTimeout(cb, 2);
};
var runBind = function( fn ){
async.parallel(
_arr.map(function(){
@oroce
oroce / anon.out
Last active December 17, 2015 06:19
test output for https://gist.github.com/oroce/5563862 OS: ubuntu virtual w/ virtualbox node -v: v0.8.12 uname: Linux ubuntu 3.5.0-23-generic #35~precise1-Ubuntu SMP Fri Jan 25 17:13:26 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux Memory: 1 GB
start running: 17.6328125 MB
63 ms: Scavenge 2.3 (35.0) -> 2.0 (36.0) MB, 1 ms [allocation failure].
73 ms: Scavenge 2.5 (36.0) -> 2.2 (36.0) MB, 0 ms [Runtime::PerformGC].
79 ms: Mark-sweep 2.2 (36.0) -> 2.0 (36.0) MB, 6 ms [Runtime::PerformGC] [GC in old space requested].
145 ms: Mark-sweep 10.9 (43.6) -> 9.9 (43.6) MB, 15 ms [Runtime::PerformGC] [promotion limit reached].
150 ms: Scavenge 11.9 (43.6) -> 11.3 (44.6) MB, 1 ms [allocation failure].
165 ms: Scavenge 15.8 (47.7) -> 15.8 (49.7) MB, 4 ms [allocation failure].
Increasing marking speed to 3 due to high promotion rate
186 ms: Scavenge 17.2 (49.7) -> 17.2 (50.7) MB, 6 ms (+ 6 ms in 13 steps since last GC) [allocation failure] [incremental marking delaying mark-sweep].
Hurrying incremental marking because of lack of progress
{
"suggestion": [{
"name": "suggestion#1"
}],
"videos": [{
"name": "video#1"
}],
"style": ".search-searchidwhichshouldbenumbersoralphacharacters .item1{ background-image: url(http://cdn.hu.purpose.co/sprite/searchidwhichshouldbenumbersoralphacharacters);background-position: 0px 60px;}.search-searchidwhichshouldbenumbersoralphacharacters .item2{background-image: url(http://cdn.hu.purpose.co/sprite/searchidwhichshouldbenumbersoralphacharacters);background-position: 60px 60px;}"
}
@oroce
oroce / doorkeeper
Created July 21, 2013 21:03
use github keys as auth key \o/
#!/bin/bash
curl "https://github.com/oroce.keys"
@oroce
oroce / package.json
Created July 25, 2013 14:26
package.json for Leo42
{
"name": "whatev",
"devDependencies": {
"pre-commit": "0.0.4"
},
"scripts": {
"test": "../test/api-easy test.js"
},
"pre-commit": [
"test"
____
| |
____| |
| |
|______|
@oroce
oroce / master1.js
Created August 14, 2013 20:40
trying to do some multi-master sync with election
//master1.js
var level = require("level");
var SubLevel = require("level-sublevel");
var net = require("net");
var reconnect = require("reconnect-net");
var Replicate = require("level-replicate");
//setup the database.
var db = SubLevel(level("./example-master"));
@oroce
oroce / child.js
Created September 7, 2013 11:40
tree in node-sandbox-module
exports.isChild = true;
var async = require( "async" );
var request = require( "request" );
var urls = ["http://google.com", "http://facebook.com"];
function runJobs(){
async.eachLimit( urls, 5, function( url, cb ){
request( url, function( err ){
if( err ){
console.error( "failed to get url: %s", url, err );