Skip to content

Instantly share code, notes, and snippets.

View rmsy's full-sized avatar
🏠
Working from home

Isaac Moore rmsy

🏠
Working from home
View GitHub Profile
@rmsy
rmsy / I18nLoader.tsx
Last active July 1, 2020 00:03
This is a slight re-write of the component created [here](https://lingui.js.org/guides/dynamic-loading-catalogs.html) to be a functional component and support a priority-ordered list of multiple locales.
import React, { useCallback, useEffect, useState } from "react";
import { Catalog } from "@lingui/core";
import { I18nProvider } from "@lingui/react";
export type I18nLoaderProps = {
locales: string[];
};
/**
* This component attempts to load the first available compiled message catalog for the array of passed in locales. If
@rmsy
rmsy / filters.md
Last active August 29, 2015 14:05
New filter usage.

Usage

Game Mode

Kit:

<game-mode>creative</game-mode>

Sets the player to creative mode.

Filter:

@rmsy
rmsy / map.xml
Created April 19, 2014 04:48
Bastion XML
<?xml version="1.0"?>
<map proto="1.3.2">
<name>Bastion</name>
<version>1.0</version>
<objective>Capture the wool from the enemy's side and return it safely to your victory monument!</objective>
<authors>
<author>EnarRikardz</author>
<author>DiamondAx</author>
</authors>
javascript:(function() {
var bookmarklet = {
init: function() {
this.parse();
},
parse: function() {
page = "";
$(".InfiniteScroll:visible")
.children(".scrollable_content")
.find(".Track")
@rmsy
rmsy / Potions.java
Created September 7, 2013 18:11
Potion effects mapped to their negative (inverse) implications.
/** Potion effects mapped to their negative (inverse) implications. */
public static final Map<PotionEffectType, PotionClassification> inversePotionEffectTypeImplications;
static {
HashMap<PotionEffectType, PotionClassification> temporaryMap = new HashMap<>();
// SLOW
temporaryMap.put(PotionEffectType.SPEED, PotionClassification.HARMFUL);
// SPEED
temporaryMap.put(PotionEffectType.SLOW, PotionClassification.BENEFICIAL);
// SLOW_DIGGING
@rmsy
rmsy / map.xml
Created September 2, 2013 06:48
Metadata for Deus ex Machinations: Keys.
<?xml version="1.0"?>
<map proto="1.3.0">
<name>Deus ex Machinations: Keys</name>
<version>1.11</version>
<objective>Collect 10 Keystones from throughout the map and place them in the enemy's Command Center. Once 10 Keystones are placed, go through the doors and destroy the Lift Core to win the game!</objective>
<authors>
<author>bleangamer</author>
</authors>
<contributors>
<contributor contribution="XML">nixter1029</contributor>
@rmsy
rmsy / map.xml
Last active December 21, 2015 01:59
Metadata for Lys.
<?xml version="1.0"?>
<map proto="1.3.0">
<name>Lys</name>
<version>1.0</version>
<objective>Destroy both of the enemy monuments whilst defending your own!</objective>
<authors>
<author contribution="Map design">Tywnis</author>
</authors>
<contributors>
<contributor contribution="Metadata (XML)">iamramsey</contributor>
@rmsy
rmsy / b.java
Last active December 20, 2015 15:29
package me.Barnyard_Owl.OvercastMimic;
import java.util.Iterator;
import java.util.logging.Logger;
import me.Barnyard_Owl.OvercastMimic.OvercastMimic;
import me.Barnyard_Owl.OvercastMimic.c;
import me.Barnyard_Owl.OvercastMimic.d;
import me.Barnyard_Owl.OvercastMimic.g;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
@rmsy
rmsy / map.xml
Last active December 20, 2015 14:49
Metadata for Yggdrasil.
<?xml version="1.0"?>
<map proto="1.3.0">
<name>Yggdrasil</name>
<version>1.0</version>
<objective>Amass the most amount of points before time runs out!</objective>
<authors>
<author contribution="Map design">Tywnis</author>
</authors>
<contributors>
<contributor contribution="Metadata (XML)">iamramsey</contributor>
@rmsy
rmsy / map.xml
Last active December 20, 2015 14:49
Metadata for Sands of Life.
<?xml version="1.0"?>
<map proto="1.3.0">
<name>Sands of Life</name>
<version>1.0.1</version>
<objective>Amass the most amount of points before time runs out!</objective>
<authors>
<author contribution="Map design">Tywnis</author>
<author contribution="Map design">i2</author>
</authors>
<contributors>