This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// # 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"launcher": { | |
"widescreen": "true", | |
"forceMode": "none" | |
}, | |
"defaultFolders": { | |
"root": "dataPath", | |
"playlists": "/Playlists", | |
"music": "/Music", | |
"sync": "/Sync", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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 { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"title":"Your Game", | |
"min_players":"1", | |
"max_players":"2", | |
"executable":"yourgame.exe", | |
"legacy_controls":"false", | |
"image_url":"yourgameimage.png", | |
"slug":"yourgame" | |
} |