Skip to content

Instantly share code, notes, and snippets.

@rebane2001
rebane2001 / rabool-js.html
Last active March 20, 2023 15:37 — forked from petskratt/xkcd_pwd_gen.php
Generate xkcd style password using most common 1000 Estonian words (Ansip and Savisaar excluded)
<!doctype html>
<html lang="et">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Salasõna-pulpulaator | rabool-js</title>
<style>
html {
background-color: #fafafa
}
#NOTE = ONLY WORKS IN PYTHON 3 (MAYBE WORKS IN PYTHON 2 I HAVNe' TESTED")
import os
import sys
import urllib.request
print("Supports INFINITE LENGHT (unlimited)")
len = input("Enter how many letters do you want (no support for words in 1.0 version yet):")
File_Name = "lorem.txt"
OUTPUTXT = ""
urllib.request.urlretrieve ("https://en.wikipedia.org/wiki/Lorem_ipsum", File_Name)
with open("lorem.txt","r") as loremtxt1:
@rebane2001
rebane2001 / lasermouse.py
Created September 27, 2018 19:19
Simple script to control your mouse pointer with a laser and a webcam (only works on Windows)
import cv2
import numpy as np
import win32api, win32con
import math
webcam_x = 640 #Set webcam resolution
webcam_y = 640
screen_x = 1280 #Set screen resolution
screen_y = 1024
@rebane2001
rebane2001 / tähed.py
Last active October 2, 2020 15:44
Skript, mis annab tähtede kohta statistikat sõna kohta. Pole just parim lahendus, kuid kui keegi viitsib selle funktsiooniks valmis kirjutada saab ka oma projektides kasutada
# Siia tuleb sõna mille kohta on soov info leida
sona = "kuulilennuteetunneliluuk"
tüübid = {
"Tagavokaalid": "uõoa",
"Eesvokaalid": "iüeöä",
"Täishäälikud": "aeiouõöäü",
"Kaashäälikud": "jlmnrszhfšžkgpbtd",
"Helilised häälikud": "aeiouõöäüjlmnrv",
"Helitud häälikud": "szhfšžkgpbtd",
@rebane2001
rebane2001 / keybase.md
Created September 25, 2018 14:50
Verification of sorts

Keybase proof

I hereby claim:

  • I am rebane2001 on github.
  • I am rebane2001 (https://keybase.io/rebane2001) on keybase.
  • I have a public key ASCRS5qGKG2CuxsPwvZ2BH_VFLOnVh4iHspFOYTiFpbhjwo

To claim this, I am signing this object:

## NOTE
## I'm only releasing this code for educational purposes
## Do not abuse it please
## And this is terrible code, so don't use this as a reference on how to code properly
## Made for: https://youtu.be/E3gf88rSzqo
from PIL import Image
from PIL import ImageFilter
import math
import wave
import struct