Skip to content

Instantly share code, notes, and snippets.

! ---------------------------------------------------------------
! ROFI "Dardan Custom 1" theme
! ---------------------------------------------------------------
rofi.color-enabled: true
rofi.color-window: #1F2529, #1F2529
rofi.color-normal: #1F2529, #4E93CC, #1F2529, #BAD3E3, #1F2529
rofi.opacity: 90
rofi.width: 1400
rofi.padding: 300
import java.util.ArrayList;
import java.lang.Math;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
if (args.length == 2) {
printRandom(Integer.parseInt(args[0]), Integer.parseInt(args[1]));
@darddan
darddan / pipes.rs
Created September 16, 2021 18:35
|> in rust
pub trait Pipe<Output> {
fn pipe(self, pipe_fn: fn(Self) -> Output) -> Output;
}
impl <T, Output> Pipe<Output> for T {
fn pipe(self, pipe_fn: fn(Self) -> Output) -> Output {
pipe_fn(self)
}