Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion compiled_starters/c/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ int main(int argc, char *argv[]) {
// You can use print statements as follows for debugging, they'll be visible when running tests.
fprintf(stderr, "Logs from your program will appear here!\n");

// Uncomment the code below to pass the first stage the first stage
// Uncomment this block to pass the first stage
//
// if (mkdir(".git", 0755) == -1 ||
// mkdir(".git/objects", 0755) == -1 ||
Expand Down
2 changes: 1 addition & 1 deletion compiled_starters/cpp/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ int main(int argc, char *argv[])
// You can use print statements as follows for debugging, they'll be visible when running tests.
std::cerr << "Logs from your program will appear here!\n";

// Uncomment the code below to pass the first stage the first stage
// Uncomment this block to pass the first stage
//
// if (argc < 2) {
// std::cerr << "No command provided.\n";
Expand Down
2 changes: 1 addition & 1 deletion compiled_starters/csharp/src/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

if (command == "init")
{
// Uncomment the code below to pass the first stage the first stage
// Uncomment this block to pass the first stage
//
// Directory.CreateDirectory(".git");
// Directory.CreateDirectory(".git/objects");
Expand Down
2 changes: 1 addition & 1 deletion compiled_starters/go/app/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ func main() {

switch command := os.Args[1]; command {
case "init":
// Uncomment the code below to pass the first stage the first stage!
// Uncomment this block to pass the first stage!
//
// for _, dir := range []string{".git", ".git/objects", ".git/refs"} {
// if err := os.MkdirAll(dir, 0755); err != nil {
Expand Down
2 changes: 1 addition & 1 deletion compiled_starters/haskell/app/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ main = do
-- You can use print statements as follows for debugging, they'll be visible when running tests.
hPutStrLn stderr "Logs from your program will appear here"

-- Uncomment the code below to pass the first stage first stage
-- Uncomment this block to pass first stage
-- let createParents = True
-- createDirectoryIfMissing createParents ".git"
-- createDirectoryIfMissing createParents (".git" </> "objects")
Expand Down
2 changes: 1 addition & 1 deletion compiled_starters/java/src/main/java/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ public static void main(String[] args){
// You can use print statements as follows for debugging, they'll be visible when running tests.
System.err.println("Logs from your program will appear here!");

// Uncomment the code below to pass the first stage the first stage
// Uncomment this block to pass the first stage
//
// final String command = args[0];
//
Expand Down
2 changes: 1 addition & 1 deletion compiled_starters/javascript/app/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const path = require("path");
// You can use print statements as follows for debugging, they'll be visible when running tests.
console.error("Logs from your program will appear here!");

// Uncomment the code below to pass the first stage the first stage
// Uncomment this block to pass the first stage
// const command = process.argv[2];
//
// switch (command) {
Expand Down
2 changes: 1 addition & 1 deletion compiled_starters/kotlin/app/src/main/kotlin/App.kt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ fun main(args: Array<String>) {
}

if (args[0] == "init") {
// Uncomment the code below to pass the first stage the first stage
// Uncomment this block to pass the first stage
//
// val gitDir = File(".git")
// gitDir.mkdir()
Expand Down
2 changes: 1 addition & 1 deletion compiled_starters/python/app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ def main():
# You can use print statements as follows for debugging, they'll be visible when running tests.
print("Logs from your program will appear here!", file=sys.stderr)

# Uncomment the code below to pass the first stage the first stage
# Uncomment this block to pass the first stage
#
# command = sys.argv[1]
# if command == "init":
Expand Down
2 changes: 1 addition & 1 deletion compiled_starters/ruby/app/main.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# You can use print statements as follows for debugging, they'll be visible when running tests.
$stderr.puts "Logs from your program will appear here!"

# Uncomment the code below to pass the first stage the first stage
# Uncomment this block to pass the first stage
#
# command = ARGV[0]
# case command
Expand Down
2 changes: 1 addition & 1 deletion compiled_starters/rust/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ fn main() {
// You can use print statements as follows for debugging, they'll be visible when running tests.
eprintln!("Logs from your program will appear here!");

// Uncomment the code below to pass the first stage the first stage
// Uncomment this block to pass the first stage
// let args: Vec<String> = env::args().collect();
// if args[1] == "init" {
// fs::create_dir(".git").unwrap();
Expand Down
2 changes: 1 addition & 1 deletion compiled_starters/typescript/app/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ switch (command) {
// You can use print statements as follows for debugging, they'll be visible when running tests.
console.error("Logs from your program will appear here!");

// Uncomment the code below to pass the first stage the first stage
// Uncomment this block to pass the first stage
// fs.mkdirSync(".git", { recursive: true });
// fs.mkdirSync(".git/objects", { recursive: true });
// fs.mkdirSync(".git/refs", { recursive: true });
Expand Down
2 changes: 1 addition & 1 deletion compiled_starters/zig/src/main.zig
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ pub fn main() !void {
std.debug.print("Logs from your program will appear here!\n", .{});

if (std.mem.eql(u8, command, "init")) {
// Uncomment the code below to pass the first stage the first stage
// Uncomment this block to pass the first stage
// const cwd = std.fs.cwd();
// _ = try cwd.makeDir("./.git");
// _ = try cwd.makeDir("./.git/objects");
Expand Down
2 changes: 1 addition & 1 deletion solutions/c/01-gg4/diff/src/main.c.diff
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
+ return 1;
+ }

- // Uncomment the code below to pass the first stage the first stage
- // Uncomment this block to pass the first stage
- //
- // if (mkdir(".git", 0755) == -1 ||
- // mkdir(".git/objects", 0755) == -1 ||
Expand Down
2 changes: 1 addition & 1 deletion solutions/cpp/01-gg4/diff/src/main.cpp.diff
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
+ return EXIT_FAILURE;
+ }

- // Uncomment the code below to pass the first stage the first stage
- // Uncomment this block to pass the first stage
- //
- // if (argc < 2) {
- // std::cerr << "No command provided.\n";
Expand Down
2 changes: 1 addition & 1 deletion solutions/csharp/01-gg4/diff/src/Program.cs.diff
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

if (command == "init")
{
- // Uncomment the code below to pass the first stage the first stage
- // Uncomment this block to pass the first stage
- //
- // Directory.CreateDirectory(".git");
- // Directory.CreateDirectory(".git/objects");
Expand Down
2 changes: 1 addition & 1 deletion solutions/go/01-gg4/diff/app/main.go.diff
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

switch command := os.Args[1]; command {
case "init":
- // Uncomment the code below to pass the first stage the first stage!
- // Uncomment this block to pass the first stage!
- //
- // for _, dir := range []string{".git", ".git/objects", ".git/refs"} {
- // if err := os.MkdirAll(dir, 0755); err != nil {
Expand Down
2 changes: 1 addition & 1 deletion solutions/haskell/01-gg4/diff/app/Main.hs.diff
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
- -- You can use print statements as follows for debugging, they'll be visible when running tests.
- hPutStrLn stderr "Logs from your program will appear here"
-
- -- Uncomment the code below to pass the first stage first stage
- -- Uncomment this block to pass first stage
- -- let createParents = True
- -- createDirectoryIfMissing createParents ".git"
- -- createDirectoryIfMissing createParents (".git" </> "objects")
Expand Down
2 changes: 1 addition & 1 deletion solutions/java/01-gg4/diff/src/main/java/Main.java.diff
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
- System.err.println("Logs from your program will appear here!");
+ final String command = args[0];

- // Uncomment the code below to pass the first stage the first stage
- // Uncomment this block to pass the first stage
- //
- // final String command = args[0];
- //
Expand Down
2 changes: 1 addition & 1 deletion solutions/javascript/01-gg4/diff/app/main.js.diff
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
-console.error("Logs from your program will appear here!");
+const command = process.argv[2];

-// Uncomment the code below to pass the first stage the first stage
-// Uncomment this block to pass the first stage
-// const command = process.argv[2];
-//
-// switch (command) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
}

if (args[0] == "init") {
- // Uncomment the code below to pass the first stage the first stage
- // Uncomment this block to pass the first stage
- //
- // val gitDir = File(".git")
- // gitDir.mkdir()
Expand Down
2 changes: 1 addition & 1 deletion solutions/python/01-gg4/diff/app/main.py.diff
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
- # You can use print statements as follows for debugging, they'll be visible when running tests.
- print("Logs from your program will appear here!", file=sys.stderr)
-
- # Uncomment the code below to pass the first stage the first stage
- # Uncomment this block to pass the first stage
- #
- # command = sys.argv[1]
- # if command == "init":
Expand Down
2 changes: 1 addition & 1 deletion solutions/ruby/01-gg4/diff/app/main.rb.diff
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
-# You can use print statements as follows for debugging, they'll be visible when running tests.
-$stderr.puts "Logs from your program will appear here!"
-
-# Uncomment the code below to pass the first stage the first stage
-# Uncomment this block to pass the first stage
-#
-# command = ARGV[0]
-# case command
Expand Down
2 changes: 1 addition & 1 deletion solutions/rust/01-gg4/diff/src/main.rs.diff
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
- // You can use print statements as follows for debugging, they'll be visible when running tests.
- eprintln!("Logs from your program will appear here!");
-
- // Uncomment the code below to pass the first stage the first stage
- // Uncomment this block to pass the first stage
- // let args: Vec<String> = env::args().collect();
- // if args[1] == "init" {
- // fs::create_dir(".git").unwrap();
Expand Down
2 changes: 1 addition & 1 deletion solutions/typescript/01-gg4/diff/app/main.ts.diff
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
- // You can use print statements as follows for debugging, they'll be visible when running tests.
- console.error("Logs from your program will appear here!");
-
- // Uncomment the code below to pass the first stage the first stage
- // Uncomment this block to pass the first stage
- // fs.mkdirSync(".git", { recursive: true });
- // fs.mkdirSync(".git/objects", { recursive: true });
- // fs.mkdirSync(".git/refs", { recursive: true });
Expand Down
2 changes: 1 addition & 1 deletion solutions/zig/01-gg4/diff/src/main.zig.diff
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
- std.debug.print("Logs from your program will appear here!\n", .{});
-
if (std.mem.eql(u8, command, "init")) {
- // Uncomment the code below to pass the first stage the first stage
- // Uncomment this block to pass the first stage
- // const cwd = std.fs.cwd();
- // _ = try cwd.makeDir("./.git");
- // _ = try cwd.makeDir("./.git/objects");
Expand Down
2 changes: 1 addition & 1 deletion starter_templates/c/code/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ int main(int argc, char *argv[]) {
// You can use print statements as follows for debugging, they'll be visible when running tests.
fprintf(stderr, "Logs from your program will appear here!\n");

// Uncomment the code below to pass the first stage the first stage
// Uncomment this block to pass the first stage
//
// if (mkdir(".git", 0755) == -1 ||
// mkdir(".git/objects", 0755) == -1 ||
Expand Down
2 changes: 1 addition & 1 deletion starter_templates/cpp/code/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ int main(int argc, char *argv[])
// You can use print statements as follows for debugging, they'll be visible when running tests.
std::cerr << "Logs from your program will appear here!\n";

// Uncomment the code below to pass the first stage the first stage
// Uncomment this block to pass the first stage
//
// if (argc < 2) {
// std::cerr << "No command provided.\n";
Expand Down
2 changes: 1 addition & 1 deletion starter_templates/csharp/code/src/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

if (command == "init")
{
// Uncomment the code below to pass the first stage the first stage
// Uncomment this block to pass the first stage
//
// Directory.CreateDirectory(".git");
// Directory.CreateDirectory(".git/objects");
Expand Down
2 changes: 1 addition & 1 deletion starter_templates/go/code/app/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ func main() {

switch command := os.Args[1]; command {
case "init":
// Uncomment the code below to pass the first stage the first stage!
// Uncomment this block to pass the first stage!
//
// for _, dir := range []string{".git", ".git/objects", ".git/refs"} {
// if err := os.MkdirAll(dir, 0755); err != nil {
Expand Down
2 changes: 1 addition & 1 deletion starter_templates/haskell/code/app/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ main = do
-- You can use print statements as follows for debugging, they'll be visible when running tests.
hPutStrLn stderr "Logs from your program will appear here"

-- Uncomment the code below to pass the first stage first stage
-- Uncomment this block to pass first stage
-- let createParents = True
-- createDirectoryIfMissing createParents ".git"
-- createDirectoryIfMissing createParents (".git" </> "objects")
Expand Down
2 changes: 1 addition & 1 deletion starter_templates/java/code/src/main/java/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ public static void main(String[] args){
// You can use print statements as follows for debugging, they'll be visible when running tests.
System.err.println("Logs from your program will appear here!");

// Uncomment the code below to pass the first stage the first stage
// Uncomment this block to pass the first stage
//
// final String command = args[0];
//
Expand Down
2 changes: 1 addition & 1 deletion starter_templates/javascript/code/app/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const path = require("path");
// You can use print statements as follows for debugging, they'll be visible when running tests.
console.error("Logs from your program will appear here!");

// Uncomment the code below to pass the first stage the first stage
// Uncomment this block to pass the first stage
// const command = process.argv[2];
//
// switch (command) {
Expand Down
2 changes: 1 addition & 1 deletion starter_templates/kotlin/code/app/src/main/kotlin/App.kt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ fun main(args: Array<String>) {
}

if (args[0] == "init") {
// Uncomment the code below to pass the first stage the first stage
// Uncomment this block to pass the first stage
//
// val gitDir = File(".git")
// gitDir.mkdir()
Expand Down
2 changes: 1 addition & 1 deletion starter_templates/python/code/app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ def main():
# You can use print statements as follows for debugging, they'll be visible when running tests.
print("Logs from your program will appear here!", file=sys.stderr)

# Uncomment the code below to pass the first stage the first stage
# Uncomment this block to pass the first stage
#
# command = sys.argv[1]
# if command == "init":
Expand Down
2 changes: 1 addition & 1 deletion starter_templates/ruby/code/app/main.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# You can use print statements as follows for debugging, they'll be visible when running tests.
$stderr.puts "Logs from your program will appear here!"

# Uncomment the code below to pass the first stage the first stage
# Uncomment this block to pass the first stage
#
# command = ARGV[0]
# case command
Expand Down
2 changes: 1 addition & 1 deletion starter_templates/rust/code/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ fn main() {
// You can use print statements as follows for debugging, they'll be visible when running tests.
eprintln!("Logs from your program will appear here!");

// Uncomment the code below to pass the first stage the first stage
// Uncomment this block to pass the first stage
// let args: Vec<String> = env::args().collect();
// if args[1] == "init" {
// fs::create_dir(".git").unwrap();
Expand Down
2 changes: 1 addition & 1 deletion starter_templates/typescript/code/app/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ switch (command) {
// You can use print statements as follows for debugging, they'll be visible when running tests.
console.error("Logs from your program will appear here!");

// Uncomment the code below to pass the first stage the first stage
// Uncomment this block to pass the first stage
// fs.mkdirSync(".git", { recursive: true });
// fs.mkdirSync(".git/objects", { recursive: true });
// fs.mkdirSync(".git/refs", { recursive: true });
Expand Down
2 changes: 1 addition & 1 deletion starter_templates/zig/code/src/main.zig
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ pub fn main() !void {
std.debug.print("Logs from your program will appear here!\n", .{});

if (std.mem.eql(u8, command, "init")) {
// Uncomment the code below to pass the first stage the first stage
// Uncomment this block to pass the first stage
// const cwd = std.fs.cwd();
// _ = try cwd.makeDir("./.git");
// _ = try cwd.makeDir("./.git/objects");
Expand Down
Loading