Skip to content

Instantly share code, notes, and snippets.

@twobob
twobob / getOlderJSONwithNUGET.pm
Created May 28, 2017 23:29
Get a version (9.0.1) of JSON that will install on Visual Studio 2013 via PM Nuget
Install-Package Newtonsoft.Json -Version 9.0.1
/*!
Math.uuid.js (v1.4)
http://www.broofa.com
mailto:[email protected]
Copyright (c) 2010 Robert Kieffer
Dual licensed under the MIT and GPL licenses.
*/
/*
@twobob
twobob / AbletonProjectFilePluginLister.bat
Created February 8, 2018 19:26
List the plugins per track - from the command line - Under windows - ABLETON LIVE .ALS files
cat test\test.als | gunzip | grep "<.*PlugName\|EffectiveName" | sed -e 's/^[\t]*//g'
@twobob
twobob / mergeMP4.py
Last active April 23, 2018 14:58
Merge all MP4's in a directory using MoviePy
import glob
import os.path
from moviepy.editor import *
dir = '.'
files = glob.glob(os.path.join(dir, '*.mp4'))
L=list()
#print (len(files))
for file in files:
L.append(VideoFileClip(file,audio=True))
final_clip = concatenate_videoclips(L,method="compose")
@twobob
twobob / config.ini
Created March 13, 2018 00:48
Simple-Music-Video-Generator example config file
[CONFIG]
INPUT_AUDIO = resources\guitars.mp3
INPUT_VIDEO = resources\merged.mp4
START_OFFSET = 60
END_OFFSET = 60
INTERVAL_MULTIPLIER = 3
OUTPUT_PATH = resources\output.mp4
SHUFFLE = True
@twobob
twobob / cpp_zahada.cpp
Created April 18, 2018 13:32 — forked from wermarter/cpp_zahada.cpp
Tiny Cutie Zahada Riddle Bot ( Using Web BRowser )
#include <windows.h>
#include <string>
#include <iostream>
using namespace std;
int main() {
string url; cin >> url;
url = "http://www.mcgov.co.uk/riddles/" + url + ".html";
ShellExecute(NULL, "open", url.c_str(), "", ".", SW_SHOWNORMAL);
return 0;
}
@twobob
twobob / DefamationMangler.cs
Created May 11, 2018 00:14
DefamationMangler deformation mangler (totally untested for 4 years)
using UnityEngine;
using UnityEditor;
using System.Collections;
using System.Collections.Generic;
public class DefamationMangler : MonoBehaviour
{
[MenuItem("Tools/DefamationMangler %#d")]
static void AlignMeshVertices()
{
@twobob
twobob / FindFilesUtility.cs
Created June 11, 2018 14:37
Horribly slow script to find errors in UMA slots and stuff
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using System.IO;
public class FindFilesUtility
{
public static string ConvertPath(string aPath)
{
@twobob
twobob / dungeon_maker.py
Created June 17, 2018 02:41 — forked from Alex-Huleatt/dungeon_maker.py
Simple dungeon maker. Guaranteed connectedness.
'''
@author AlexHuleatt
Generate a simple, connected dungeon. Focus is on rooms, not maze-like features.
Output of get_dungeon is two sets:
1. A set of (y,x) tuples representing the position of walls
2. A set of (y,x) tuples representing the walls removed to make doors
Guaranteed connectedness between all open cells.
@twobob
twobob / referencePicassaXmp.xml
Last active July 11, 2018 16:28
this is what one can rip out of a picassa'd jpeg
<x:xmpmeta xmlns:x=\"adobe:ns:meta/\" x:xmptk=\"XMP Core 5.1.2\">
<rdf:RDF xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\">
<rdf:Description rdf:about=\"\" xmlns:xmp=\"http://ns.adobe.com/xap/1.0/\" xmlns:mwg-rs=\"http://www.metadataworkinggroup.com/schemas/regions/\" xmlns:stDim=\"http://ns.adobe.com/xap/1.0/sType/Dimensions#\" xmlns:stArea=\"http://ns.adobe.com/xmp/sType/Area#\" xmlns:dc=\"http://purl.org/dc/elements/1.1/\" xmp:ModifyDate=\"2018-07-09T23:14:23+01:00\">
<mwg-rs:Regions rdf:parseType=\"Resource\">
<mwg-rs:AppliedToDimensions stDim:w=\"900\" stDim:h=\"1200\" stDim:unit=\"pixel\"/>
<mwg-rs:RegionList>
<rdf:Bag>
<rdf:li>
<rdf:Description mwg-rs:Name=\"Jean\" mwg-rs:Type=\"Face\">
<mwg-rs:Area stArea:x=\"0.496936\" stArea:y=\"0.453125\" stArea:w=\"0.064134\" stArea:h=\"0.057598\" stArea:unit=\"normalized\"/>