Skip to content

Instantly share code, notes, and snippets.

Vladimir Ignatyev vladignatyev

Block or report user

Report or block vladignatyev

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@vladignatyev
vladignatyev / pass.py
Created Mar 29, 2020
Python script to generate secure passwords
View pass.py
L = 12; import os; voc = 'abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ!@#$%^&*()'; print(''.join([voc[int.from_bytes(os.urandom(1), "big") % len(voc)] for i in range(L)]))
@vladignatyev
vladignatyev / PowerSet.swift
Created Mar 1, 2020
Combinatorics: Pure Swift 5 Power Set algorithm implementation. Returns power set elements (permutation), in ascending order from smaller to bigger subsets.
View PowerSet.swift
import Foundation
class PowerSetIterator<T> {
var sourceSet: [T]
var l: Int
var setlen: Int
var ones: [Int]
var lastDigit: Int?
var yield1: Bool
@vladignatyev
vladignatyev / powerset.js
Created Feb 29, 2020
Combinatorics: Good Power Set implementation in ECMAScript
View powerset.js
function *powerSet(sourceSet) {
function product(ones, sourceSet) {
let l = ones.length;
let out = new Array(l);
for (var i = 0; i < l; i++) {
out[i] = sourceSet[ones[i]]
}
return out;
}
@vladignatyev
vladignatyev / power_set.py
Created Feb 29, 2020
Combinatorics: Pure Python Power Set algorithm implementation. Generator returns power set elements (permutation), in ascending order from smaller to bigger subsets.
View power_set.py
'''
Use `python -m doctest power_set.py` for tests.
Usage:
>>> ps = power_set([1,2,3])
>>> for ss in ps:
print(ss)
Output:
[],
[1],
@vladignatyev
vladignatyev / privacy.md
Created Feb 4, 2020
2020 Squares Puzzle: Privacy Policy
View privacy.md

Words in short...

We take your privacy and your rights seriously.

We believe the best, while having a lawful document that describe rules we follow. In short, our apps may collect some of your personal data, but mostly technical data (ad IDs, analytics IDs) that can not be associated with you personally. You can easily remove such data from your phone by removing our apps. We don't associate this data with your personality.

Our apps may collect such information on behalf of the following third-parties:

  • Google Analytics
  • Google Firebase
@vladignatyev
vladignatyev / woof.js
Created Dec 15, 2019
TIC-80: Playing with peek/poke DMA, sound and graphics. UI with mouse-draggable handles!
View woof.js
// title: Pixel Woof
// author: Vladimir Ignatev
// desc: Music Toy
// script: js
var t=0
var x=96
var y=24
var waves = [];
@vladignatyev
vladignatyev / portscan.py
Created Mar 19, 2019
Minimalistic Python 2 Multithread Portscan Tool
View portscan.py
import sys
import socket
import errno
import threading
import time
from threading import Thread
class Worker(Thread):
def __init__(self, host, ports):
View id_rsa.pub
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCZxJjCtJ4GMg/nDDeDhHUb69pWXUshWA0HMyQtZpS/tUfy+yDHQtgE+m5PtK3wg2FuE2gFa68xSxFQuGFE+dDfXgiQ0tnEgxnWuoJ8Xf2BhMlpqrktDnuZ3VrooeiwY0dpzdQebHxOEofuKcSt/QKY6V5+HZzvqlcRSth8ZhZWxTsf3moVmx6JUIe8wa5XiZKoKIgfq6Oqygs07YaCH8dUIUkoQnoqb7AwXHIuSf/izwdhkXak8evRYv3+vyFrd+FiB0ffcbjzP0QMTRjrYiURWNtOKCHYupi3PWlSgYbhTv22MYdNioR4hbsRyGawwlVtpfiWJxxs+NzAbYen8Rfz ya.na.pochte@gmail.com
View id_rsa.pub
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCZxJjCtJ4GMg/nDDeDhHUb69pWXUshWA0HMyQtZpS/tUfy+yDHQtgE+m5PtK3wg2FuE2gFa68xSxFQuGFE+dDfXgiQ0tnEgxnWuoJ8Xf2BhMlpqrktDnuZ3VrooeiwY0dpzdQebHxOEofuKcSt/QKY6V5+HZzvqlcRSth8ZhZWxTsf3moVmx6JUIe8wa5XiZKoKIgfq6Oqygs07YaCH8dUIUkoQnoqb7AwXHIuSf/izwdhkXak8evRYv3+vyFrd+FiB0ffcbjzP0QMTRjrYiURWNtOKCHYupi3PWlSgYbhTv22MYdNioR4hbsRyGawwlVtpfiWJxxs+NzAbYen8Rfz ya.na.pochte@gmail.com
@vladignatyev
vladignatyev / gdpr-list.md
Last active Oct 1, 2018
List of countries affected by GDPR
View gdpr-list.md
You can’t perform that action at this time.