This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'open-uri' | |
require 'json' | |
require 'execjs' | |
jsobject = open("https://raw.githubusercontent.com/Zarel/Pokemon-Showdown/master/data/formats-data.js").read.sub("exports.BattleFormatsData = ", "")[0..-3] | |
puts "Opened raw events file." | |
eventpokehash = JSON.parse(ExecJS.eval("JSON.stringify(#{jsobject})")) | |
puts "Parsed the file as JSON." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# | |
# uguush - upload to various file hosts | |
# | |
# forked from https://github.com/jschx/uguush | |
## CONFIGURATION | |
# pogo id - insert yours here | |
pogoid="" |