This file contains 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
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) | |
} |
This file contains 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
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])); |
This file contains 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
! --------------------------------------------------------------- | |
! 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 |