I hereby claim:
- I am wkbae on github.
- I am wkbae (https://keybase.io/wkbae) on keybase.
- I have a public key ASCqx7Fvx6LeDfoLSjG5UrFMXKLcaANzfm9032L2viJslgo
To claim this, I am signing this object:
function semaphore(n) { | |
let running = 0; | |
const queue = []; | |
return (fn) => { | |
return new Promise((resolve) => { | |
const task = () => { | |
running++; | |
resolve( | |
fn().finally(() => { | |
running--; |
🌞 Morning 278 commits ████░░░░░░░░░░░░░░░░░ 19.1% | |
🌆 Daytime 720 commits ██████████▍░░░░░░░░░░ 49.6% | |
🌃 Evening 443 commits ██████▍░░░░░░░░░░░░░░ 30.5% | |
🌙 Night 12 commits ▏░░░░░░░░░░░░░░░░░░░░ 0.8% |
package main | |
import ( | |
"fmt" | |
"sync" | |
"time" | |
) | |
func unlimitedBufferer(in <-chan int, out chan<- int) { | |
var buffer []int |
I hereby claim:
To claim this, I am signing this object:
<html> | |
<head><title>MNIST Tester</title></head> | |
<style> | |
#number-pad { | |
padding: 0; | |
margin: 0; | |
border-collapse: collapse; | |
border: 1px solid #000; | |
} | |
#number-pad tr { |
""" | |
Quick brute-force password finder of an encrypted zip file. | |
"Life's short, use Python." | |
by WKBae (https://github.com/WKBae/) | |
""" | |
import zipfile | |
from multiprocessing import Pool |
import re | |
duration_re = re.compile(r"^\d{2}:\d{2}:\d{2},\d{3} --> \d{2}:\d{2}:\d{2},\d{3}\n$") | |
with open('input1.srt', 'r', encoding='utf-8') as one, open('input2.srt', 'r', encoding='utf-8') as two, open('result.srt', 'w', encoding='utf-8') as out: | |
one_lines = [] | |
line = one.readline() | |
while line: | |
while len(line) == 1: | |
line = one.readline() |