I hereby claim:
- I am ElCap1tan on github.
- I am elcapitan (https://keybase.io/elcapitan) on keybase.
- I have a public key whose fingerprint is 46BC 0935 22EB D7B6 869A 22F1 E0B0 6F80 3327 2AAA
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| extern crate rand; | |
| use std::io; | |
| use rand::Rng; | |
| use std::cmp::Ordering; | |
| fn main() { | |
| println!("Guess the number!"); | |
| let secret_number = rand::thread_rng().gen_range(1, 101); |
| import hashlib | |
| def hash_word(string, hash_method): | |
| if hash_method == "md5": | |
| return hashlib.md5(string.encode()).hexdigest() | |
| if hash_method == "sha3_256": | |
| return hashlib.sha3_256(string.encode()).hexdigest() | |
| class Hangman: | |
| def __init__(self): | |
| self.stages = [] | |
| self.stages.append(""" | |
| ___________.._______ | |
| | .__________))______| | |
| | | / / || | |
| | |/ / || |
| from student_register import StudentRegister | |
| from student import Student | |
| def main(): | |
| register = StudentRegister("Bachelor CS 2019") | |
| napoleon = Student('Napoleon', 1, 20) | |
| snowball = Student('Snowball', 2, 22) | |
| squealer = Student('Squealer', 3, 19) |
| using System; | |
| namespace Fisher_Yates_shuffle | |
| { | |
| class Program | |
| { | |
| static void Main(string[] args) | |
| { | |
| // Generate a set of numbers from user input... | |
| Console.Write("Enter count of numbers to shuffle: "); |
| import sys | |
| class ProgressPrinter: | |
| def __init__(self, units, unit_type='', max_length=50, pre='', post='', fill='=', head='>', empty=' '): | |
| if units > max_length: | |
| self.steps = max_length / units | |
| self.max_length = max_length | |
| else: | |
| self.steps = 1 |
| public class Main { | |
| public static void main(String[] args) { | |
| Bruch b = null; | |
| Bruch b2 = null; | |
| try { | |
| b = new Bruch(18,36); | |
| b2 = new Bruch(13, 24); | |
| } |