Skip to content

Instantly share code, notes, and snippets.

View zeeZ's full-sized avatar

Christian zeeZ

View GitHub Profile
@zeeZ
zeeZ / keybase.md
Created April 18, 2017 12:00
Keybase proof

Keybase proof

I hereby claim:

  • I am zeeZ on github.
  • I am zeez (https://keybase.io/zeez) on keybase.
  • I have a public key whose fingerprint is 05C1 7AB1 4596 A6C9 A22F 3640 A081 BC06 7D98 3E00

To claim this, I am signing this object:

@zeeZ
zeeZ / gist:5714857
Last active December 18, 2015 02:59
import numpy
from PIL import Image
def get_matrix(material):
# Following Cliff Spradlin's example at http://jsfiddle.net/cliff/jQ8ga/
# https://forum-en.guildwars2.com/forum/community/api/How-To-Colors-API/first#post2148826
brightness = material.brightness / 128.
contrast = material.contrast
hue = (material.hue * 3.14159265358979323846) / 180. # convert to radians
@zeeZ
zeeZ / ee.lua
Created August 10, 2012 13:03
Annoying message screen for ComputerCraft
local message = "EE IS DISABLED"
local pauseAfterMarquee = 2 -- Marquee ends with a blank screen
local pauseAfterFlash = 5 -- Flash ends with the message centered
local pauseAfterAllOver = 0.5 -- AllOver leaves the message all over the screen
local marqueeSpacer = " +++ "
local marqueeRepeatMessage = 1 -- Marquee displays the message, then "<marqueespacer><message>" repeated n times
local marqueeSpeed = 0.25 -- Scroll speed of marquee
@zeeZ
zeeZ / confphp
Created October 31, 2011 13:52 — forked from Ivoz/home
#conf/php
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
include fastcgi_params;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}