HEY: I've turned this into a blog post, which is a little more in depth.
🚨 https://eev.ee/blog/2016/06/04/converting-a-git-repo-from-tabs-to-spaces/ 🚨
import os.path | |
import re | |
import sys | |
# LZ-ish decompression scheme borrowed from picolove: | |
# https://github.com/gamax92/picolove/blob/master/cart.lua | |
compression_map = b"\n 0123456789abcdefghijklmnopqrstuvwxyz!#%(){}[]<>+=/*:;.,~_" | |
def decompress(code): | |
lua = bytearray() |
"""Perlin noise implementation.""" | |
# Licensed under ISC | |
from itertools import product | |
import math | |
import random | |
def smoothstep(t): | |
"""Smooth curve with a zero derivative at 0 and 1, making it useful for | |
interpolating. |
HEY: I've turned this into a blog post, which is a little more in depth.
🚨 https://eev.ee/blog/2016/06/04/converting-a-git-repo-from-tabs-to-spaces/ 🚨
<!-- define font family for some fonts fontconfig doesn't know about --> | |
<alias> | |
<family>Source Code Pro</family> | |
<default><family>monospace</family></default> | |
</alias> | |
<alias> | |
<family>Droid Sans Mono</family> | |
<default><family>monospace</family></default> | |
</alias> | |
<alias> |
use strict; | |
use Irssi qw(command_bind MSGLEVEL_HILIGHT); | |
use vars qw($VERSION %IRSSI); | |
# Recommended key bindings: alt+pgup, alt+pgdown: | |
# /bind meta2-5;3~ /scrollback prev | |
# /bind meta2-6;3~ /scrollback next | |
$VERSION = '0.02'; | |
%IRSSI = ( |
var outline_shader = { | |
uniforms: { | |
"linewidth": { type: "f", value: 0.3 }, | |
}, | |
vertex_shader: [ | |
"uniform float linewidth;", | |
"void main() {", | |
"vec4 mvPosition = modelViewMatrix * vec4( position, 1.0 );", | |
"vec4 displacement = vec4( normalize( normalMatrix * normal ) * linewidth, 0.0 ) + mvPosition;", | |
"gl_Position = projectionMatrix * displacement;", |
<?xml version='1.0'?> | |
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'> | |
<fontconfig> | |
<dir>~/.fonts</dir> | |
<alias> | |
<family>serif</family> | |
<prefer> | |
<family>Source Serif Pro</family> | |
<family>IPAMincho</family> | |
</prefer> |
# don't @ me | |
import collections | |
import random | |
import re | |
import string | |
LENGTH = 5 | |
class Datum: |
title = Star\ Anise\ Chronicles:\ Escape\ from\ the\ Chamber\ of\ Despair | |
# Arch Linux | |
INFORM7_BIN = /usr/libexec/gnome-inform7 | |
# Ubuntu x64 | |
#INFORM7_BIN = /usr/lib/x86_64-linux-gnu/gnome-inform7 | |
all: glulx | |
project = $(title).inform |
LESSON 1 | |
Hints differ in case and/or spacing only | |
LESSON 2 | |
Hints differ in case and/or spacing only | |
LESSON 3 | |
Hints differ: | |
- Suction-boots for force floors. Fire boots for fire. Flippers for water. Skates for ice. | |
- MAGNET FORFORCE FLOORS.HEAT SHIELDFOR FIRE.WATER SHIELDFOR WATER.CLEATS FOR ICE. |