Skip to content

Instantly share code, notes, and snippets.

@bustapaladin
bustapaladin / instant_bet.js
Created May 26, 2019 — forked from ruzli/instant_bet.js
Instant betting(takes up to 10 seconds to finish place amount of bets you set with flat bets) [Balance: Any]
View instant_bet.js
//******* INSTANT BETTING *******//
var config = {
baseBet: { label: "Bet", type: "balance", value: 100 },
target: { label: "Target", type: "multiplier", value: 100 },
betCount: { label: "Bet count", type: "number", value: 100 },
resetStatistics: { label: "Reset statistics on launch?", type: "checkbox", value: true }
}
if (config.resetStatistics.value) this.resetStatistics()
for (let i = 0; i < config.betCount.value; i++) {
@bustapaladin
bustapaladin / sandbox_tier1_result.js
Created May 26, 2019 — forked from ruzli/sandbox_tier1_result.js
sandbox_tier1_results from first run
View sandbox_tier1_result.js
Rolls: 4979 | Seed: 4979/100000 | last run Strategy 120x at streak 10
15.00x base: 300, multiplier 1.08000, run 3 times. Could catch: 108, streaks: last 0, max 5, PROFIT: 136
23.00x base: 300, multiplier 1.08000, run 8 times. Could catch: 80, streaks: last 0, max 27, PROFIT: 437
29.00x base: 300, multiplier 1.08000, run 6 times. Could catch: 67, streaks: last 1, max 27, PROFIT: 262
33.00x base: 300, multiplier 1.08000, run 6 times. Could catch: 62, streaks: last 27, max 27, PROFIT: -95
55.00x base: 300, multiplier 1.08000, run 15 times. Could catch: 48, streaks: last 27, max 27, PROFIT: -759
80.00x base: 300, multiplier 1.08000, run 22 times. Could catch: 35, streaks: last 27, max 27, PROFIT: -278
120.00x base: 300, multiplier 1.08000, run 24 times. Could catch: 27, streaks: last 10, max 27, PROFIT: 739
170.00x base: 300, multiplier 1.08000, run 26 times. Could catch: 20, streaks: last 27, max 27, PROFIT: -4374
@bustapaladin
bustapaladin / Sandbox_script.js
Created May 26, 2019
Sandbox_script_first_release by Ruzli #7111, If you liked my sandbox and want say big thanks, or want support my team, you can make donation to our team here - 1GUU7UZLAWUAA58bx9zuJiTM7eLGUoK6wi
View Sandbox_script.js
var config = {
//******************COMMON****************** */
PASTE_CASE: { label: "Paste", type: "text", value: "Paste raw text of configuration launch" },
cb_globals: {
label: "Sandbox", type: "radio", value: "sandbox_mode", options: {
sandbox_mode: { label: "Sandbox Mode (if you set it to true will trigger below configuration to be used)", type: "noop", value: "" },
SETUP: { label: "Configuration Launch Case", type: "number", value: 0 },
merged: { label: "Run both in sandbox and confioguration launch", type: "noop", value: "" },
}
@bustapaladin
bustapaladin / median_logging.js
Created May 26, 2019 — forked from ruzli/median_logging.js
Median logging in console and log output
View median_logging.js
Array.prototype.median = function (arr) {
arr.sort((a, b) => a - b);
var pivot = Math.floor(arr.length / 2);
return arr.length % 2 ? arr[ pivot ] : (arr[ pivot - 1 ] + arr[ pivot ]) / 2;
}
class Median{
constructor(context) {
this.context = context
@bustapaladin
bustapaladin / Sandbox_script2_12.js
Created May 26, 2019
Sandbox_script ver2.12 by Ruzli #7111, If you liked my sandbox and want say big thanks, or want support my team, you can make donation to our team here - 1GUU7UZLAWUAA58bx9zuJiTM7eLGUoK6wi
View Sandbox_script2_12.js
var config = {
//******************COMMON****************** */
PASTE_CASE: { label: "Paste", type: "text", value: "Paste raw text [see F12]" },
cb_globals: {
label: "Sandbox", type: "radio", value: "sandbox_mode", options: {
sandbox_mode: { label: "Sandbox Mode (if you set it to true will trigger below configuration to be used)", type: "noop", value: "" },
SETUP: { label: "Configuration Launch Case", type: "number", value: 0 },
merged: { label: "Run both in sandbox and configuration launch", type: "noop", value: "" },
}
View cointrust-bot.js
// edit as you wish, all credit goes to @Bernkastel from Discord and @Elm0P2 on here for making this bot!
// for api documentation see: https://cointrust.pw/api/
engine.on('msg', function(msg) {
var regex = /!cointrust (.*)/i
var match = msg.message.match(regex);
if (!match) return;
var xhttp = new XMLHttpRequest();
xhttp.onreadystatechange = function(){
if(xhttp.readyState === 4 && xhttp.status === 200){
data = JSON.parse(xhttp.responseText);
@bustapaladin
bustapaladin / add-option-to-dropdown.js
Created Jun 16, 2016 — forked from paulund/add-option-to-dropdown.js
Add and Remove Options in Select using jQuery
View add-option-to-dropdown.js
$("#selectBox").append('<option value="option6">option6</option>');
@bustapaladin
bustapaladin / add-option-to-dropdown.js
Created Jun 16, 2016 — forked from paulund/add-option-to-dropdown.js
Add and Remove Options in Select using jQuery
View add-option-to-dropdown.js
$("#selectBox").append('<option value="option6">option6</option>');