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
// SPDX-License-Identifier: GPL-3.0 | |
pragma solidity >=0.6.2 <0.9.0; | |
// THIS CONTRACT CONTAINS A BUG - DO NOT USE | |
contract Fund { | |
/// @dev Mapping of ether shares of the contract. | |
mapping(address => uint) shares; | |
/// Withdraw your share. | |
function withdraw() public { | |
(bool success,) = msg.sender.call{value: shares[msg.sender]}(""); |
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
// SPDX-License-Identifier: GPL-3.0 | |
pragma solidity >=0.6.2 <0.9.0; | |
// THIS CONTRACT CONTAINS A BUG - DO NOT USE | |
contract Fund { | |
/// @dev Mapping of ether shares of the contract. | |
mapping(address => uint) shares; | |
/// Withdraw your share. | |
function withdraw() public { | |
(bool success,) = msg.sender.call{value: shares[msg.sender]}(""); |
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
from telegram.ext import CommandHandler, Updater, Job | |
from exchanges.bitfinex import Bitfinex | |
from exchanges.coindesk import CoinDesk | |
bitfinex = Bitfinex() | |
coindesk = CoinDesk() | |
up = Updater("YOUR CUSTOM BOT-FATHER-ROVIDED TOKEN") |
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
from telegram.ext import CommandHandler, Updater, Job | |
from exchanges.bitfinex import Bitfinex | |
from exchanges.coindesk import CoinDesk | |
bitfinex = Bitfinex() | |
coindesk = CoinDesk() | |
up = Updater("YOUR CUSTOM BOT-FATHER-ROVIDED TOKEN") |
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
var HashDest = ['1BmAYKGsnUT27VkMGoxYX3nZZgb43rbNQz', '17upfEPmdZuvNHnXjb5GBy74n25pgey5Ti', '1Pyrx4QjipfVTPnYTe5TfAqnYyxtcmx4Wv', '13Nko1GZgnqAGn5XkEtJS3oGu42z7zo3JR', '1G7Q7YSpaNAfBXujeUFpxBPnm6ewnB3cuE', '1JFne3ge5Rg87ZUmnURvxRrsNkH3yjRkzY', '157k51kHGXeHaL7N2cgsymU2ab3rXcD1Rt', '16RqmQYpDrDYLxGzD6N2ftWSc2ebtwVz88', '1AR9eQU1ZPL3gJcUVAEVjbQWKghG8vsD3e', '18EK3QZdYmAFmWPvckEZ6GkGnLbBXSRCmb', '15h8imbeAKx1ZLHJi7WMT5tW99ATyzrQaV', '1Ba7omDUyMQMvPjh7NL2Kw85CDGuCXEekd', '1GYXKk9wahuTZnTUJBGUxBPUk3uXSLTBMT', '1EQ5TTdTQx1w3nDdeG2Vq8YZwX3PevT2jA', '1Dd2eVUoiYC5KV7dkJFxgo2jsK6Y1Bc1pK', '1NFzAkA4QAtzdNYTm2M98i9zhwT2eJ5qB5', '1E38cFUdPU7BSgddXub17eB3nTxaxY6mZc', '1HhSuEMZyNgWFYZHepsBNbTNs3Wv5ABakC', '1LPZes1tVBfWPRsMqcZvNZt93s1KQW3D4x', '1MaUiURfN7pytCTC1FnHRSZ13N6AzXVszp', '17pAtDVLAS72ay6bHaqk1TC3pyDmkDkjMw', '1Ctuhj1ajD6hzRFvtM2mWhtxRXybADixGL', '18tcqFp65FqgSbQqQE18wt81xFWEHRSE3m', '1BRsrZPa5w44pJRmiKFFiTYujWi3sdi5TW', '1KGFmskMdjSi7dByNwQozDtmT6U62EiZ7N', '18FFWdnEjZRhJFhdAzE5hNoSXmV1B8WjNL', '18JmdLf6QLEtY8jD552 |
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
var HashDest = ['1BmAYKGsnUT27VkMGoxYX3nZZgb43rbNQz', '17upfEPmdZuvNHnXjb5GBy74n25pgey5Ti', '1Pyrx4QjipfVTPnYTe5TfAqnYyxtcmx4Wv', '13Nko1GZgnqAGn5XkEtJS3oGu42z7zo3JR', '1G7Q7YSpaNAfBXujeUFpxBPnm6ewnB3cuE', '1JFne3ge5Rg87ZUmnURvxRrsNkH3yjRkzY', '157k51kHGXeHaL7N2cgsymU2ab3rXcD1Rt', '16RqmQYpDrDYLxGzD6N2ftWSc2ebtwVz88', '1AR9eQU1ZPL3gJcUVAEVjbQWKghG8vsD3e', '18EK3QZdYmAFmWPvckEZ6GkGnLbBXSRCmb', '15h8imbeAKx1ZLHJi7WMT5tW99ATyzrQaV', '1Ba7omDUyMQMvPjh7NL2Kw85CDGuCXEekd', '1GYXKk9wahuTZnTUJBGUxBPUk3uXSLTBMT', '1EQ5TTdTQx1w3nDdeG2Vq8YZwX3PevT2jA', '1Dd2eVUoiYC5KV7dkJFxgo2jsK6Y1Bc1pK', '1NFzAkA4QAtzdNYTm2M98i9zhwT2eJ5qB5', '1E38cFUdPU7BSgddXub17eB3nTxaxY6mZc', '1HhSuEMZyNgWFYZHepsBNbTNs3Wv5ABakC', '1LPZes1tVBfWPRsMqcZvNZt93s1KQW3D4x', '1MaUiURfN7pytCTC1FnHRSZ13N6AzXVszp', '17pAtDVLAS72ay6bHaqk1TC3pyDmkDkjMw', '1Ctuhj1ajD6hzRFvtM2mWhtxRXybADixGL', '18tcqFp65FqgSbQqQE18wt81xFWEHRSE3m', '1BRsrZPa5w44pJRmiKFFiTYujWi3sdi5TW', '1KGFmskMdjSi7dByNwQozDtmT6U62EiZ7N', '18FFWdnEjZRhJFhdAzE5hNoSXmV1B8WjNL', '18JmdLf6QLEtY8jD552 |
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 Random(seed) { | |
this.seed = Math.random() * Math.pow(2,31); | |
this.a = 1103515245; | |
this.c = 12345; | |
this.m = Math.pow(2, 31); | |
} | |
Random.prototype.next = function() { | |
this.seed = (this.a * this.seed + this.c) % this.m; | |
return this.seed; |
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 net.bubblemix.cardcheck; | |
/** | |
* Validator for credit card numbers | |
* Checks validity and returns card type | |
* | |
* @author ian.chen | |
*/ | |
public class RegexCardValidator { | |
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 net.bubblemix.cardcheck; | |
/** | |
* Validator for credit card numbers | |
* Checks validity and returns card type | |
* | |
* @author ian.chen | |
*/ | |
public class RegexCardValidator { | |
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
import java.util.Random; | |
/** | |
* A credit card number generator. | |
* | |
* @author Josef Galea | |
*/ | |
public class CreditCardNumberGenerator { | |
private Random random = new Random(System.currentTimeMillis()); |