Skip to content

Instantly share code, notes, and snippets.

class Lazy<T> {
f: () => T
value: T | null
constructor(f: () => T) {
this.f = f
this.value = null
}
get(): T {
struct Size {
x: i32,
y: i32,
}
impl Size {
fn new(x: i32, y: i32) -> Self {
Size { x, y }
}
}
import java.io.*;
import java.util.*;
class Programm {
public static void main(String[] args) {
get_netsh_profiles();
}
public static void get_wifi_pass(String net_name) {
ProcessBuilder processBuilder = new ProcessBuilder();
### This program shuffles pixels in input.jpg and spits them out to output.jpg
###
### Pretty easy huh?
from PIL import Image
from random import shuffle
def main():
im = Image.open("input.jpg")
x, y = im.size