Skip to content

Instantly share code, notes, and snippets.

View dznet's full-sized avatar
:octocat:
Grow with us!

dzNET dznet

:octocat:
Grow with us!
View GitHub Profile
@dznet
dznet / password.py
Last active August 22, 2020 18:41 — forked from rostyq/password.py
python password generator
import string
import random
def generate(length=35, digits_count=5, upper_count=5, special_count=5):
lower_count = max(0, length - digits_count - upper_count - special_count)
digits = random.sample(string.digits, digits_count)
specials = random.sample(string.punctuation, special_count)
upper = random.sample(string.ascii_uppercase, upper_count)
@dznet
dznet / marcha_imperial
Created November 19, 2015 12:56 — forked from tagliati/marcha_imperial
Marcha imperial para arduino
int ledPin = 13;
//led for visualization (use 13 for built-in led)
int speakerPin = 11;
//speaker connected to one of the PWM ports
#define c 261
#define d 294
#define e 329
#define f 349