Last active
December 24, 2019 02:35
-
-
Save skwp/9948ee2a7cda8bf674f90220092c577c to your computer and use it in GitHub Desktop.
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
replies = %w( | |
05nelsonm_ | |
0xtail1 | |
12coast | |
1Jeremycrypto | |
216musicscene | |
2357_is_prime | |
APOSTOL11778943 | |
Arpiht3 | |
BPDesignStudio | |
BPugliese96 | |
BTCsessions | |
BadgerNakamoto | |
BitGryphon | |
BitcoinLaw1 | |
BitcoinSloth | |
Bitcoinachu | |
Bitcoinwalking | |
BlakeWBradley | |
Bogzkie1 | |
BootstrapBandit | |
Brandongall16 | |
Cams_Tweeting | |
CriptoEmily | |
CryptoLookout | |
CryptoRich22 | |
DennisReimann | |
Dhr_Sep | |
DorianTudorache | |
DustyLoooza | |
DyubsE | |
ElkimXOC | |
Emperor_YZ | |
EntertainerLamb | |
EzioRed | |
FadyAro | |
Gobena10 | |
Gryffindave | |
HelloBitcoin1 | |
HodDont | |
Jlib011 | |
Lukas_Benedikt | |
ManBytesCamera | |
Marbrance | |
Mariusfa | |
MrHodl | |
NoemyYambot | |
Noni83200544 | |
OmniFinn | |
OrryDontw | |
Peter_Riverwind | |
PopovicRok | |
PumpkinToshi | |
RUBYlifestyle | |
RaiVera | |
RawBTC | |
Robin69877224 | |
RusBitcoin | |
TheCryptoconomy | |
TheRandomOne18 | |
ZahaYoung | |
_Bitcoin_Is | |
_joerodgers | |
_sats | |
algernon64 | |
arkosphilos | |
arnaldochoa | |
azorcode | |
banitama | |
bitcoin_er_ick | |
bitcoin_lol | |
bitfiwarrior | |
blankjoke | |
bronzefozzz | |
btcale | |
btcbraj | |
btcconfidant | |
btcdragonlord | |
chresnas_putra | |
criptobastardo | |
crypto_canon | |
crypto_tz | |
cryptofan_dango | |
dergigi | |
devilninja777 | |
evankaloudis | |
exitcalmly | |
fatbel4 | |
guyueChina | |
honeybhabes_19 | |
hudsucka | |
iamonlyhuman9 | |
jabravo | |
jmiguelrzc | |
kalecrypto | |
kiyp | |
ledger_man | |
meier_bernhard | |
melikmanukyan | |
nagaraj_hubli | |
owengwilliam | |
pbvp4 | |
r_ujma | |
reelrichard | |
rrvalare | |
satoshi256bit | |
satoshibaggins | |
shailesh882 | |
squaredoc1 | |
stackingcats2 | |
thatzenboi | |
travisebel | |
tsotso | |
vc_sa_ | |
vikingsedentar1 | |
) | |
retweets=%w( | |
05nelsonm_ | |
0xtail1 | |
12coast | |
1Jeremycrypto | |
BPugliese96 | |
BitGryphon | |
BlakeWBradley | |
Bogzkie1 | |
Cams_Tweeting | |
CriptoEmily | |
DorianTudorache | |
DustyLoooza | |
DyubsE | |
Emperor_YZ | |
HodDont | |
Lukas_Benedikt | |
MattWagg80 | |
MrHodl | |
NoemyYambot | |
Noni83200544 | |
OmniFinn | |
Peter_Riverwind | |
PopovicRok | |
PumpkinToshi | |
RUBYlifestyle | |
Robin69877224 | |
RusBitcoin | |
ZahaYoung | |
_sats | |
algernon64 | |
arnaldochoa | |
bitfiwarrior | |
blankjoke | |
bronzefozzz | |
btcale | |
chresnas_putra | |
closeminded13 | |
criptojosa | |
crypto_tz | |
fatbel4 | |
honeybhabes_19 | |
hudsucka | |
iamonlyhuman9 | |
jabravo | |
kalecrypto | |
ledger_man | |
mlacryptostore | |
pbvp4 | |
rrvalare | |
squaredoc1 | |
stackingcats2 | |
travisebel | |
vc_sa_ | |
) | |
contest_participants = replies + retweets | |
puts "#{contest_participants.size} participants" | |
# First block after Midnight UTC on Dec 23 2019 | |
block_hash = "00000000000000000000f670181f57dcc7478fb635d67de4a34d6e0377246ee2" | |
puts "The integer block hash is #{block_hash.to_i(16)}" | |
winner = block_hash.to_i(16) % contest_participants.size | |
puts "The winning number is #{winner}" | |
puts "Winner: #{contest_participants[winner]}" | |
#### OUTPUT | |
## 167 participants | |
## The integer block hash is 92203353010687500114956774544824832245386979190271714 | |
## The winning number is 77 | |
## Winner: chresnas_putra | |
#### |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment