Skip to content

Instantly share code, notes, and snippets.

print('hello world1)
print('hello')
#include <iostream>
#include <fstream>
using namespace std;
int main() {
// Create and open a text file
ofstream MyFile("filename.txt");
// Write to the file
MyFile << "Files can be tricky, but it is fun enough!";
print('hello world')
@Ozoniuss
Ozoniuss / file2.txt
Created November 13, 2021 17:47 — forked from iuliailies/file2.txt
bro
print('hello world')
print('hello world 2')
@Ozoniuss
Ozoniuss / abc.def
Last active November 14, 2021 06:57
hello how are you
@Ozoniuss
Ozoniuss / prompter.go
Created September 30, 2023 11:20
1-prompter, first attempt
package main
import (
"bufio"
"fmt"
"os"
"strconv"
)
// scanStringUntilValid is a helper provided to get a string input from the
@Ozoniuss
Ozoniuss / prompter.go
Created September 30, 2023 11:21
2-prompter, new scanner in each function
package main
import (
"bufio"
"fmt"
"os"
"strconv"
)
// scanStringUntilValid is a helper provided to get a string input from the
@Ozoniuss
Ozoniuss / prompter.go
Created September 30, 2023 11:25
3-span a goroutine to capture sigint
package main
import (
"bufio"
"fmt"
"os"
"os/signal"
"strconv"
"syscall"
)