Skip to content

Instantly share code, notes, and snippets.

View AuroransSolis's full-sized avatar
🦀
crab

Aurorans Solis AuroransSolis

🦀
crab
  • Phoenix, Arizona
View GitHub Profile
@AuroransSolis
AuroransSolis / mfaktocmd.sh
Last active March 28, 2020 06:37
Two script files I wrote to help automate my usage of mfakto.
#!/bin/sh
# Requires:
# - entr
# - tmux
# - mfloop
# - mfloop-runner.sh
################################################################################
@AuroransSolis
AuroransSolis / main.rs
Last active October 19, 2017 18:57
Parker Square, anyone?
extern crate num_cpus;
use std::thread;
use std::sync::mpsc;
const GOOD_MASK: u64 = 0xC840C04048404040;
fn is_square(mut x: u32) -> bool {
if (GOOD_MASK << x) as i64 >= 0 {
@AuroransSolis
AuroransSolis / main.rs
Created October 10, 2017 20:27
Readable version :o
extern crate time;
extern crate num_cpus;
extern crate byteorder;
use std::io;
use std::fs::File;
use std::str::FromStr;
use std::fmt::Debug;
use std::io::Write;
use std::thread;
@AuroransSolis
AuroransSolis / main.rs
Last active September 12, 2017 05:06
Generate images showing prime numbers in the range of numbers from 1 to image width * image height
extern crate image;
extern crate time;
extern crate num_cpus;
use std::io;
use std::fs::File;
use std::path::Path;
use std::str::FromStr;
use std::fmt::Debug;
use std::io::Write;
# GPL # original by Buerbaum Martin (Pontiac), Elod Csirmaz, edited by Aurorans Solis
#How to use:
#Step one (a): open Blender
# (b): install and then open Blender
#Step two: press "a" twice, then "x," then enter.
#Step three: open up the text editor
#Step four: copy and paste the code here into the Blender text editor
#Step five: run the script
#Step six: return to 3D view