Skip to content

Instantly share code, notes, and snippets.

View ryanwarsaw's full-sized avatar

Ryan Warsaw ryanwarsaw

View GitHub Profile
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>");
}
}
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 {
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 {
public abstract class DIY {
private Integer limit;
private Integer offset;
private String docs;
private String email;
private String twitterUsername;
/**
public class JsonTranslator {
public class BasicRequestDeserializer implements JsonDeserializer<BasicRequest>
{
@Override
public BasicRequest deserialize(JsonElement jsonElement, Type type, JsonDeserializationContext jsonDeserializationContext) throws JsonParseException {
return null;
}
}
Compiling a fresh build of spigot!
BuildTools
[email protected]
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
#!/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;;

Table of Contents

Getting started

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

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 August 29, 2015 14:24
OvercastAPI mappings JSON file!
[
{
"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.*$"