Skip to content

Instantly share code, notes, and snippets.

SoptikHa2

Block or report user

Report or block SoptikHa2

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View markov-chain.py
import sys
from random import randint
def next_letter(probs, letter):
if not letter in probs:
return None
probs_for_letter = probs[letter]
sum_of_probs = 0
for prob in probs_for_letter:
sum_of_probs += probs_for_letter[prob]
View keybase.md

Keybase proof

I hereby claim:

  • I am soptikha2 on github.
  • I am soptikha2 (https://keybase.io/soptikha2) on keybase.
  • I have a public key ASDpSr1gNR-vLwiyvC6a_PZhQEgmbNqBtyxssiJVZ59Itgo

To claim this, I am signing this object:

@SoptikHa2
SoptikHa2 / code-wars.rs
Created Jul 14, 2019
Code wars - behaviour tree
View code-wars.rs
// Petr Šťastný <petr.stastny01@gmail.com>
// 2019-07-14
// trait = interface
pub trait CodingBlock {
fn execute(&self) -> Option<&Action>;
}
// Define enums. Each enum variant can
// have another type inside it.
You can’t perform that action at this time.