I hereby claim:
- I am mukeshgurpude on github.
- I am mukeshgurpude (https://keybase.io/mukeshgurpude) on keybase.
- I have a public key ASA6gq4vAGeheOamrcjfPxvQzMa4og_TsdZQdn3l3UzJJAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
OS Lab Exercises - separate
| @charset "UTF-8"; | |
| aside#messages { | |
| position: fixed; | |
| top: 10vh; | |
| right: 5vw; | |
| padding: 0.2em 1em; | |
| border-radius: 5px; | |
| background-color: rgba(0, 0, 0, 0.7); | |
| color: #cdcdda; | |
| z-index: 1000; |
| /* bling.js */ | |
| window.$ = document.querySelectorAll.bind(document); | |
| Node.prototype.on = window.on = function (name, fn) { | |
| this.addEventListener(name, fn); | |
| } | |
| NodeList.prototype.__proto__ = Array.prototype; |
| def xor(a: str, b: str) -> str: | |
| return bin(int(a, 2) ^ int(b, 2))[2:].zfill(len(a) - 1) | |
| def generator(data: str, divisor: str) -> str: | |
| initial = data | |
| for i in range(len(divisor)): | |
| if len(data) != len(divisor): data += '0' | |
| if data[0] == '0': | |
| data = xor(data, '0000') | |
| else: |
| from threading import Thread | |
| from time import sleep | |
| def threaded(func): | |
| def wrapper(*args, **kwargs): | |
| thread = Thread(target=func, args=args, kwargs=kwargs) | |
| thread.start() | |
| return thread | |
| return wrapper |
| a.out |