Skip to content

Instantly share code, notes, and snippets.

View CatTrinket's full-sized avatar
😼
•̀.̫•́

Trinket Holloway CatTrinket

😼
•̀.̫•́
View GitHub Profile
@CatTrinket
CatTrinket / 067_maximum_path_sum_ii.py
Last active August 29, 2015 14:02
Project Euler problem #67
#!/usr/bin/env python3
"""By starting at the top of the triangle below and moving to adjacent numbers
on the row below, the maximum total from top to bottom is 23.
3
7 4
2 4 6
8 5 9 3
That is, 3 + 7 + 4 + 9 = 23.
@CatTrinket
CatTrinket / forms.yaml
Last active August 29, 2015 14:03
ASB Pokémon form mechanics
---
# Can't change; forms are actually different in some way
wormadam: >-
Wormadam's cloaks have different types and movepools. Its cloak is chosen
when evolving Burmy, and cannot be changed.
basculin: >-
Basculin's forms have one different ability. Its form is chosen when it is
bought, and cannot be changed.
@CatTrinket
CatTrinket / moves.txt
Last active February 7, 2016 01:04
ASB Gen VI move flavour
Aromatic Mist: The Pokémon emanates a mysterious mist with an unplaceable, yet pleasant aroma, enveloping one of its allies. The target is calmed by the scent, and its Special Defense increases slightly.
Baby-Doll Eyes: The Pokémon makes eye contact with its foe, faking a mournful, pitiable expression that disarms the target and gives them second thoughts about attacking such an innocent creature. As such, the target's Attack is slightly lowered.
Belch: After swallowing its food, the user allows it to stew in its stomach, producing all kinds of noxious gases and fluids. The user then produces a huge belch, buffeting its target with a blast so powerful that it knocks the target right off its feet. This move may only be used after the user has consumed a berry.
Boomburst: The Pokémon creates a horrible cacophony with the strength of a small bomb. Pokémon around it are severely damaged by the sudden, blaring noise.
Celebrate: Summons a box.
Confide: The Pokémon mischievously saunters over to its foe and confiden
@CatTrinket
CatTrinket / type_counts.txt
Created August 11, 2014 19:20
how many species of each type (so e.g. Rotom counts once for Electric, once for Ghost, once for Fire...)
asb_test=> select t.name, count(distinct pf.species_id) from types t
asb_test-> join pokemon_form_types pft on t.id=pft.type_id
asb_test-> join pokemon_forms pf on pft.pokemon_form_id=pf.id
asb_test-> group by t.id
asb_test-> order by count desc;
name | count
----------+-------
Water | 120
Normal | 97
Flying | 94
@CatTrinket
CatTrinket / long_pokemon.txt
Last active August 29, 2015 14:05
Pokémon names that are at least eleven characters (actual game languages that don't reuse English names)
pokedex=> select l.identifier lang, ps.identifier pokemon, psn.name from pokemon_species_names psn join pokemon_species ps on psn.pokemon_species_id=ps.id join languages l on psn.local_language_id=l.id where length(name) >= 11 and l.identifier not in ('roomaji', 'es', 'it') order by l.order, ps.order;
lang | pokemon | name
------+-------------+--------------
en | fletchinder | Fletchinder
fr | chesnaught | Blindépique
fr | diggersby | Excavarenne
fr | scatterbug | Lépidonille
fr | skiddo | Cabriolaine
fr | pancham | Pandespiègle
fr | slurpuff | Cupcanaille
@CatTrinket
CatTrinket / music.txt
Created August 25, 2014 01:08
~/Music/
[zhorken@yagouaroundi:~/Music] » ls -1 *
Alanis Morissette:
1995 - Jagged Little Pill
2002 - Under Rug Swept
2005 - Jagget Little Pill Acoustic
Alan Menken:
2010 - Tangled
Belly:
@CatTrinket
CatTrinket / catch-rate.txt
Last active August 29, 2015 14:09
all distinct Pokémon catch rates (in X/Y)
rate | count | example
------+-------+------------
3 | 45 | articuno
5 | 2 | kyogre
15 | 1 | volcarona
25 | 10 | clefable
30 | 21 | chansey
35 | 1 | ditto
45 | 224 | bulbasaur
50 | 7 | wigglytuff
@CatTrinket
CatTrinket / wonder-losers.txt
Last active March 10, 2019 03:02
stuff that can't hit Shedinja in ASB
asb_test=> select identifier from pokemon_forms pf where not exists (select 1 from pokemon_form_moves pfm join moves m on pfm.move_id=m.id join types t on m.type_id=t.id where pfm.pokemon_form_id=pf.id and m.damage_class_id != 3 and t.identifier in ('dark', 'fire', 'flying', 'ghost', 'rock')) order by "order";
identifier
-------------------
caterpie
metapod
weedle
kakuna
oddish
ditto
sunkern
@CatTrinket
CatTrinket / type_chart.txt
Last active August 29, 2015 14:15
OR/AS type chart rip
attacking | defending | result
-----------+-----------+--------------------
normal | normal | neutral
normal | fire | neutral
normal | water | neutral
normal | grass | neutral
normal | electric | neutral
normal | ice | neutral
normal | fighting | neutral
normal | poison | neutral
@CatTrinket
CatTrinket / happiness-evos.txt
Last active August 29, 2015 14:15
Base happiness of pre- and post-evolution happiness evos
identifier | base_happiness
------------+----------------
pichu | 70
pikachu | 70
cleffa | 140
clefairy | 140
igglybuff | 70
jigglypuff | 70
golbat | 70
crobat | 70