Skip to content

Instantly share code, notes, and snippets.

@mrmwiebe
mrmwiebe / winnitron_metadata.json
Last active November 5, 2019 01:48
Winnitron Local Game Metadata
{
"title":"Your Game",
"min_players":"1",
"max_players":"2",
"executable":"yourgame.exe",
"legacy_controls":"false",
"image_url":"yourgameimage.png",
"slug":"yourgame"
}
@mrmwiebe
mrmwiebe / ZipTools.cs
Last active November 13, 2016 17:28 — forked from r2d2rigo/ExtractZipFile.cs
Using SharpZipLib to extract zip files from Unity in a coroutine-friendly way
//Standalone version of r2d2rigo's coroutine unzip
//Leaves room for other tools as well
using UnityEngine;
using System.Collections;
using System.IO;
using ICSharpCode.SharpZipLib.Zip;
public class ZipTools {
@mrmwiebe
mrmwiebe / winnitron-options.json
Last active June 25, 2016 03:36
Options for Winnitron
{
"launcher": {
"widescreen": "true",
"forceMode": "none"
},
"defaultFolders": {
"root": "dataPath",
"playlists": "/Playlists",
"music": "/Music",
"sync": "/Sync",
@mrmwiebe
mrmwiebe / blenderkeys.py
Created June 16, 2016 21:33
Blender - Key Bindings for Unity Users
import bpy
import os
def kmi_props_setattr(kmi_props, attr, value):
try:
setattr(kmi_props, attr, value)
except AttributeError:
print("Warning: property '%s' not found in keymap item '%s'" %
(attr, kmi_props.__class__.__name__))
except Exception as e:
@mrmwiebe
mrmwiebe / excerpt.js
Created April 1, 2015 11:52
Custom excerpt.js
// # Excerpt Helper
// Usage: `{{excerpt}}`, `{{excerpt words="50"}}`, `{{excerpt characters="256"}}`
//
// Attempts to remove all HTML from the string, and then shortens the result according to the provided option.
//
// Defaults to words="50"
/*
Added optional ability to use 2 <!--excerpt--> tags in your posts to specify exactly what will be