Skip to content

Instantly share code, notes, and snippets.

#!/usr/local/bin/node
wt = require('webworker-threads');
fib=require('./fibo');
function doit(){
console.log('before fibo');
console.log('fibo 30:'+fib(30));
var fibo = function(n) {
return n > 1 ? fibo(n - 1) + fibo(n - 2) : 1;
}
module.exports=fibo;
curl -i -u 'profOnno:get27hubin' https://api.github.com/repos/profOnno/git_playground/hooks
HTTP/1.1 200 OK
Server: GitHub.com
Date: Fri, 25 Sep 2015 20:17:27 GMT
Content-Type: application/json; charset=utf-8
Content-Length: 906
Status: 200 OK
X-RateLimit-Limit: 5000
X-RateLimit-Remaining: 4994
X-RateLimit-Reset: 1443215370
@profOnno
profOnno / pump-test-work3.md
Last active November 10, 2015 22:07
pump.io test

Upgrading dependencies:

  • Showdown: From github: Breaking Changes

    NAMESPACE: showdown's namespace changed.

    To migrate your code you should update all references to Showdown with showdown.

Converter: converter reference changed from converter to Converter.

@profOnno
profOnno / simplesmtp.patch
Last active November 4, 2015 20:58
simplesmtp.patch
--- node_modules/simplesmtp/node_modules/rai/lib/rai.js 2015-02-06 09:22:33.000000000 +0000
+++ ../../pump.io/node_modules/simplesmtp/node_modules/rai/lib/rai.js 2015-11-04 20:22:28.437407851 +0000
@@ -425,8 +425,8 @@
return;
}
this._destroyed = true;
-
this.removeAllListeners();
+ this.on("error",function(err){});
};
[-] lib/app.js
[-] npm-shrinkwrap.json
[-] package.json
[-] patch/connect-databank.patch
[-] test/activity-api-test.js
[-] test/app-bounce-test-as-root.js
[x] test/app-test.js
[-] test/filteredstream-test.js (location -> places... huh?)
[-] test/homepage-noweb-test.js
{
"preset": "idiomatic",
"validateIndentation": 4,
"disallowTabs": true,
"requireSpacesInsideParentheses": null,
"disallowSpacesInsideParentheses": null,
"requireSpacesInsideBrackets": null,
"disallowSpacesInsideBrackets": true,
"requireSpacesInsideObjectBrackets": null,
"requireCamelCaseOrUpperCaseIdentifiers": null,
@profOnno
profOnno / counter-party.md
Last active December 31, 2015 11:13
Setup counter-party in docker
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
<!--script src="http://ajax.aspnetcdn.com/ajax/knockout/knockout-3.3.0.js"></script-->
<script src="http://knockoutjs.com/downloads/knockout-3.2.0.js"></script>
<script language="JavaScript">
<!--
// CED subroutine for cleaning up JavaScript rounding errors
import DS from 'ember-data';
export default DS.Model.extend({
hash: DS.attr(),
size: DS.attr(),
height: DS.attr(),
version: DS.attr(),
merkleroot: DS.attr(),
time: DS.attr(),
nonce: DS.attr(),