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
//Scala xml -- this is supposed to return a collection of the elements to be modified | |
(e \ "_").find { child => | |
(child \\ "_") | |
.filter { c => | |
!isMedia(c.label) | |
} | |
.exists { c => | |
c.child.exists { c => | |
(singleParagraphs && isMedia(c.label)) || (c.label == "#PCDATA" && isEmpty(c.text)) | |
} |
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 rg | |
''' | |
snoflake.py | |
current elo: 1484 | |
current ranking: 77 | |
Actually, this was one of my first bots and I don't like it. | |
''' | |
class Robot: |
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
{"lastUpload":"2018-10-26T19:17:18.084Z","extensionVersion":"v3.2.0"} |
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
{"lastUpload":"2020-07-27T22:10:12.823Z","extensionVersion":"v3.4.3"} |