Skip to content

Instantly share code, notes, and snippets.

View eiszfuchs's full-sized avatar
🦊
I may be slow to respond.

Raphael Pohl eiszfuchs

🦊
I may be slow to respond.
View GitHub Profile
@paniq
paniq / shadow_chess.md
Last active September 17, 2019 15:31
Shadow Chess

Shadow Chess

Version 1 (2017/11/15) by @TetroniMike and @paniq

Beware: This is an alpha version. The rules are completely untested.

Shadow Chess (also known as Quantum Chess, Imaginary Chess or M.A.D. Chess) works like regular chess, but with additional rules that are designed to produce new strategical opportunities and interesting outcomes:

@Dinnerbone
Dinnerbone / gist:5662824
Created May 28, 2013 13:38
As an essential step towards the Minecraft modding API, and also for sanity's sake in our own code, we're removing Texture Packs and replacing them with a new Resource Pack system. Ultimately, every mod/plugin will be its own resource pack, vanilla will be a resource pack by itself, and users will be able to apply multiple resource packs at once…
{
"//comment": "All metainfo files will be ORIGINAL_FILE.mcmeta. For example, textures/blocks/portal.png.mcmeta. The format is, of course, JSON.",
"animation": {
"//comment": "This block will be required for animated textures. It can be an empty block, but it will be needed to detect an animation.",
"frames": [
1,
{"index": 2, "time": 4},
3,
4
],
anonymous
anonymous / wang.py
Created March 26, 2013 16:43
Generates longwinded street-like patterns with a few T-junctions and rarely a deadend. Not fixed for unconnected, circular roads. Let's just pretend they're 'gated communities'.
#!/usr/bin/env python
"""
ASCII wang tile generator
written by @paniq (2011/3/26)
Generates longwinded street-like patterns with a few T-junctions and rarely
a deadend. Not fixed for unconnected, circular roads. Let's just pretend they're
'gated communities'.
Example output:
@ghoseb
ghoseb / factorial.py
Created November 14, 2008 18:58
The evolution of a Python Programmer
#Newbie programmer
def factorial(x):
if x == 0:
return 1
else:
return x * factorial(x - 1)
print factorial(6)
#First year programmer, studied Pascal