Skip to content

Instantly share code, notes, and snippets.

@sonygod
sonygod / install-haxe.sh
Created June 4, 2018 08:53 — forked from IBwWG/install-haxe.sh
Haxe Linux install script
#!/bin/sh
HAXE_VERSION=3.4.2
NEKO_VERSION=2.1.0
if [ `uname -m` = "armv7l" ]; then
HAXE_VERSION=3.1.3
# convert_materials_to_cycles.py
#
# Copyright (C) 5-mar-2012, Silvio Falcinelli. Fixes by others.
#
# special thanks to user blenderartists.org cmomoney
#
# ***** BEGIN GPL LICENSE BLOCK *****
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
@sonygod
sonygod / example-bake.py
Last active April 19, 2018 08:55 — forked from AndrewRayCode/example-bake.py
Blender Python script to bake in an ambient occlusion map offline
import bpy
ops = bpy.ops
scene = bpy.context.scene
mesh = bpy.ops.mesh
# Delete default scene objects
ops.object.select_all()
ops.object.select_all()
ops.object.delete()
@sonygod
sonygod / Our.cs
Created February 22, 2016 03:31 — forked from robert-nix/Our.cs
Hack tool to rewrite Hearthstone's Unity3d asset files with a custom assembly/monobehaviour
using System;
using System.IO;
using System.Threading;
using UnityEngine;
public class OurMono : MonoBehaviour
{
StreamWriter log;
Timer t;
@sonygod
sonygod / gist:260ea88f966f5334d125
Last active August 29, 2015 14:26 — forked from allanolivei/gist:9260107
Unity 3d : Get Selected Folder in Project Window
using UnityEngine;
using UnityEditor;
using System.Collections;
using System.IO;
public static class UnityUtil
{
public static string GetSelectedPathOrFallback()
{
string path = "Assets";
package amd;
#if macro
import haxe.macro.Type;
import haxe.macro.Expr;
import haxe.macro.*;
import haxe.ds.*;
using Lambda;
@sonygod
sonygod / Module.hx
Created November 19, 2013 13:31 — forked from back2dos/Module.hx
package ;
import haxe.macro.Type;
import haxe.macro.Expr;
import haxe.macro.Context;
class Module {
static function build(?module:String) {
function isIncluded(meta:MetaAccess)
class Module1
{
static function main() {
SharedCode.greet("Jason");
}
}
using System;
using UnityEngine;
using System.Collections;
public class AssetBundleSample : MonoBehaviour {
public GUIText guitext;
// Use this for initialization
void Start () {
/**
* Renders a lighting mask which can be added to the display list via Bitmap.
* @author Sam MacPherson
*/
package as3gl.lighting;
import as3gl.core.Destroyable;
import as3gl.core.Runnable;
import as3gl.display.Batcher;