Skip to content

Instantly share code, notes, and snippets.

@Renanse
Renanse / gist:92eaf8ea35074cc9d191
Created August 25, 2014 21:05
Script for google spreadsheets to export to json - modified from another I found on the web somewhere (I think google groups?) Added ability to have multiple columns with same name to compose down into a json array. Also handle a few more types.
// Includes functions for exporting active sheet or all sheets as JSON object (also Python object syntax compatible).
// Tweak the makePrettyJSON_ function to customize what kind of JSON to export.
var FORMAT_ONELINE = 'One-line';
var FORMAT_MULTILINE = 'Multi-line';
var FORMAT_PRETTY = 'Pretty';
var LANGUAGE_JS = 'JavaScript';
var LANGUAGE_PYTHON = 'Python';
@Renanse
Renanse / Main.java
Created February 1, 2017 15:34
Fails on Windows 10 unless you add -Dsun.java2d.d3d=false :(
import javax.swing.JOptionPane;
public class Main {
public static void main(final String[] args) {
JOptionPane.showMessageDialog(null, "Hi there.");
}
}
@Renanse
Renanse / LwjglSwtStereoExample.java
Last active August 19, 2019 18:14
Example of Anaglyph rendering using Ardor3D v1.0 with Lwjgl and Swt
/**
* Copyright (c) 2008-2019 Bird Dog Games, Inc.
*
* This file is part of Ardor3D.
*
* Ardor3D is free software: you can redistribute it and/or modify it
* under the terms of its license which may be found in the accompanying
* LICENSE file or at <http://www.ardor3d.com/LICENSE>.
*/