Skip to content

Instantly share code, notes, and snippets.

View FoxSamu's full-sized avatar
🏳️‍🌈
You didn't think foxes could write code, but they can!

Samū Ketuvo FoxSamu

🏳️‍🌈
You didn't think foxes could write code, but they can!
View GitHub Profile
@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 / modernity.md
Last active June 9, 2020 13:26
The Modernity: the new ideas

The Modernity

While the old Modernity continutes as Nature's Debris, there are new ideas for the new Modernity: I describe them in this document.

The Idea

The Modernity is a weird and remote dimension never really known by anyone as it was kept a secret by the endermen. But the secret slowly leaked out as things started to go wrong in the overworld. The dimension became known to humanity and eventually it became possible to open a portal into the dimension.

Once stepped through the portal, one will encounter strange flora and fauna in a dark, underground world. The world is inhabited by strange creatures and plants in various colors, glowing or not. It is controlled by strange and seemingly unnatural mechanics, but everything is natural and rules life in the dimension. For the player to survive in the world, the player needs to get up with the strange mechanics of the world.

Environment

The environment shows up as dark with a few lights, obscured by a dense, dark-blue fog. The view range isn't far

@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)
}