Skip to content

Instantly share code, notes, and snippets.

View eevee's full-sized avatar
🦊

Eevee eevee

🦊
View GitHub Profile
@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 / 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 / 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()
import operator
import weakref
class classproperty(object):
"""Method decorator similar to ``@property``, but called like a
``classmethod``.
.. code-block:: python
@eevee
eevee / game-gender.md
Last active August 29, 2015 14:13
gender in games: some light analysis
@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 / 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:a510dcf6bc8b189a0c1c
Created April 28, 2015 07:24
(throwaway) locating an object in starbindery
[local]/starbindery= ☘ select planet_type.name, layer.name, dungeon.name from brush join dungeon_tile_brush on dungeon_tile_brush.brush_id = brush.id join dungeon_tile on dungeon_tile_brush.dungeon_tile_id = dungeon_tile.id join dungeon on dungeon_tile.dungeon_name = dungeon.name join planet_type__layer on dungeon.name = ANY (planet_type__layer.dungeons) left join planet_type on planet_type.name = planet_type__layer.planet_type_name left join layer on layer.name = planet_type__layer.layer_name where object_name = 'screenplanet';
name │ name │ name
──────────┼─────────┼──────────────
scorched │ surface │ scifidungeon
jungle │ surface │ scifidungeon
volcanic │ surface │ scifidungeon
alien │ surface │ scifidungeon
tundra │ surface │ scifidungeon
(5 rows)
@eevee
eevee / delaygate.lua
Created May 2, 2015 20:40
starbound delay gate
function init(virtual)
if virtual then return end
self.interval = 30
self.queue = {}
for i = 1, self.interval do
self.queue[i] = false
end
self.qpos = 1
end
@eevee
eevee / starbound-brush-parameters.patch
Last active August 29, 2015 14:20
Starbound patches
diff --git a/unpacked-pristine/dungeons/avian/avianairship/avianairship.dungeon b/unpacked/dungeons/avian/avianairship/avianairship.dungeon
index 961add8..229a8f8 100644
--- a/unpacked-pristine/dungeons/avian/avianairship/avianairship.dungeon
+++ b/unpacked/dungeons/avian/avianairship/avianairship.dungeon
@@ -857,7 +857,7 @@
{
"value" : [77, 20, 14, 255],
"comment" : "birdgroundlantern facing left - off state",
- "brush" : [ [ "clear" ], [ "object", "birdgroundlantern", { "direction" : "left" }, { "parameters" : { "defaultLightState" : false } } ] ]
+ "brush" : [ [ "clear" ], [ "object", "birdgroundlantern", { "direction" : "left", "parameters" : { "defaultLightState" : false } } ] ]