Skip to content

Instantly share code, notes, and snippets.

View Nakanoin19's full-sized avatar
💤
Sleepy

中院ぴあの Nakanoin19

💤
Sleepy
View GitHub Profile
@Nakanoin19
Nakanoin19 / sleepiness.rs
Last active April 24, 2025 05:29
Tiny Sleepiness Game
use text_io::read;
use rand::random_range;
#[derive(Clone, Copy)]
struct Player {
hp: i64,
sleepiness: i64,
}
impl Player {

Keybase proof

I hereby claim:

  • I am nakanoin19 on github.
  • I am nakanoin19 (https://keybase.io/nakanoin19) on keybase.
  • I have a public key ASBf5bG2BQpJ-K1xxpVLY9CPS1iI3b_7e6t6YUKGq5z5oQo

To claim this, I am signing this object:

@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.