Welcome to your computer terminal connected to the network of Morgan-Wei Interplanetary Logistics Group. Please see your submissions for training below. To resume training, visit https://keri.warr.ca/rockets/
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
| // literal string: only contents, read-references for all exact strings in the file. | |
| function literalString(person) { | |
| return "string"; | |
| } | |
| "string"; | |
| "string"; | |
| "string abc"; | |
| // literal numbers: nothing |
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
| # typed: true | |
| class TestClass | |
| def method(a, b, &block) | |
| c = a + b | |
| d = c + 3 | |
| block.call | |
| foo |
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
| # frozen_string_literal: true | |
| def solve(path) | |
| soln_inc = 0 | |
| soln_inc_b = 0 | |
| lines = File.read(path).split("\n\n") | |
| lines.each do |line| | |
| chars = line.split("\n").map(&:chars).flatten | |
| # Part A | |
| soln_inc += chars.uniq.count |
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
| # frozen_string_literal: true | |
| # | |
| # usage: | |
| # | |
| # fabman.rb <AUTH_TOKEN> <OUTPUT_FILE> | |
| # | |
| require 'net/http' | |
| require 'json' | |
| require 'csv' |
OlderNewer