Skip to content

Instantly share code, notes, and snippets.

@RHavar
RHavar / gist:7cd6f3fcf2bd3e485458
Created February 18, 2015 14:31
MoneyPot.com's deposits and withdrawals
0.01569000000000000000
0.01570000000000000000
0.00940000000000000000
0.00794500000000000000
0.00483000000000000000
0.000148600000000000000000
0.000148600000000000000000
0.00500000000000000000
0.00329000000000000000
0.00329600000000000000
@RHavar
RHavar / RandomUint32.js
Created July 31, 2015 14:48
Generate a random 32 bit unsigned integer
function randomUint32() {
if (window && window.crypto && window.crypto.getRandomValues && Uint32Array) {
var o = new Uint32Array(1);
window.crypto.getRandomValues(o);
return o[0];
} else {
console.warn('Falling back to pseudo-random client seed');
return Math.floor(Math.random() * Math.pow(2, 32));
}
}
/*¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯|
// Bustabit Bonus Sniper v0.2R8 - Made by http://dexontech.net/ |
//___________________________________________________________________|
//
// Bot that will 'snipe' those bonus for you.
// It will automatically cashout right after the biggest
// bet during the round. To snipe that bonus!
//
// Have fun!
//
@RHavar
RHavar / gist:f5d1cdc76d916e15688a
Created October 10, 2015 20:55
Ruper Winning Games
1931462
1931465
1931460
1931478
1931486
1931467
1931464
1931473
1931480
1931494
// let payouts be the array payouts details (like from /bets/custom)
// let details.outcome be the final outcome of the bet
// Given the outcome, find out how many times it went right
var rights = payouts.findIndex(function(p) {
return details.outcome >= p.from && details.outcome < p.to;
});
assert(rights >= 0);
@RHavar
RHavar / anololkapa
Last active December 17, 2015 04:47 — forked from anonymous/anololkapa
var baseBet = 10; // in Bits
var cashout; 20
var mult;
// set one of mult or cashout, and the other will be calculated for you:
// mult = 1.12;
cashout = 1.5;
function randomPassword(len) { var chars = "abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNP123456789"; if (window && window.crypto && window.crypto.getRandomValues && Uint32Array && Uint32Array.prototype.reduce) { return window.crypto.getRandomValues(new Uint32Array(len)) .reduce(function(p, n) { return p + chars[n % chars.length] }, ""); } else { console.warn('Falling back to pseudo-random client seed'); var pass = ""; for (var i = 0; i < len; ++i) pass += chars[Math.floor(Math.random() * chars.length)]; return pass; }
@RHavar
RHavar / bustabit-wagered.csv
Created February 12, 2017 06:08
bustabit-wagered
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
"2017-02-10 00:00:00+00";965.3583610000000000;5.4789466900000000
"2017-02-09 00:00:00+00";2943.3535390000000000;-14.0988752300000000
"2017-02-08 00:00:00+00";1336.2996960000000000;14.0962432600000000
"2017-02-07 00:00:00+00";1656.6724780000000000;79.5970045500000000
"2017-02-06 00:00:00+00";976.6850090000000000;5.6730845400000000
"2017-02-05 00:00:00+00";1492.7139450000000000;8.7800197700000000
"2017-02-04 00:00:00+00";1530.9818630000000000;7.3200481200000000
"2017-02-03 00:00:00+00";1590.7434990000000000;0.36974977000000000000
"2017-02-02 00:00:00+00";1774.7632980000000000;127.9463562400000000
"2017-02-01 00:00:00+00";2048.6822770000000000;-6.5945970300000000
bustabit.com is down for maintenance, we expect to come back within ~3 hours (3PM UTC).
We are in the process of deploying bustabit version 2. All accounts and balances will be migrated accross, so there is no need to worry.
Deposit addresses are going to be changed, so please do not deposit to your old address (although if you do, we can help you manually)
See you soon!
### Keybase proof
I hereby claim:
* I am rhavar on github.
* I am rhavar (https://keybase.io/rhavar) on keybase.
* I have a public key ASDOnIbRyPnYEUPzHxXsreEW_Oz9XOxCoKD4A0jJkvD7gwo
To claim this, I am signing this object: