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
# PowerShell script for WSL (Windows Subsystem for Linux) Configuration | |
Write-Host "===============================================" | |
Write-Host "Windows Subsystem for Linux (WSL) Configuration" | |
Write-Host "===============================================" | |
Write-Host "" | |
# Explanation of script actions | |
Write-Host "This script performs the following actions:" | |
Write-Host "1. Shuts down the WSL (Windows Subsystem for Linux)." | |
Write-Host "2. Disables IPv6 for the WSL virtual Ethernet adapter." |
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
import glob, os | |
command = """ | |
convert {original_file} \ | |
-sampling-factor 4:2:0 \ | |
-strip \ | |
-quality 85 \ | |
-interlace Plane \ | |
-gaussian-blur 0.05 \ | |
-colorspace RGB \ |
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
def nx_to_ig(graph): | |
g = ig.Graph.TupleList(graph.edges(), directed=False) | |
return g | |
def ig_to_nx(graph): | |
A = graph.get_edgelist() | |
g = nx.Graph(A) | |
return g |
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
// A3 = video URL | |
=IFERROR(IMAGE(CONCATENATE("https://i3.ytimg.com/vi/", INDEX(SPLIT(A3, "="), 1, 2), "/maxresdefault.jpg"))) |
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
from pathlib import Path | |
directory = "hello" | |
Path(f"{directory}").mkdir(parents=True, exist_ok=True) |
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
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 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 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 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 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, |
NewerOlder