Skip to content

Instantly share code, notes, and snippets.

"C:\Program Files\Java\jdk1.8.0_251\bin\java.exe" -Dforge.logging.console.level=debug -Dforge.logging.markers=SCAN,REGISTRIES,REGISTRYDUMP "-javaagent:C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2020.2.1\lib\idea_rt.jar=65121:C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2020.2.1\bin" -Dfile.encoding=UTF-8 -classpath "C:\Program Files\Java\jdk1.8.0_251\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.8.0_251\jre\lib\deploy.jar;C:\Program Files\Java\jdk1.8.0_251\jre\lib\ext\access-bridge-64.jar;C:\Program Files\Java\jdk1.8.0_251\jre\lib\ext\cldrdata.jar;C:\Program Files\Java\jdk1.8.0_251\jre\lib\ext\dnsns.jar;C:\Program Files\Java\jdk1.8.0_251\jre\lib\ext\jaccess.jar;C:\Program Files\Java\jdk1.8.0_251\jre\lib\ext\jfxrt.jar;C:\Program Files\Java\jdk1.8.0_251\jre\lib\ext\localedata.jar;C:\Program Files\Java\jdk1.8.0_251\jre\lib\ext\nashorn.jar;C:\Program Files\Java\jdk1.8.0_251\jre\lib\ext\sunec.jar;C:\Program Files\Java\jdk1.8.0_251\jre\lib\ext\sunjce_provider.jar;C:\Program Files\Jav
@IamCarbonMan
IamCarbonMan / tower.js
Created January 13, 2019 08:40
use scryfall's API to create your very own Tower of Power
scryfall = require('scryfall-client')
scry = new scryfall()
Promise.all([
scry.get('cards/search', {q:'c=w -t:land -o:search usd<0.5 order:edhrec'}).then(res => res.slice(0, 50)),
scry.get('cards/search', {q:'c=u -t:land -o:search usd<0.5 order:edhrec'}).then(res => res.slice(0, 50)),
scry.get('cards/search', {q:'c=b -t:land -o:search usd<0.5 order:edhrec'}).then(res => res.slice(0, 50)),
scry.get('cards/search', {q:'c=r -t:land -o:search usd<0.5 order:edhrec'}).then(res => res.slice(0, 50)),
scry.get('cards/search', {q:'c=g -t:land -o:search usd<0.5 order:edhrec'}).then(res => res.slice(0, 50)),
scry.get('cards/search', {q:'c=m -t:land -o:search usd<0.5 order:edhrec'}).then(res => res.slice(0, 70)),