This file contains hidden or 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
require "discordrb" | |
require "httparty" | |
def notify_slack(message) | |
HTTParty.post( | |
# people_who_play_games | |
"https://hooks.slack.com/services/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", | |
body: JSON.dump({ | |
text: message, | |
username: "Discord announcement", |
This file contains hidden or 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
Generation 0: Parents 0.000% and 0% ethnic had a child 0.000% ethnic | |
Generation 1: Parents 0.000% and 100% ethnic had a child 50.000% ethnic | |
Generation 2: Parents 50.000% and 0% ethnic had a child 25.000% ethnic | |
Generation 3: Parents 25.000% and 100% ethnic had a child 62.500% ethnic | |
Generation 4: Parents 62.500% and 0% ethnic had a child 31.250% ethnic | |
Generation 5: Parents 31.250% and 100% ethnic had a child 65.625% ethnic | |
Generation 6: Parents 65.625% and 0% ethnic had a child 32.812% ethnic | |
Generation 7: Parents 32.812% and 100% ethnic had a child 66.406% ethnic | |
Generation 8: Parents 66.406% and 0% ethnic had a child 33.203% ethnic | |
Generation 9: Parents 33.203% and 100% ethnic had a child 66.602% ethnic |
This file contains hidden or 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
bool for_switch_state_machine_wtf() { | |
int state = 1 | |
for(;;) { | |
switch(state) { | |
case 1: | |
if (!do_some_stuff()) | |
return false; | |
state = 2; |