This file contains 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
import java.io.File | |
fun main(args: Array<String>) { | |
val files = File("/path/to/roms/Game Boy").listFiles() | |
files.sortBy { it.name } | |
val gameNames = mutableListOf<String>() | |
for (file in files) { | |
val gameName = file.name.substringBefore(" (") |
This file contains 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
if !self.shouldRender { | |
return | |
} | |
if self.imageCount == 4 * 60 { | |
self.showGroupLogo(showBoolean: NSNumber.init(value: true)) | |
} else if self.imageCount == 6 * 60 { | |
self.showGroupLogo(showBoolean: NSNumber.init(value: false)) | |
} else if self.imageCount == 10 * 60 { | |
self.setErrorState(errorStateBoolean: NSNumber.init(value: true)) |
This file contains 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/local/bin/python3 | |
import click | |
import hashlib | |
import os | |
@click.command() | |
@click.argument('filename') |
This file contains 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
import subprocess | |
import shlex | |
import shutil | |
def run(): | |
times_run = 1 | |
failures = 0 | |
while True: |
This file contains 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
### Keybase proof | |
I hereby claim: | |
* I am superjohan on github. | |
* I am jkh (https://keybase.io/jkh) on keybase. | |
* I have a public key whose fingerprint is 9EBE FA58 20AA F248 A5B1 E8F3 8A7B 57D3 F483 183D | |
To claim this, I am signing this object: |