Skip to content

Instantly share code, notes, and snippets.

Thomas van den Berg noio

Block or report user

Report or block noio

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View GameConfig.json
{
"Version": 3,
"Vars": {
"Player": {
"RunSpeed": 3.0,
"WalkSpeed": 1.5,
"CrippledSpeed": 0.5,
"FallHardHeight": 4.0,
"HorizontalClimbSpeed": 1.0,
"VerticalClimbSpeed": 1.0,
@noio
noio / detect-hands.py
Created Aug 22, 2017
detecting hands
View detect-hands.py
import os
import sys
import warnings
import random
import numpy as np
import pandas as pd
from keras import backend as K
from keras.models import Sequential
View FindEmptySprites.cs
using UnityEngine;
using UnityEngine.Assertions;
using UnityEditor;
using System.Linq;
using System.IO;
using System.Reflection;
using System.Collections;
using System.Collections.Generic;
public class Somefile
View HorizontalArrowKey.cs
/* By Thomas "noio" van den Berg
Add this script to the UI.Buttons that form
a left/right arrow pair. For each button,
drag the *other* button into the "other" field.
It requires that your buttons are animated using
"Transition: Animation", (not Sprite Swap) with an
animator that has the default Trigger parameters defined
("Normal", "Highlighted", "Pressed")
@noio
noio / gist:66a914ae152eda3a170b
Created Jun 22, 2015
Replace Sprites in Animation
View gist:66a914ae152eda3a170b
public static Sprite GetSpriteWithWordReplaced(Sprite sprite, string word, string replaceBy)
{
string assetPath = AssetDatabase.GetAssetPath(sprite);
string spriteName = sprite.name;
string newName = spriteName.Replace(word, replaceBy);
string newPath = assetPath.Replace(word, replaceBy);
foreach (Object assetObject in AssetDatabase.LoadAllAssetsAtPath(newPath))
{
Sprite newSprite = assetObject as Sprite;
View gist:ba529bfcf9de4b3a0c56
IEnumerator Shoot() {
while (true)
{
Debug.Log("Shoot!");
yield return new WaitForSeconds(1.0f);
}
}
void WalkAwayMan() {
Debug.Log("Walking Away");
@noio
noio / gist:8c76cf72a74bcd343ff8
Created Mar 6, 2015
Create Fragments from Sprite
View gist:8c76cf72a74bcd343ff8
#!/usr/bin/env python
import sys, os
import numpy as np
from matplotlib import cm
from scipy import ndimage, misc, spatial
OKGREEN = '\033[92m'
WARNING = '\033[93m'
ENDC = '\033[0m'
@noio
noio / gist:61520ffaf56daf9fb272
Created Mar 6, 2015
Cut Fragments from Sprite
View gist:61520ffaf56daf9fb272
#!/usr/bin/env python
import sys, os
import numpy as np
from matplotlib import cm
from scipy import ndimage, misc, spatial
OKGREEN = '\033[92m'
WARNING = '\033[93m'
ENDC = '\033[0m'
@noio
noio / motogif.sh
Created Aug 22, 2014
mo(vie) to gif
View motogif.sh
#!/bin/bash
W=0
DROP=1
F=2
while getopts ":w:d:f:" opt; do
case $opt in
w)
View gist:8786461
#include "engine.h"
#include <iostream>
#include "libs/Matrices.h"
#include "utility.h"
using std::cout;
using std::cerr;
You can’t perform that action at this time.