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
| from matplotlib import pyplot as plt | |
| import random | |
| import math | |
| n = 10 | |
| iters = list(range(200)) | |
| ls = sorted([0] + [random.uniform(0, 1) for _ in range(n-1)] + [1]) | |
| cls = [i*(1/n) for i in range(n+1)] |
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
| #include "raylib.h" | |
| #include "rlgl.h" | |
| #include <cmath> | |
| struct Circle | |
| { | |
| int radius; | |
| float posX; | |
| float posY; |
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
| import os | |
| import time | |
| car = """ | |
| ______ | |
| /|_||_\`.__ | |
| ( _ _ _\\ | |
| =`-(_)--(_)-'""" |
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
| use std::io; | |
| fn main() { | |
| let mut number = String::new(); | |
| io::stdin() | |
| .read_line(&mut number) | |
| .expect("Failed to get input"); | |
| let mut steps: Vec<usize> = Vec::new(); | |
| let mut other_nums: Vec<usize> = Vec::new(); |
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
| use std::io; | |
| use std::collections::HashMap; | |
| fn main() { | |
| let mut values: HashMap<usize, usize> = HashMap::new(); | |
| println!("Please enter the values in the format `b mod n`"); | |
| println!("Enter `q` to break"); | |
| loop { | |
| let mut statement = String::new(); |
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
| import requests | |
| from bs4 import BeautifulSoup | |
| req = requests.get("https://www.nerdfonts.com/cheat-sheet") | |
| soup = BeautifulSoup(req.content, "html.parser") | |
| def main(icon): | |
| icon_html = soup.find_all(id="glyphCheatSheet") | |
| icon_html = icon_html[0] | |
| icons = [] |