Skip to content

Instantly share code, notes, and snippets.

View bunnybones1's full-sized avatar

Tomasz Dysinski bunnybones1

View GitHub Profile
{"secrets":[{"secret":{"originalDeck":[],"filledDeck":["4020","4052","1042","1103","4056","4038","1009","4057","1086","4100","1053","1027","4004","1054","1022","1091","4000","1020","1060","4040","1017","1013","4096","4103","1072","4101","1026","1005","4074","1032"],"filledDeckInstances":[5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,53,55,57,59,61,63],"singletonCardsPosessed":["Dummy","Hero","1","8","25","28","29","35","41","51","58","69","77","80","98","27","75","2","6","15","17","18","22","24","26","30","32","33","43","47","48","59","63","64","72","74","76","85","93","96","99","2000","2001","2002","2005","2006","2007","2008","2009","2010","2011","2013","2015","2017","2018","2020","2021","2022","2023","2024","2026","2027","2028","2029","2030","2031","2033","2035","2036","2037","2039","2040","2042","2043","2044","2045","2046","2047","2050","2052","2053","2054","2055","2057","2059","2060","2061","2062","2063","2065","2066","2067","2068","2069","2070","2071","2074","2075","2076","2077","2
{"secrets":[{"cards":{"dataType":"Map","value":[[4,{"id":4,"view":{"cost":3,"prism":"wis","element":"fire","power":3,"health":2,"keywords":["Stealth","Wither"],"type":"Unit","canBePlayed":true,"isSilenced":false,"markedForDeath":false,"canAttack":false,"isSleeping":true,"canBeTargetedByOwner":true,"canBeTargetedByEnemy":true,"isStealthed":false,"canAttackHeroPastGuard":false},"base":"956","temporaryModifiers":[],"attachedSpell":5,"instance":{"cost":3,"prism":"wis","element":"fire","power":3,"health":2,"keywords":["Stealth","Wither"],"type":"Unit","canBePlayed":true,"isSilenced":false,"markedForDeath":false,"canAttack":true,"isSleeping":true,"canBeTargetedByOwner":true,"canBeTargetedByEnemy":true,"isStealthed":false,"canAttackHeroPastGuard":false}}],[5,{"id":5,"view":{"cost":3,"prism":"int","element":"fire","power":0,"health":0,"keywords":["Wither"],"type":"Spell","canBePlayed":true,"isSilenced":false,"markedForDeath":false,"canAttack":false,"isSleeping":true,"canBeTargetedByOwner":true,"canBeTargetedByEnemy":
@bunnybones1
bunnybones1 / ambient-occlusion-vertex-bake.py
Created August 26, 2020 19:05
Ambient Occlusion to vertex color channel
import math
import sys
import bpy
import numpy as np
import traceback
import mathutils
from mathutils.bvhtree import BVHTree
def print(data):
for window in bpy.context.window_manager.windows:
{"secrets":[{"cards":{"dataType":"Map","value":[[4,{"id":4,"view":{"cost":3,"prism":"agy","element":"earth","power":4,"health":2,"keywords":["Guard"],"type":"Unit","canBePlayed":true,"isSilenced":false,"markedForDeath":false,"canAttack":false,"isSleeping":true,"canBeTargetedByOwner":true,"canBeTargetedByEnemy":true,"isStealthed":false,"canAttackHeroPastGuard":false},"base":"784","temporaryModifiers":[],"instance":{"cost":3,"prism":"agy","element":"earth","power":4,"health":2,"keywords":["Guard"],"type":"Unit","canBePlayed":true,"isSilenced":false,"markedForDeath":false,"canAttack":true,"isSleeping":true,"canBeTargetedByOwner":true,"canBeTargetedByEnemy":true,"isStealthed":false,"canAttackHeroPastGuard":false}}],[134,{"id":134,"view":{"cost":1,"prism":"int","element":"fire","power":3,"health":1,"keywords":["Stealth","Wither"],"type":"Unit","canBePlayed":true,"isSilenced":false,"markedForDeath":false,"canAttack":false,"isSleeping":true,"canBeTargetedByOwner":true,"canBeTargetedByEnemy":true,"isStealthed":false,
{"secrets":[{"cards":{"dataType":"Map","value":[[4,{"id":4,"view":{"cost":3,"prism":"agy","element":"earth","power":4,"health":2,"keywords":["Guard"],"type":"Unit","canBePlayed":true,"isSilenced":false,"markedForDeath":false,"canAttack":false,"isSleeping":true,"canBeTargetedByOwner":true,"canBeTargetedByEnemy":true,"isStealthed":false,"canAttackHeroPastGuard":false},"base":"784","temporaryModifiers":[],"instance":{"cost":3,"prism":"agy","element":"earth","power":4,"health":2,"keywords":["Guard"],"type":"Unit","canBePlayed":true,"isSilenced":false,"markedForDeath":false,"canAttack":true,"isSleeping":true,"canBeTargetedByOwner":true,"canBeTargetedByEnemy":true,"isStealthed":false,"canAttackHeroPastGuard":false}}],[5,{"id":5,"view":{"cost":1,"prism":"agy","element":"air","power":2,"health":1,"keywords":["Stealth"],"type":"Unit","canBePlayed":true,"isSilenced":false,"markedForDeath":false,"canAttack":false,"isSleeping":true,"canBeTargetedByOwner":true,"canBeTargetedByEnemy":true,"isStealthed":false,"canAttackHero
{"secrets":[{"cards":{"dataType":"Map","value":[[4,{"id":4,"view":{"cost":3,"prism":"agy","element":"earth","power":4,"health":2,"keywords":["Guard"],"type":"Unit","canBePlayed":true,"isSilenced":false,"markedForDeath":false,"canAttack":false,"isSleeping":true,"canBeTargetedByOwner":true,"canBeTargetedByEnemy":true,"isStealthed":false,"canAttackHeroPastGuard":false},"base":"784","temporaryModifiers":[],"instance":{"cost":3,"prism":"agy","element":"earth","power":4,"health":2,"keywords":["Guard"],"type":"Unit","canBePlayed":true,"isSilenced":false,"markedForDeath":false,"canAttack":true,"isSleeping":true,"canBeTargetedByOwner":true,"canBeTargetedByEnemy":true,"isStealthed":false,"canAttackHeroPastGuard":false}}],[5,{"id":5,"view":{"cost":1,"prism":"agy","element":"air","power":2,"health":1,"keywords":["Stealth"],"type":"Unit","canBePlayed":true,"isSilenced":false,"markedForDeath":false,"canAttack":false,"isSleeping":true,"canBeTargetedByOwner":true,"canBeTargetedByEnemy":true,"isStealthed":false,"canAttackHero
@bunnybones1
bunnybones1 / sw-state-1.json
Created August 7, 2020 19:38
skyweaver zomboids forrest fire
{"secrets":[{"cards":{"dataType":"Map","value":[[4,{"id":4,"view":{"cost":3,"prism":"agy","element":"earth","power":4,"health":2,"keywords":["Guard"],"type":"Unit","canBePlayed":true,"isSilenced":false,"markedForDeath":false,"canAttack":false,"isSleeping":true,"canBeTargetedByOwner":true,"canBeTargetedByEnemy":true,"isStealthed":false,"canAttackHeroPastGuard":false},"base":"784","temporaryModifiers":[],"instance":{"cost":3,"prism":"agy","element":"earth","power":4,"health":2,"keywords":["Guard"],"type":"Unit","canBePlayed":true,"isSilenced":false,"markedForDeath":false,"canAttack":true,"isSleeping":true,"canBeTargetedByOwner":true,"canBeTargetedByEnemy":true,"isStealthed":false,"canAttackHeroPastGuard":false}}],[5,{"id":5,"view":{"cost":1,"prism":"agy","element":"air","power":2,"health":1,"keywords":["Stealth"],"type":"Unit","canBePlayed":true,"isSilenced":false,"markedForDeath":false,"canAttack":false,"isSleeping":true,"canBeTargetedByOwner":true,"canBeTargetedByEnemy":true,"isStealthed":false,"canAttackHero
console.log('test');
var HID = require('node-hid');
var devices = HID.devices();
console.log(devices);
var device = new HID.HID('USB_20ff_0100_14500000');
var vec3 = require('gl-vec3');
var chart = require('ascii-chart');
@bunnybones1
bunnybones1 / three.r69.modded.js
Created March 3, 2015 23:34
three.js modded with extra viewport functionality
// File:src/Three.js
/**
* @author mrdoob / http://mrdoob.com/
*/
var THREE = { REVISION: '69' };
// browserify support
@bunnybones1
bunnybones1 / LibHelpers.js
Created September 17, 2014 19:45
helper to debug when you don't know who or what is changing a value. Can log sets and gets, or even provide stacktraces to the offenders. Meant as a last resort debugging tool.
var defaultMax = 1000;
function GetterSetterValue(initVal, logGet, logSet, traceSet, traceGet, max) {
max = max === undefined ? defaultMax : max;
this.originalMax = max;
this._value = initVal;
this.__logGet = logGet !== false;
this.__logSet = logSet !== false;
this.__traceGet = traceGet !== false;
this.__traceSet = traceSet !== false;
this.__countLogGet = max;