Skip to content

Instantly share code, notes, and snippets.

Avatar

Fabian Vogelsteller frozeman

View GitHub Profile
@frozeman
frozeman / gist:88a3e47679dd74242cab
Last active Aug 29, 2015
Meteor minimongo: Insert and Remove in bulk using an array
View gist:88a3e47679dd74242cab
/*
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 Aug 29, 2015
Get the order sum in cryptsy.com
View CryptsyOrderSum
// 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');
View gist:8b5a47033fd805e9f6bf
Verifying myself: My Bitcoin username is +frozeman. https://onename.io/frozeman
@frozeman
frozeman / bitcoin-divisions
Last active Aug 29, 2015
Bitcoin divisions
View bitcoin-divisions
0 . 0 0 0 0 0 0 0 0
^ ^ ^ ^
BTC mBTC? bits Satoshi
@frozeman
frozeman / gist:c6196adb840102ee0dfd
Created Jan 21, 2015
List of all Meteor-platform packages
View gist:c6196adb840102ee0dfd
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 Feb 5, 2015
mist_2015-02-04-174337_Fabians-MacBook-Pro
View mist_2015-02-04-174337_Fabians-MacBook-Pro.crash
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
View mist_2015-02-02-174551_Fabians-MacBook-Pro.crash
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
View mist_2015-02-02-172056_Fabians-MacBook-Pro.crash
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
View mist_2015-02-01-231341_Fabians-MacBook-Pro.crash
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
View gist:099f74940ccb0bf71b25
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);
You can’t perform that action at this time.