Skip to content

Instantly share code, notes, and snippets.

💭
Looking for freelance work!

Joshua Barretto zesterer

💭
Looking for freelance work!
Block or report user

Report or block zesterer

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@zesterer
zesterer / natter.rs
Created Jun 30, 2019
Natter Interpreter
View natter.rs
use std::{
sync::mpsc,
thread::{self, JoinHandle},
collections::{HashMap, HashSet},
};
// Error
#[derive(Debug)]
pub enum Error {
View gist:624d661016406378c343dd629178189d
#!/usr/bin/env bash
set -e
cweb_version=0.6.24
cweb=https://github.com/koute/cargo-web/releases/download/$cweb_version/cargo-web-x86_64-unknown-linux-gnu.gz
curl -Lo cargo-web.gz $cweb
gunzip cargo-web.gz
chmod u+x cargo-web
View web.sh
#!/usr/bin/env bash
set -e
cweb_version=0.6.24
cweb=https://github.com/koute/cargo-web/releases/download/$cweb_version/cargo-web-x86_64-unknown-linux-gnu.gz
curl -Lo cargo-web.gz $cweb
gunzip cargo-web.gz
chmod u+x cargo-web
View veloren-docs.sh
#!/usr/bin/env bash
set -e
curl https://sh.rustup.rs -sSf | sh -s - --default-toolchain nightly -y
source ~/.cargo/env
rm -rf target/
rm -f Cargo.lock
View mdbook.sh
#!/usr/bin/env bash
set -e
mdbook=https://github.com/rust-lang-nursery/mdBook/releases/download/v0.2.1/mdbook-v0.2.1-x86_64-unknown-linux-gnu.tar.gz
curl -Lo mdbook.tar.gz $mdbook
tar -xzvf mdbook.tar.gz
chmod u+x mdbook
./mdbook build
View sim.rs
use std::{
f32,
io
};
use minifb::{
Key,
WindowOptions,
Window,
};
use vek::*;
View sim.rs
use std::f32;
use minifb::{
Key,
WindowOptions,
Window,
};
use vek::*;
const W: usize = 64;
const H: usize = 64;
View mdbook.sh
#!/usr/bin/env bash
set -e
mdbook=https://github.com/rust-lang-nursery/mdBook/releases/download/v0.2.1/mdbook-v0.2.1-x86_64-unknown-linux-gnu.tar.gz
curl -Lo mdbook.tar.gz $mdbook
tar -xzvf mdbook.tar.gz
chmod u+x mdbook
curl https://sh.rustup.rs -sSf | sh -s - --default-toolchain nightly -y
@zesterer
zesterer / hanoifuck.c
Created Mar 9, 2019
Hanoifuck is a Turing-complete programming language inspired by Towers of Hanoi and Brainfuck
View hanoifuck.c
unsigned char SA[1024], SB[1024], SC[1024];
unsigned char *sa = SA, *sb = SB, *sc = SC, *tmp;
int cp = 0;
int main(int argc, char **argv) {
char* code = "$+$+$+[$-!$+$+$+$+!!]![$-!!$+$+$+$+$+$+!]!!.$-$-$-.$$$$$$$+++++++..$$$+++.[$-]$+$+[$-!$+$+$+$+$+!!]!.";
while (*code != '\0') {
switch (*code) {
@zesterer
zesterer / cargo-web-netlify.sh
Last active Feb 25, 2019
curl <URL> -sSLf | bash
View cargo-web-netlify.sh
#!/usr/bin/env bash
set -e
cweb_version=0.6.23
cweb=https://github.com/koute/cargo-web/releases/download/$cweb_version/cargo-web-x86_64-unknown-linux-gnu.gz
curl -Lo cargo-web.gz $cweb
gunzip cargo-web.gz
chmod u+x cargo-web
You can’t perform that action at this time.