This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private Pair<BigDecimal, BigDecimal> bruteforceAmount(BigDecimal price, BigDecimal amountLeft, BigDecimal increment) | |
{ | |
BigDecimal add = BigDecimal.ZERO.setScale(8); | |
BigDecimal satoshi = new BigDecimal("0.00000001").setScale(8); | |
BigDecimal amount = price.multiply(amountLeft).setScale(8, RoundingMode.DOWN); | |
amount = amount.subtract(amount.remainder(increment)); | |
price = BigDecimal.ONE.setScale(8).divide( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@SuppressWarnings({ "unchecked", "rawtypes" }) | |
public SortableList<BigInteger, Order> getOrdersSortableList(long have, long want, boolean filter) | |
{ | |
//FILTER ALL KEYS | |
Collection<BigInteger> keys = ((BTreeMap<Tuple4, BigInteger>) this.haveWantKeyMap).subMap( | |
Fun.t4(have, want, null, null), | |
Fun.t4(have, want, Fun.HI(), Fun.HI())).values(); | |
//Filters orders with unacceptably small amount. These orders have not worked | |
if(filter){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package gui.assets; | |
import java.awt.Component; | |
import java.awt.Dimension; | |
import java.awt.GridBagConstraints; | |
import java.awt.GridBagLayout; | |
import java.awt.Image; | |
import java.awt.Insets; | |
import java.awt.Toolkit; | |
import java.awt.Window; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void processTransaction(Transaction transaction) | |
{ | |
//CHECK IF WALLET IS OPEN | |
if(!this.exists()) | |
{ | |
return; | |
} | |
//FOR ALL ACCOUNTS | |
List<Account> accounts = this.getAccounts(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package qora.wallet; | |
import java.math.BigDecimal; | |
import java.math.BigInteger; | |
import java.util.ArrayList; | |
import java.util.Arrays; | |
import java.util.List; | |
import java.util.Observable; | |
import java.util.Observer; | |
import java.util.Timer; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function escapeHtml(text) { | |
return text | |
.replace(/&/g, "&") | |
.replace(/</g, "<") | |
.replace(/>/g, ">") | |
.replace(/"/g, """) | |
.replace(/'/g, "'"); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Test | |
public void testBase_58_speed() { | |
Stopwatch stopwatchAll = new Stopwatch(); | |
for (int i = 0; i < 10000000; i++) { | |
String randStr = Long.toString((long)(Math.random()*1000000000)); | |
Base58.decode(Base58.encode(randStr.getBytes())); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Stopwatch stopwatch = new Stopwatch(); | |
output.put("stopwatch", stopwatch.elapsedTime()); | |
return output.toJSONString(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6pHMBFif7jXFG654joT8GPaymau1fMtaxacRyqSrnAwQMQDvqRuLpHpfFyqX4gWVvj4pF1mwQhFgqWAvjVvPJUjmBZQvL751dM9cEcQBTaUcxtNLuWZCVUAtbnWN9f7FsLppHhkPbxwpoodL3UJYRGt3EZrG17mhv1RJbmq8j6rr7Mk QLpLzqs4DW1FNJByeJ63qaqw3eAYCxfkjR 0.00000000 | |
CCTvWQK6YNm9UDUxUZ9hz57BrAjXDNimMitNBhos29ChXJkDHKny23Tzc6vw3H3AudxDPNoG47c8c5NLaSsL3jeS4b5cQZu2raRmNEYow74Rugumxxa8V1Ts7RZT9NEuJRMC1RQ4aKWXHxzDWM5p9a42hW5kv5WeEiqFmPZNZ3gpJmW Qh8UnEs55n8jcnBaBwVtrTGkFFFBDyrMqH 2.00000000 | |
3bvf97GUGiHkKwiLFtL7f7XAduaZnrKbDUUjiwq4dWAgz2q651iQfCa8eEGvub2XDLkkeQCm9XjkCZ69KA7wuAKEtqpj42EzrB1E9pnSHik5Z5o9mnHQu1LtfDjjfqryeeR84kD6oA1LmVjJbcT4z2gU23AEd4kA817PEXCdmPJPL5n QhF7Fu3f54CTYA7zBQ223NQEssi2yAbAcx 2.00000000 | |
NDGvv5qxYq3pFT7DWJo8t7smDZpe2WBDtUKCWyZeKWrgcgpHkhKE96S98Z5ruqCbaHepNmVNMf4VY826WNDSfrGCBoguLWKK58QsjKLWe1fFtdCDfXkBxS8ovc5eovHnSFVM2kiin637RHvEb2HYFfGkDQddgSyDYMBujrRFz4czEXr QYcMn3KPsRBAkKvYamUxVAq534cyn9RKY8 2.00000000 | |
6TxFUSYytUdiMc7BVvP15Ck6smg9kyoCwkKNfdRJysdwD293Aw3EuRMGbCdRVE3QoiQK5hAnGZZLHskbqiyYswZnjFw2YYrTAXZDJDjinCZwybNJMRjsTLga2RqSMNJ8K47qEaBj |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/etc/network/if-up.d | |
/etc/network/if-up.d/starttablo | |
------------------------ | |
#!/bin/sh -e | |
su tablo -c "pkill chromium || true" | |
su tablo -c "export DISPLAY=:0.0 && chromium-browser --kiosk http://office.erudit-gimnaziya.ru/tablo/tablo.html || true" | |
------------------------ | |
chrome://flags/#enable-offline-auto-reload |
OlderNewer