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
| name: Stop Hacktoberfest Spam | |
| on: | |
| pull_request_target: | |
| jobs: | |
| stop-spam: | |
| runs-on: ubuntu-latest | |
| steps: |
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
| function main(outfile) | |
| out = """documentation: | |
| - docs/**/* | |
| """ | |
| for slug in readdir("languages") | |
| isdir(joinpath("languages", slug)) || continue | |
| out *= """track/$slug: | |
| - languages/$slug/**/* |
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
| using OffsetArrays | |
| using Test | |
| const input = parse.(Int, split(read("2_input", String), ',')) | |
| const instructions = Dict( | |
| 1 => +, | |
| 2 => *, | |
| ) |
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
| using OffsetArrays | |
| using Test | |
| const input = parse.(Int, split(read("2_input", String), ',')) | |
| const instructions = Dict( | |
| 1 => +, | |
| 2 => *, | |
| ) |