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
# Generated from https://typeof.net/Iosevka/customizer | |
# Etan Mono | |
# To build: npm run build -- ttf-unhinted::etan-mono | |
[buildPlans.etan-mono] | |
family = "Etan Mono" | |
spacing = "normal" | |
serifs = "sans" | |
noCvSs = 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
#!/bin/python3 | |
import sys | |
DEBUG = False | |
q = int(input().strip()) | |
for a0 in range(q): | |
s = input().strip() | |
if DEBUG: print(s) |
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
// Since a/n can be franctional: use double | |
double new_func(double a, double n) { | |
return n == 0 ? 1.0 : (a/n) + new_func(a, n-1); | |
} |
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 math | |
# distance formula | |
def distance(us, vs): | |
sum = 0 | |
# enumerate over all xs and ys together | |
for (x, y) in zip(us, vs): | |
sum += (x-y) ** 2 | |
return math.sqrt(sum) |
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 { | |
color: #333; | |
font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; | |
padding: 30px; | |
margin: 0; | |
word-wrap: break-word; | |
} | |
body > *:first-child { | |
margin-top: 0 !important; |
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 { | |
color: #333; | |
font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; | |
padding: 30px; | |
margin: 0; | |
word-wrap: break-word; | |
} | |
body > *:first-child { | |
margin-top: 0 !important; |