Skip to content

Instantly share code, notes, and snippets.

@coyotte508
coyotte508 / gist:3095069
Last active October 7, 2015 03:07
Change log for 2.0.05+
=== 2.0.1 ===
All:
- Event Victini and Deoxys added
Client
- Battle Window improvements (size change, new moves, zoomed in pokemon, animated pokemon sprites, PP count of foe)
- Replay viewer improvement (controls)
- Enable register button on cancelling
- Smogon plugin now integrated in teambuilder
I hear you like mudkipz, don't you!?!
@coyotte508
coyotte508 / gist:3028770
Created July 1, 2012 15:38
Remove language _xx extensions to txt files
find . -name "*.txt" -exec bash -c "re=\$(echo {} | sed 's/_[A-Za-z-]*[.]txt/.txt/'); mv {} \$re" \;
@coyotte508
coyotte508 / gist:3028568
Created July 1, 2012 14:21
Remove lines only containing a line number and a space
find db/moves -name "*.txt" -exec bash -c "sed '/^[0-9]* \$/d' {} > {}~ && mv {}~ {}" \;
@coyotte508
coyotte508 / gist:3025095
Created June 30, 2012 18:53
How to add line numbers to a file (with preserving the BOM character) on PO (all .txt files of a subfolder)
find db/moves -name "*.txt" -exec bash -c './remove-bom.sh {} && awk '\''{ print NR-1 " " $0 }'\'' {} > {}~ && mv {}~ {} && ./add-bom.sh {}' \;