Skip to content

Instantly share code, notes, and snippets.

@ThomasGaubert
ThomasGaubert / config-private.js
Created March 13, 2017 02:11
Zephyr Server Configuration
var config = {};
config.environment = 'development';
// Express
config.port = 8080;
config.expressLogging = false;
// Secrets
config.sessionSecret = 'supersecret';

Keybase proof

I hereby claim:

  • I am ThomasGaubert on github.
  • I am thomasgaubert (https://keybase.io/thomasgaubert) on keybase.
  • I have a public key whose fingerprint is 5856 D234 5F88 3A09 3131 D567 78CB 8D33 11B7 049C

To claim this, I am signing this object:

@ThomasGaubert
ThomasGaubert / config-private.js
Created February 22, 2017 04:17
Zephyr Login Configuration
var config = {};
// Zephyr server
config.zephyrServerBase = 'ZEPHYR SERVER BASE';
config.zephyrApiKey = 'API KEY';
config.zephyrAppId = 0;
module.exports = config;
@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;
}
@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 / 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 / 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 / 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 / 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 / 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