Skip to content

Instantly share code, notes, and snippets.

@ThomasGaubert
ThomasGaubert / AdSheet.java
Created December 23, 2011 06:07
MapPad Ads
package com.sk89q.mappad.apps;
import java.awt.Color;
import java.awt.Image;
import java.awt.image.BufferedImage;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.net.URL;
import java.net.URLConnection;
import java.util.Random;
diff --git a/src/main/java/org/bukkit/Material.java b/src/main/java/org/bukkit/Material.java
new file mode 100755
index 0000000..699d5ea
--- /dev/null
+++ b/src/main/java/org/bukkit/Material.java
@@ -0,0 +1,617 @@
+package org.bukkit;
+
+import java.lang.reflect.*;
+import java.util.*;
@ThomasGaubert
ThomasGaubert / ServerStatusListener.java
Created February 3, 2012 02:41
RoketGamer API - Preview
package com.roketgamer.net;
import java.util.ArrayList;
public class ServerStatusListener {
private static ArrayList<ServerStatusListener> listeners = new ArrayList<ServerStatusListener>();
/**
* Constructs <code>ServerStatusListener</code> object
*/
@ThomasGaubert
ThomasGaubert / Main.c
Created October 20, 2012 21:51
JPII Robotics - COCO BEST 2012
/*
* JPII Robotics 2012
* Main.C - 10/19/12
* (c) 2012 Max Kirkby & Thomas Gaubert
*
* Licensed under GNU General Public License v3.0 <http://www.gnu.org/licenses/gpl.html>.
*/
int motorArmUpDown = port2; // Moves arm up and down.
int motorVertical = port3; // Moves robot up and down.
int motorArmBase = port6; // Base rotation
@ThomasGaubert
ThomasGaubert / changer.js
Created December 28, 2012 04:49
Dropdown selection changer
var $options = $("#options");
var options = [
{id: "0", value: "Select one..."},
{id: "1", value: "Choice 1"},
{id: "2", value: "Choice 2"},
{id: "3", value: "Choice 3"},
{id: "4", value: "Choice 4"}
];
@ThomasGaubert
ThomasGaubert / app-strings.xml
Last active August 29, 2015 14:06
Tockle Strings
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- Global Strings -->
<string name="app_name">Tockle</string>
<string name="app_authors">Thomas Gaubert &amp; Stephen Ziske</string>
<string name="app_author_tgaubert">Thomas Gaubert</string>
<string name="app_author_sziske">Stephen Ziske</string>
<string name="ok">OK</string>
<string name="yes">Yes</string>
@ThomasGaubert
ThomasGaubert / getdevices.py
Created January 29, 2015 20:20
Get all Android device IDs tied to a Google Play Music account.
from gmusicapi import Webclient
# Use Google account credintials. If two factor is enabled, use application specific password.
email = '[email protected]'
password = 'password'
api = Webclient()
logged_in = api.login(email, password)
# logged_in is True if login was successful
@ThomasGaubert
ThomasGaubert / playsong.py
Last active April 4, 2020 19:46
Play songs from Google Play Music in VLC.
from gmusicapi import Webclient
from gmusicapi import Mobileclient
import vlc
import urllib
# Use Google account credintials. If two factor is enabled, use application specific password.
email = '[email protected]'
password = 'password'
# Device ID for API queries. Leave blank if unknown.
@ThomasGaubert
ThomasGaubert / smite.json
Last active August 29, 2015 14:15
Sample Smite file
{
"name": "Project Name",
"version": "1.0.5",
"versionCode": 7,
"updateFirst": false,
"minVersion": 1,
"url": "https://gist.githubusercontent.com/TexasGamer/712a6df3ea7c563fc438/raw/",
"tasks":[
{
"name": "Update Program",
@ThomasGaubert
ThomasGaubert / DefaultInput.java
Created April 17, 2016 05:11
SteamVR Controller Experiments
package jmevr;
import com.jme3.scene.Geometry;
import jmevr.input.VRInput;
public class DefaultInput implements Input {
public InputMode getInputMode() {
return InputMode.DEFAULT;
}