Skip to content

Instantly share code, notes, and snippets.

View sne11ius's full-sized avatar

Cornelius Wichering sne11ius

View GitHub Profile
@sne11ius
sne11ius / cloudSettings
Created October 26, 2018 19:17
Visual Studio Code Settings Sync Gist
{"lastUpload":"2018-10-26T19:17:18.084Z","extensionVersion":"v3.2.0"}
@sne11ius
sne11ius / cloudSettings
Last active July 27, 2020 22:10
Visual Studio Code Settings Sync Gist
{"lastUpload":"2020-07-27T22:10:12.823Z","extensionVersion":"v3.4.3"}
//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))
}
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: