Skip to content

Instantly share code, notes, and snippets.

View rphsoftware's full-sized avatar
🐈
We stay silly :3

Rph rphsoftware

🐈
We stay silly :3
View GitHub Profile
# Given a 3 block column at armor_stand[tag=InternalAdderInput]
# places a single output bit at armor_stand[tag=InternalAdderOutput]
# and the carry flag at armor_stand[tag=InternalAdderInput].z + 1, y + 2
# then moves output and input ahead in z by 1 block.
scoreboard objectives add wacraft_adder_internals dummy [{"text":"Adder Internals"}]
execute as @e[type=armor_stand,tag=InternalAdderInput,limit=1] run scoreboard players reset @s wacraft_adder_internals
execute as @e[type=armor_stand,tag=InternalAdderInput,limit=1] run scoreboard players set @s wacraft_adder_internals 0
execute as @e[type=armor_stand,tag=InternalAdderInput,limit=1] at @s run execute if block ~ ~ ~ minecraft:white_wool run scoreboard players add @s wacraft_adder_internals 1
@rphsoftware
rphsoftware / generate.rs
Created July 19, 2020 15:03
File that generates a bitflag-based binary file containing what unicode characters are deemed uppercase (by the official Unicode Consortium document)
use std::{fs, env};
use minidom::Element;
use std::fs::File;
use std::io::Write;
fn main() {
let mut a = env::current_dir().expect("Something went wrong");
println!("{}", a.as_os_str().to_string_lossy());
a.push("ucd.all.flat.xml");
00000000 00 00 00 03 00 00 00 03 01 1f 0a 00 00 0c 00 0f |................|
00000010 4d 4f 54 49 4f 4e 5f 42 4c 4f 43 4b 49 4e 47 00 |MOTION_BLOCKING.|
00000020 00 00 24 90 08 04 02 01 00 7e 3f 48 a4 72 29 14 |..$......~?H.r).|
00000030 8a 45 21 04 12 01 00 80 40 21 11 52 29 14 8a 43 |.E!.....@!.R)..C|
00000040 21 90 08 09 00 80 40 21 11 48 a4 0c 86 43 21 90 |!.....@!.H...C!.|
00000050 48 24 12 82 41 21 10 88 24 12 11 41 20 90 48 24 |H$..A!..$..A .H$|
00000060 12 09 04 21 90 88 24 12 09 04 82 10 88 44 22 11 |...!..$......D".|
00000070 08 84 42 88 24 12 09 04 84 42 21 44 12 09 04 84 |..B.$....B!D....|
00000080 42 21 90 22 11 08 84 43 21 10 88 09 24 92 49 22 |B!."...C!...$.I"|
00000090 10 c8 44 0c 86 43 21 90 88 44 12 94 4a 22 91 08 |..D..C!..D..J"..|
@rphsoftware
rphsoftware / fscript.go
Last active July 23, 2020 22:10
Go implementation of @extrasklep 's fscript
package main
import (
"flag"
"fmt"
"io/ioutil"
"log"
"os"
"strings"
)
@rphsoftware
rphsoftware / oh_yes.py
Created January 16, 2019 14:00
RGB THINGIE!
# CLI ARGS: file resizeX resizeY framesCount delay
import sys, os, shutil
from subprocess import call
if len(sys.argv) < 6:
print("E.")
exit(1)
try:

Keybase proof

I hereby claim:

  • I am rphsoftware on github.
  • I am rph (https://keybase.io/rph) on keybase.
  • I have a public key ASACnrOS-RdXXg1_-eV1NZ-c_C88QrMUrkmrG1AdGok1gQo

To claim this, I am signing this object:

**Comprehensive list of hosting companies**
**Free**
<https://glitch.com/> - They can host node.js programs, needs some setup
<https://heroku.com/> - They can host boats in almost any lang, needs some setup
**Paid**
<https://www.ovh.com/> - Cheap servers, not very fast network, quite decent reliability
<https://www.scaleway.com/> - Cheap servers, decent network, decent reliability
<https://bakeryhosting.us/> - Cheap servers, no bandwidth limits, small company, decent reliability
<https://www.vultr.com/> - Expensive, very good servers, excellent reliability