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
| pub mod overlapping_line { | |
| #[derive(Debug, Clone)] | |
| pub enum Linetree { | |
| Empty, | |
| Filled, | |
| Node { | |
| pivot: i64, | |
| left: Box<Linetree>, | |
| right: Box<Linetree>, | |
| } |
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
| (define (compose-list fs) | |
| (lambda (x) | |
| (foldr (lambda (f acc) (f acc)) x fs))) | |
| (define (add1 x) (+ x 1)) | |
| (define (number->string x) (number->string x)) | |
| ((compose-list (list number->string add1)) 3) |
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
| # sudo apt install -y && sudo apt-get -y install libcogl-pango-dev && pip install manim | |
| from manim import * | |
| from math import * | |
| class KleinBottle(ThreeDScene): | |
| def construct(self): | |
| def klein_bottle(u, v): | |
| u = u * 2 * PI | |
| v = v * 2 * PI | |
| half = (u < PI) |
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 cv2 | |
| import os | |
| import glob | |
| from deepface import DeepFace | |
| videos_folder = 'videos/' | |
| output_folder = 'output_frames/' | |
| if not os.path.exists(output_folder): | |
| os.makedirs(output_folder) |
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
| <!doctype html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>iOS Time Picker</title> | |
| <style> | |
| html, | |
| body { | |
| height: 100%; |
OlderNewer