Skip to content

Instantly share code, notes, and snippets.

View frozeman's full-sized avatar

Fabian Vogelsteller frozeman

View GitHub Profile
@frozeman
frozeman / gist:88a3e47679dd74242cab
Last active August 29, 2015 14:01
Meteor minimongo: Insert and Remove in bulk using an array
/*
These two functions provide a simple extra minimongo functionality to add and remove documents in bulk,
without unnecessary re-renders.
The process is simple. It will add the documents to the collections "_map" and only the last item will be inserted properly
to cause reactive dependencies to re-run.
*/
Models = {};
@frozeman
frozeman / CryptsyOrderSum
Last active August 29, 2015 14:04
Get the order sum in cryptsy.com
// in the console, to get the BUY/SELL order sum type:
var until = 9999; // until order
var sum = 0; $('#sellorderlist tr:lt('+until+')').each(function(){ sum += Number($(this).find('td:eq(2)').text())}); console.log('SEll: '+sum+' BTC by '+$('#sellorderlist tr').length+' orders');
var sum = 0; $('#buyorderlist tr:lt('+until+')').each(function(){ sum += Number($(this).find('td:eq(2)').text())}); console.log('BUY: '+sum+' BTC by '+$('#buyorderlist tr').length+' orders');
Verifying myself: My Bitcoin username is +frozeman. https://onename.io/frozeman
@frozeman
frozeman / bitcoin-divisions
Last active August 29, 2015 14:08
Bitcoin divisions
0 . 0 0 0 0 0 0 0 0
^ ^ ^ ^
BTC mBTC? bits Satoshi
@frozeman
frozeman / gist:c6196adb840102ee0dfd
Created January 21, 2015 08:44
List of all Meteor-platform packages
application-configuration removed from your project
autoupdate removed from your project
base64 removed from your project
binary-heap removed from your project
blaze removed from your project
blaze-tools removed from your project
boilerplate-generator removed from your project
callback-hook removed from your project
check removed from your project
ddp removed from your project
@frozeman
frozeman / mist_2015-02-04-174337_Fabians-MacBook-Pro.crash
Created February 5, 2015 13:44
mist_2015-02-04-174337_Fabians-MacBook-Pro
Process: mist [8284]
Path: /Users/USER/*/mist
Identifier: mist
Version: 0
Code Type: X86-64 (Native)
Parent Process: zsh [372]
Responsible: iTerm [241]
User ID: 501
Date/Time: 2015-02-04 17:43:35.647 +0100
Process: mist [1709]
Path: /Users/USER/*/mist
Identifier: mist
Version: 0
Code Type: X86-64 (Native)
Parent Process: zsh [503]
Responsible: iTerm [394]
User ID: 501
Date/Time: 2015-02-02 17:45:50.829 +0100
Process: mist [582]
Path: /Users/USER/*/mist
Identifier: mist
Version: 0
Code Type: X86-64 (Native)
Parent Process: zsh [503]
Responsible: iTerm [394]
User ID: 501
Date/Time: 2015-02-02 17:20:51.227 +0100
Process: mist [16296]
Path: /Users/USER/*/mist
Identifier: mist
Version: ???
Code Type: X86-64 (Native)
Parent Process: zsh [598]
Responsible: iTerm [594]
User ID: 501
Date/Time: 2015-02-01 23:13:41.641 +0100
contract JSON_Test {
event Log0(uint value);
event Log0Anonym (uint value) anonymous;
event Log1(bool indexed aBool, uint value);
event Log1Anonym(bool indexed aBool, uint value) anonymous;
event Log2(bool indexed aBool, address indexed aAddress, uint value);
event Log2Anonym(bool indexed aBool, address indexed aAddress, uint value) anonymous;
event Log3(bool indexed aBool, address indexed aAddress, bytes32 indexed aBytes32, uint value);
event Log3Anonym(bool indexed aBool, address indexed aAddress, bytes32 indexed aBytes32, uint value) anonymous;
event Log4(bool indexed aBool, address indexed aAddress, bytes32 indexed aBytes32, int8 aInt8, uint value);