Skip to content

Instantly share code, notes, and snippets.

@catalyst0
catalyst0 / Main.java
Created July 1, 2022 04:04 — forked from mo-ba/Main.java
read lines from file
import java.io.*;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;
import java.util.Scanner;
import java.util.function.Function;
public class Main {
import java.util.Arrays;
public class ConnectJoinAlgorithm {
static int[] id;
static int[] integers;
static int N = 10;
public static void main(String[] args) {
@catalyst0
catalyst0 / sed_snippets.sh
Created March 6, 2021 14:13 — forked from r2k0/sed_snippets.sh
sed examples
##FILE SPACING:
# double space a file
sed G
# double space a file which already has blank lines in it. Output file
# should contain no more than one blank line between lines of text.
sed '/^$/d;G'
# triple space a file