This file contains hidden or 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
from pathlib import Path | |
directory = "hello" | |
Path(f"{directory}").mkdir(parents=True, exist_ok=True) |
This file contains hidden or 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
body { | |
font-family: "Atkinson Hyperlegible"; | |
margin: 40px auto; | |
max-width: 650px; | |
line-height: 1.6; | |
font-size: 18px; | |
background: #fffff8; | |
color: #111111; | |
padding: 0 10px | |
} |
This file contains hidden or 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
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display&display=swap'); | |
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display&family=Xanh+Mono&display=swap'); | |
#readme h1, #readme h2, #readme h3, #readme p { | |
font-family: 'Playfair Display', serif; | |
} | |
#readme a { | |
font-family: 'Xanh Mono', monospace; |
This file contains hidden or 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
import glob | |
import sys | |
import io | |
files = glob.glob('./*.in') | |
for f in files: | |
test_case = f.split('.in')[0].replace('.\\', '') | |
sys.stdin = open(f, "r") | |
print(f"\n*** Caso de Teste {test_case} ***\n") |
This file contains hidden or 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
@font-face { | |
font-family: "Computer Modern"; | |
src: url('http://mirrors.ctan.org/fonts/cm-unicode/fonts/otf/cmunss.otf'); | |
} | |
@font-face { | |
font-family: "Computer Modern"; | |
src: url('http://mirrors.ctan.org/fonts/cm-unicode/fonts/otf/cmunsx.otf'); | |
font-weight: bold; | |
} |
This file contains hidden or 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
body { | |
margin: 40px auto; | |
max-width: 650px; | |
line-height: 1.6; | |
font-size: 18px; | |
color: #444; | |
padding: 0 10px | |
} | |
h1, |
This file contains hidden or 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
void drawGrid() { | |
push(); | |
stroke(0); | |
boolean switch_color = false; | |
for (int line = 0; line <= width; line += cell_size) { | |
for (int column = 0; column <= height; column += cell_size) { | |
if (switch_color) { | |
fill(255); | |
switch_color = false; | |
} else { |
This file contains hidden or 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
if (thickness_flag) { | |
thickness += 1; | |
if (thickness >= 5) { | |
thickness_flag = false; | |
} | |
} else { | |
thickness -= 1; | |
if (thickness <= 1) { | |
thickness_flag = true; | |
} |
This file contains hidden or 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
color[][] colors = { {#f7f4e3,#f9c4aa}, | |
{#fcd77f,#ff2e4c} | |
{#fcac0c,#ececec} | |
}; | |
void mouseClicked() { | |
// get random colorscheme | |
// (and guarantee it's a new colorscheme) | |
random_index = (int)random(colors.length); |
This file contains hidden or 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
# wal | |
function rice { sudo -E wal -i "$1" -g --backend "$2" && sudo -E oomoxify-cli -g ~/.cache/wal/colors-oomox && ~/.wal-telegram/wal-telegram && sudo -E wal-steam -w } | |
export rice |