Skip to content

Instantly share code, notes, and snippets.

View Nakanoin19's full-sized avatar
💤
Sleepy

中院ぴあの Nakanoin19

💤
Sleepy
View GitHub Profile
@Nakanoin19
Nakanoin19 / bf.rs
Last active August 8, 2024 01:34
Simple Brainfuck Interpreter
use text_io::read;
use std::collections::VecDeque;
fn main() {
loop {
print!("BF) ");
let code: String = read!();
if code.trim() == "!".to_string() {
println!("Exit");
break;
#!/usr/bin/env bash
set -x
wget https://go.dev/dl/go1.22.2.linux-amd64.tar.gz -O /tmp/go.tar.gz
dpkg -s golang > /dev/null 2>&1
if [ $? -eq 0 ]; then
apt-get purge -y golang
apt-get autoremove -y
fi
dpkg -s golang-go > /dev/null 2>&1
if [ $? -eq 0 ]; then
@Nakanoin19
Nakanoin19 / brainpower.bf
Last active March 19, 2023 10:56
Brainf**kでBrain PowerのDrop部分を書いてみた
>++++[<++++++++>-]>+++++[<+++++++++>-]>>++[<++++[<+++++++++>-]>-]<<+++++++.<.>>++++[<++++++++>-]<..........<<.>>>++++[<-------->-]++[<------->-]<....++++.<.>----.<.>.<.>++++++++.<.>--------.<.>>++++[<+++++>-]<.<<.>>>++[<----->-]<-.+++++.<.>>++++[<++++++++>-]<............<<.>>>++++[<-------->-]++[<------->-]<..++++.<.>>++[<+++++>-]<.<.>>++[<------->-]<.<.>.<.>>++++[<+++++>-]<.<.>.<.>>++++[<----->-]<.<.<.>>++++.<.>>++++[<++++++++>-]<...<.>..<.>...<<.>>>++++++[<------>-]<....++++.<.>----.<.>>++[<++++>-]<.<.>----.<.>----.<.<.>>>+++[<+++>-]<.+++++.<.>>++++[<++++++++>-]<...<.>..<.>..<.>..<<.>>>++++++[<------->-]<....>++[<+++++>-]<.<.>>++[<------->-]<.<.>...<.>....
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.