Skip to content

Instantly share code, notes, and snippets.

View eevee's full-sized avatar
🦊

Eevee eevee

🦊
View GitHub Profile
@eevee
eevee / fonts.conf.xml
Last active September 5, 2022 03:42
my fonts.conf
<?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>
@eevee
eevee / result.txt
Last active August 29, 2015 14:22
randomized item descriptions in inform7
Sandbox
An Interactive Fiction by Eevee
Release 1 / Serial number 150527 / Inform 7 build 6L38 (I6/v6.33 lib 6/12N) SD
courtyard
It's a big old courtyard.
You can see a wooden door, a hedge maze, a foo, a bar and a baz here.
>x foo
@eevee
eevee / anachrony-stuff.md
Last active August 29, 2015 14:22
anachrony braindump

anachrony design ideas

trying to bang this stuff out now since it's kind of important to have all the things in mind before making a bunch of maps

design principles

  • tell a story. it's about how hell is infecting earth (and now you have the power to show this better) but also about how the protagonist is the last human left in this whole place, his home. scale should get bigger and lonelier as the game goes on

  • should introduce a new or changed thing in a natural way (valve style) — don't force the player to read a big fuckin readme that spoils everything

@eevee
eevee / sqla-selfjoin-problems.py
Last active August 29, 2015 14:23
sqlalchemy doesn't like my zany self-join
# Context: I have a self-referential nested set table and I'm trying to write a
# parent/child relationship. I use DISTINCT ON, so this assumes Postgres.
from sqlalchemy import *
from sqlalchemy.ext import compiler
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import foreign, remote
from sqlalchemy.orm import joinedload
from sqlalchemy.orm import joinedload
from sqlalchemy.orm import relationship
@eevee
eevee / starbound-titlecase.diff
Created August 19, 2015 17:51
patch to fix titlecasing on most objects in starbound
diff --git a/unpacked_pristine/items/armors/backitems/naturecape/naturecape.back b/unpacked/items/armors/backitems/naturecape/naturecape.back
index 21b6b22..295ae08 100644
--- a/unpacked_pristine/items/armors/backitems/naturecape/naturecape.back
+++ b/unpacked/items/armors/backitems/naturecape/naturecape.back
@@ -5,7 +5,7 @@
"dropCollision" : [-4.0, -3.0, 4.0, 3.0],
"rarity" : "Rare",
"description" : "This cape is fabulous. It sparkles beautifully.",
- "shortdescription" : "Rainbow Cape.",
+ "shortdescription" : "Rainbow Cape",
def find_last(haystack, needle):
last_pos = -1
while True:
next_pos = haystack.find(needle, last_pos + 1)
if next_pos < 0:
return last_pos
last_pos = next_pos
@eevee
eevee / index.md
Last active December 1, 2015 22:18
Super Mario Maker levels

This document is deprecated — see http://eev.ee/everything/tags/mario-maker/ instead.

Test Flight

55A7-0000-0049-50DD · ★★☆☆☆ · tricky · 🍄🍄🍄

A deceptively cheery level. Slightly less fair than intended. I'm sorry.

import datetime
import urwid
top = urwid.Filler(urwid.Text("this is\nfour lines\nof text\n."))
bottom_walker = urwid.SimpleListWalker([])
bottom = urwid.ListBox(bottom_walker)
main = urwid.Pile([
(4, top),
bottom,
@eevee
eevee / query.sql
Last active November 14, 2015 17:23
egg move diff between r/s and or/as
pokemon r/s only or/as only
------- -------- ----------
bulbasaur - sludge
bulbasaur - amnesia
bulbasaur - giga-drain
bulbasaur - endure
bulbasaur - nature-power
bulbasaur - ingrain
bulbasaur - leaf-storm (new)
bulbasaur - power-whip (new)
@eevee
eevee / gist:55426e5856f5825317b1
Last active January 28, 2021 22:51
adblock rules to hide mentions from people who don't follow you

Pop open "filter preferences" in adblock plus, and add the following rules to hide mentions from people who don't follow you (and who you don't follow).

For the interactions/notifications page:

twitter.com##.interaction-page [data-follows-you="false"][data-you-follow="false"]:not(.my-tweet)

For the mentions page:

twitter.com##.mentions-page [data-follows-you="false"][data-you-follow="false"]:not(.my-tweet)