Skip to content

Instantly share code, notes, and snippets.

View eevee's full-sized avatar
🦊

Eevee eevee

🦊
View GitHub Profile
@eevee
eevee / gist:630aa012a594cbe31fc3
Created April 27, 2015 02:59
(throwaway) loading regions in starbindery
[local]/starbindery= ☘ select * from planet_type__layer where 'slimecaves' = ANY (secondary_regions);
layer_name │ planet_type_name │ primary_regions │ secondary_regions │ secondary_region_period │ secondary_region_size │ dungeons │ dungeon_count_range
──────────────┼──────────────────┼──────────────────────┼───────────────────────────────────┼─────────────────────────┼───────────────────────┼──────────┼─────────────────────
underground2 │ alien │ {midunderground} │ {cellcaves,fleshcaves,slimecaves} │ {800,1200} │ {400,600} │ {} │ {0,0}
underground1 │ alien │ {shallowunderground} │ {cellcaves,fleshcaves,slimecaves} │ {800,1200} │ {400,600} │ {} │ {0,0}
underground6 │ alien │ {deepunderground} │ {cellcaves,fleshcaves,slimecaves} │ {800,1200}
@eevee
eevee / gist:15a92e26088d79a77fca
Last active August 29, 2015 14:19
pokémon with forms
pokémon forms how to change impact
pichu regular, gizamimi pokeathlon, disables evolution
unown letters pokeathlon
castform weather set by ability (weather) pokeathlon, type, moves (level-up)
deoxys normal, attack, defense, speed overworld event (meteorite) effort, pokeathlon, stats, moves (level-up, tutor)
burmy grass, sandy, trash set by terrain of last battle pokeathlon
wormadam grass, sandy, trash effort, pokeathlon, stats, type, moves (level-up, machine, tutor)
cherrim overcast, sunny set by weather via ability (in gen 5+; in 4 this was hardcoded to cherrim) pokeathlon
shellos east, west
@eevee
eevee / game-gender.md
Last active August 29, 2015 14:13
gender in games: some light analysis
@eevee
eevee / CHIPS.BAS
Last active September 27, 2020 00:38
chip's challenge in qbasic — compiled for dos at https://c.eev.ee/CHIPS.EXE
DECLARE FUNCTION WaitKey$ ()
' Add support for stepping off of force floors - DONE
' Add support for nonwaiting so monsters and things can move - SORTA DONE
' Add support for blocks moving on ice
' Add support for dying when the player steps in unprotected water, fire,
' or gets hit by a monster - DONE
' Level editor!
DECLARE SUB KillPlayer (S AS STRING, C AS INTEGER)
DECLARE FUNCTION ChipCount! ()
DECLARE SUB SetDir (K AS STRING)
import operator
import weakref
class classproperty(object):
"""Method decorator similar to ``@property``, but called like a
``classmethod``.
.. code-block:: python
@eevee
eevee / gist:6a257a9d42400e2d03f9
Last active July 26, 2018 09:18
Pokédex schema versioning problem

Schema versioning

I have some problems related to how core data in the Pokémon games has changed over time. "Time" here is a discrete quantity, where each game is a point in time.

Well actually

I just said each game is a point in time and I am lying. Many of the games come in pairs, which come out simultaneously. So Red and Blue are distinct

@eevee
eevee / inform7.py
Created October 22, 2014 01:22
Flax collision detection ported to inform 7 style
@Walk.check(Solid)
def cant_walk_through_solid_objects(event, _):
event.cancel()
@Walk.check(DoorPhysics)
def cant_walk_through_closed_doors(event, _):
if not IOpenable(event.target).open:
event.cancel()
@eevee
eevee / gist:4dcfe41ae4b1d906adee
Last active August 29, 2015 14:06
mutable hash keys in ruby
irb(main):001:0> h = {}
=> {}
irb(main):002:0> a = [1, 2, 3]
=> [1, 2, 3]
irb(main):003:0> h[a] = 5
=> 5
irb(main):004:0> h
=> {[1, 2, 3]=>5}
irb(main):005:0> h[[1, 2, 3]]
=> 5
@eevee
eevee / gist:e6fa8cde4df38f234664
Created September 19, 2014 19:53
notes on config var usage in pyscss
[ok] DEBUG: only used by scss.legacy
VERBOSITY: used in scss.util?
PROJECT_ROOT: only used as a default in scss.config and in a couple tests
[ok] LOAD_PATHS: only used in scss.legacy and scss.tool
ASSETS_ROOT:
- compass.images, as place to search for image-url()
- compass.sprites, as place to write out sprite-map()
- extra, as place to write out background-noise(), background-brushed(), etc.
- fonts, as place to write out font-sheet()
CACHE_ROOT:
@eevee
eevee / frozenobject.py
Created September 12, 2014 00:37
frozenobject
class FrozenMeta(type):
"""Metaclass for freezing a type after construction. Only ``__init__``
will be allowed to assign to attributes.
"""
def __call__(cls, *args, **kwargs):
obj = super(FrozenMeta, cls).__call__(*args, **kwargs)
obj.__frozen__ = True
return obj