Skip to content

Instantly share code, notes, and snippets.

View FoxSamu's full-sized avatar
🏳️‍🌈
AWA

Samū FoxSamu

🏳️‍🌈
AWA
View GitHub Profile
@FoxSamu
FoxSamu / Ilnetaevre.md
Created June 2, 2024 14:35
An esoteric programming language where everything is functions and strings, where the only built in operation is to interleave two strings.

Ilnetaevre

An esoteric programming language where everything is functions and strings, where the only built in operation is to interleave two strings.

Note

I need to work this out more.

The only allowed symbols non-negative integers and the symbols ., , >, <, #, ! and :. Comments follow after any - sign and any text there is ignored. Leading zeroes don't change the meaning of a symbol: 1 and 01 are considered identical.

All values are strings. The following things are built in ways to obtain strings.

@FoxSamu
FoxSamu / MouseBase.java
Created July 22, 2022 22:03
Translating random chunks of my Java code to Dutch: MuisBasis
// Original
package net.shadew.ui.input;
import net.shadew.ui.util.Box;
public class MouseBase implements Mouse {
private final InputSource inputSource;
private float originX;
private float originY;
private boolean hasInput;
@FoxSamu
FoxSamu / README.md
Last active July 21, 2022 13:08
Java List reflecting another list in reverse order

A List implementation that reflects another list but in the reverse order. Usage: ReverseList.of(myList). The returned list implements RandomAccess if the provided list does so too (can have a slight performance boost).

Feel free to copy and edit this code however you like but please credit me.

@FoxSamu
FoxSamu / en_US.lang
Last active October 23, 2019 19:15
A better English translation for Salty Mod 1.12.2
# ENGLISH - UNITED STATES
# =====================================
# Original translation by Liahim85
# Improved by RGSW
itemGroup.salt_tab=Salt
tile.salt_ore.name=Salt Ore
tile.salt_lake.name=Salt Lake Bottom Block
tile.salt_block.name=Block Of Salt
@FoxSamu
FoxSamu / nl_NL.lang
Created October 23, 2019 18:13
A better Dutch translation for Salty Mod 1.12.2
# DUTCH - THE NETHERLANDS
# ======================================
# Original translation by LeeJow
# Improvement by RGSW
itemGroup.salt_tab=Zout
tile.salt_ore.name=Zouterts
tile.salt_lake.name=Zoutmeerbodem
tile.salt_block.name=Zoutblok
@FoxSamu
FoxSamu / def_style.js
Created May 23, 2018 11:29
Default style in javascript
var defstyles = "body {background-color: red}"
function setDefaultStyle(){
var link = document.createElement("link")
var css = encodeURI(defstyles)
document.head.insertBefore(css, document.head.firstChild)
link.setAttribute("rel", "stylesheet")
link.setAttribute("href", "data:text/css,"+css)
}