Skip to content

Instantly share code, notes, and snippets.

@darktable
darktable / SavWav.cs
Created April 6, 2012 05:01
Unity3D: script to save an AudioClip as a .wav file.
// Copyright (c) 2012 Calvin Rien
// http://the.darktable.com
//
// This software is provided 'as-is', without any express or implied warranty. In
// no event will the authors be held liable for any damages arising from the use
// of this software.
//
// Permission is granted to anyone to use this software for any purpose,
// including commercial applications, and to alter it and redistribute it freely,
// subject to the following restrictions:
@benschw
benschw / git-origins.md
Last active September 20, 2023 08:54
fork a repo manually (set source as upstream origin) rather than with the "fork" button. e.g. for in github when you want to fork a project twice.

Ripped off from adrianshort.org

List curent remotes

$ git remote -v

origin  https://github.com/hakimel/reveal.js.git (fetch)
origin  https://github.com/hakimel/reveal.js.git (push)

Rename origin to upstream and add our new empty repo as the origin.

@SuddenDevelopment
SuddenDevelopment / version.py
Last active January 3, 2023 22:14
blender addon version check and message update
# 1. include this version file
# 2. put a json file online format = { "version": "1.4.0", "message": "upgrade for these new features" }
# 3. point to the url in version.py
# 4. register a prop to show the ui message bpy.types.WindowManager.flex_update = bpy.props.StringProperty(name="Info", default="")
# 5. point to that property name in version.py
# 6. setup the UI to ue that property if populated
#if bpy.context.window_manager.flex_update != "":
# box = layout.box()
# row = box.row(align=True)
# row.alignment = 'EXPAND'