Skip to content

Instantly share code, notes, and snippets.

View natebwangsut's full-sized avatar
:meow_coffee:

Bhurinat Wangsutthitham natebwangsut

:meow_coffee:
View GitHub Profile
# 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
@natebwangsut
natebwangsut / separate.py
Last active January 1, 2018 15:33
HackerRank: Separate the Numbers
#!/bin/python3
import sys
DEBUG = False
q = int(input().strip())
for a0 in range(q):
s = input().strip()
if DEBUG: print(s)
@natebwangsut
natebwangsut / new_func.c
Created November 26, 2017 08:10
NewFunc.c
// 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);
}
@natebwangsut
natebwangsut / k_clostest.py
Last active September 5, 2017 06:44
Hello
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)
@natebwangsut
natebwangsut / github3-testing.css
Created November 25, 2016 02:08
Testing GitHub3 css file
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;
@natebwangsut
natebwangsut / GitHub3.css
Created November 14, 2016 00:20
github3 css file
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;