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
| ! Forked from https://news.ycombinator.com/item?id=36344815 | |
| ! Main background and container colors | |
| news.ycombinator.com##body:style(background-color: #0d1117 !important;) | |
| news.ycombinator.com###hnmain:style(background-color: #0d1117 !important; border: 1px solid #30363d !important;) | |
| ! Header and navigation bar styles | |
| news.ycombinator.com##td[bgcolor="#ff6600"]:style(background-color: #161b22 !important;) | |
| news.ycombinator.com##.pagetop:style(color: #8b949e !important; font-weight: bold !important;) | |
| news.ycombinator.com##.pagetop a:style(color: #c9d1d9 !important; text-decoration: none !important;) |
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
| /** | |
| * Costco web receipt exporter | |
| * | |
| * Run in browser console at https://www.costco.com/OrderStatusCmd | |
| * Requires Temporal API (Chrome 118+) | |
| * | |
| * Usage: | |
| * // Last N months | |
| * const lastMonth = (n = 1) => { | |
| * const end = Temporal.Now.plainDateISO(); |
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
| // Assuming Kotlin plugin is applied... | |
| // Run as: ./gradlew kotlinRepl --console plain --no-daemon | |
| val kotlinRepl by tasks.creating { | |
| description = "Starts Kotlin REPL with compiled main classes and runtime classpath" | |
| val mainSourceSet = java.sourceSets["main"] | |
| dependsOn(mainSourceSet.output) | |
| doFirst { | |
| val buildscriptClasspath = rootProject.buildscript.configurations["classpath"] |
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
| // The 'codenarc' plugin has a configuration with a dynamic Groovy dependency. | |
| // This can be different that the actual version you are using. | |
| // codenarc - The CodeNarc libraries to be used for this project. | |
| // \--- org.codenarc:CodeNarc:0.27.0 | |
| // +--- org.gmetrics:GMetrics:0.7 | |
| // | +--- org.codehaus.groovy:groovy:[2.1.0,) -> 2.5.0-beta-1 | |
| // | +--- org.codehaus.groovy:groovy-xml:[2.1.0,) -> 2.5.0-beta-1 | |
| // | | \--- org.codehaus.groovy:groovy:2.5.0-beta-1 | |
| // | \--- org.codehaus.groovy:groovy-ant:[2.1.0,) -> 2.5.0-beta-1 | |
| // | +--- org.codehaus.groovy:groovy:2.5.0-beta-1 |