Skip to content

Instantly share code, notes, and snippets.

Ryan ryanwarsaw

View GitHub Profile
View gist:527bdb4beb2556fabde0
private static class SignListener implements Listener {
@EventHandler()
public void onSignWrite(SignChangeEvent sign) {
Player player = sign.getPlayer();
for(int x = 1; x < 5; x = x+1) {
if(sign.getLine(x).equalsIgnoreCase("<3")) {
sign.setLine(x, "<heart>");
}
}
View gist:dfd286312d4c307f0e84
package me.ryanw.launch.me.ryanw.utils;
import java.io.*;
import java.net.HttpURLConnection;
import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLEncoder;
public class RESTful {
View gist:007f339975103ae85ec9
package me.ryanw.launch.me.ryanw.utils;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;
public class RESTful {
View gist:73e14bc96aa016ea0c12
public abstract class DIY {
private Integer limit;
private Integer offset;
private String docs;
private String email;
private String twitterUsername;
/**
View gist:79c1ebc7bbd2d2b10cbe
public class JsonTranslator {
public class BasicRequestDeserializer implements JsonDeserializer<BasicRequest>
{
@Override
public BasicRequest deserialize(JsonElement jsonElement, Type type, JsonDeserializationContext jsonDeserializationContext) throws JsonParseException {
return null;
}
}
View gist:9d97823b043cf531886e
Compiling a fresh build of spigot!
BuildTools
unconfigured@null.spigotmc.org
Starting clone of https://hub.spigotmc.org/stash/scm/spigot/bukkit.git to Bukkit
Cloned git repository https://hub.spigotmc.org/stash/scm/spigot/bukkit.git to /home/ryanw/compile_spigot/Bukkit. Current HEAD: 0b440145d31a6415ee48b85e029532965c82d977
Starting clone of https://hub.spigotmc.org/stash/scm/spigot/craftbukkit.git to CraftBukkit
Cloned git repository https://hub.spigotmc.org/stash/scm/spigot/craftbukkit.git to /home/ryanw/compile_spigot/CraftBukkit. Current HEAD: c80683161952dcd465a9e9514daf488c1177b944
Starting clone of https://hub.spigotmc.org/stash/scm/spigot/spigot.git to Spigot
Cloned git repository https://hub.spigotmc.org/stash/scm/spigot/spigot.git to /home/ryanw/compile_spigot/Spigot. Current HEAD: 5ffe41c391075a995acb9ab0c493e69a211629ee
Starting clone of https://hub.spigotmc.org/stash/scm/spigot/builddata.git to BuildData
View Installer.sh
#!/bin/sh
BuildToolsAddress="https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar"
AphelionAddress="[link redacted]"
cat logo.txt
if [ -f BuildTools.jar ]; then
while true; do
read -p "Would you like to update your version of BuildTools? (y/n): " yn
case ${yn} in
[Yy]* ) rm -rf BuildTools.jar; curl -o BuildTools.jar ${BuildToolsAddress}; break;;
View welcome.md

Table of Contents

Getting started

Welcome to Webmaker for Android! Here's some things to know before getting started.

View locale-output.txt
07-06 17:04:44.623 3777-3777/org.mozilla.webmaker V/language﹕ af
07-06 17:04:44.624 3777-3777/org.mozilla.webmaker V/language﹕ af-NA
07-06 17:04:44.624 3777-3777/org.mozilla.webmaker V/language﹕ af-ZA
07-06 17:04:44.624 3777-3777/org.mozilla.webmaker V/language﹕ agq
07-06 17:04:44.624 3777-3777/org.mozilla.webmaker V/language﹕ agq-CM
07-06 17:04:44.624 3777-3777/org.mozilla.webmaker V/language﹕ ak
07-06 17:04:44.624 3777-3777/org.mozilla.webmaker V/language﹕ ak-GH
07-06 17:04:44.624 3777-3777/org.mozilla.webmaker V/language﹕ am
07-06 17:04:44.625 3777-3777/org.mozilla.webmaker V/language﹕ am-ET
07-06 17:04:44.625 3777-3777/org.mozilla.webmaker V/language﹕ ar
@ryanwarsaw
ryanwarsaw / mappings.json
Last active Aug 29, 2015
OvercastAPI mappings JSON file!
View mappings.json
[
{
"id": "globalKills",
"selector": "html body div.container section div.row div.span7 div.row-fluid div.span8 div.row-fluid div.span5 h2[title]",
"filter": "^.*kills.*$"
},
{
"id": "globalDeaths",
"selector": "html body div.container section div.row div.span7 div.row-fluid div.span4 h2[title]",
"filter": "^.*deaths.*$"
You can’t perform that action at this time.