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
#![feature(asm)] | |
use std::env::args; | |
#[cfg(target_arch = "x86_64")] | |
fn main() { | |
match args().nth(1).unwrap().as_ref() { | |
"a" => fa(), | |
"b" => fb(), | |
x => panic!("unknown arg: {}", x), |
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 numpy as np | |
from numba import jit | |
from math import sqrt | |
from PIL import Image | |
import time | |
# jit call tells numba we want to optimize this function | |
@jit | |
def generate_mbrot_img(res): | |
# create an array a of size WIDTH, HEIGHT, DEPTH (color-wise) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 numpy as np | |
import gizeh | |
import moviepy.editor as mpy | |
import logging | |
from math import e, pi, factorial | |
from cmath import sin, log, tan, cos, sinh | |
logging.basicConfig(filename='out.log',level=logging.DEBUG) | |
W,H = 1920, 1080 | |
duration = 7 |
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 numpy as np | |
import gizeh | |
import moviepy.editor as mpy | |
import logging | |
from math import e | |
logging.basicConfig(filename='out.log',level=logging.DEBUG) | |
# This is actually only part of the code! The grid drawing code is taken out for whatever reason (I lost it!) | |
W,H = 750, 750 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.