This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const processInPool = async ( | |
tasks: (() => Promise<unknown>)[], | |
poolSize: number, | |
) => { | |
const pool = tasks.toReversed(); | |
const worker = async () => { | |
while (true) { | |
const task = pool.pop(); | |
if (task == null) { | |
return; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
scoop bucket add main | |
scoop bucket add java | |
scoop bucket add extras | |
scoop install main/git | |
scoop install main/7zip | |
scoop install main/python | |
scoop install main/nodejs-lts | |
scoop install main/go | |
scoop install java/corretto17-jdk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Foreach ($v in (youtube-dl --get-id PLAYLIST_URL)) { | |
Start-Job -ScriptBlock { youtube-dl $using:v } | |
} | |
# to extract audio add: -x | |
# to extract as mp3 add: -x --audio-format mp3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
graph = [ | |
("GC", "zi"), | |
("end", "zv"), | |
("lk", "ca"), | |
("lk", "zi"), | |
("GC", "ky"), | |
("zi", "ca"), | |
("end", "FU"), | |
("iv", "FU"), | |
("lk", "iv"), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
# Sample code to perform I/O: | |
name = input() # Reading input from STDIN | |
print('Hi, %s.' % name) # Writing output to STDOUT | |
# Warning: Printing unwanted or ill-formatted data to output will cause the test cases to fail | |
''' | |
# Write your code here |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
scoop install 7zip git vscode googlechrome vlc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
print = fn f -> | |
receive do | |
name -> IO.puts(name) | |
f.(f) | |
end | |
end | |
server = spawn(fn -> print.(print) end) | |
send(server, "Sharno") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:l <filename> -- load | |
:r -- reload | |
:q -- quit | |
:t <expression> -- type | |
:i -- info | |
:k <something> -- kind | |
:sprint <expression> -- prints an expression without evaluation | |
------------------------------------ | |
-- this is a comment |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<style> | |
text{ | |
font-size:12px; | |
} | |
.mainBars rect{ | |
shape-rendering: auto; | |
fill-opacity: 0; | |
stroke-width: 0.5px; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10fthf7glu_e | |
12RHPET_c | |
12harachd_r | |
12ppd_R_c | |
15HPET_r | |
17ahprgnlone_m | |
17ahprgstrn_m | |
18harachd_r | |
1a2425thvitd2_m | |
1a2425thvitd3_m |
NewerOlder