Skip to content

Instantly share code, notes, and snippets.

View marius-zenitech's full-sized avatar

marius-zenitech

View GitHub Profile
anonymous
anonymous / MacronutrientData.csv
Created April 20, 2016 19:50
We can't make this file beautiful and searchable because it's too large.
name,weight,measure,protein-gm,protein-unit,protein-value,fat-gm,fat-unit,fat-value,carb-gm,carb-unit,carb-value
"Abiyuch, raw",114.0,0.5 cup,1.5,g,1.71,0.1,g,0.11,17.6,g,20.06
"Acerola juice, raw",242.0,1.0 cup,0.4,g,0.97,0.3,g,0.73,4.8,g,11.62
"Acerola, (west indian cherry), raw",98.0,1.0 cup,0.4,g,0.39,0.3,g,0.29,7.69,g,7.54
"Alcoholic beverage, beer, light",29.5,1.0 fl oz,0.24,g,0.07,0.0,g,0.00,1.64,g,0.48
"Alcoholic beverage, beer, light, BUD LIGHT",29.5,1.0 fl oz,0.25,g,0.07,0.0,g,0.00,1.3,g,0.38
"Alcoholic beverage, beer, light, BUDWEISER SELECT",29.5,1.0 fl oz,0.2,g,0.06,0.0,g,0.00,0.87,g,0.26
"Alcoholic beverage, beer, light, higher alcohol",356.0,12.0 fl oz,0.25,g,0.89,0.0,g,0.00,0.77,g,2.74
"Alcoholic beverage, beer, light, low carb",29.5,1.0 fl oz,0.17,g,0.05,0.0,g,0.00,0.73,g,0.22
"Alcoholic beverage, beer, regular, all",29.7,1.0 fl oz,0.46,g,0.14,0.0,g,0.00,3.55,g,1.05
@iamphill
iamphill / RegexHandler.go
Last active May 9, 2022 02:12
Very basic golang HTTP server
package main
import (
"net/http"
"Regexp"
)
type route struct {
pattern *regexp.Regexp
handler http.Handler
@ksol
ksol / chrome_39.js
Last active July 10, 2021 13:37
Language detection in javascript
window.navigator.language // -> "fr"
window.navigator.languages // -> ["fr-FR", "fr", "en-US", "en", "es", "de"]
window.navigator.userLanguage // -> undefined
window.navigator.browserLanguage // -> undefined
window.navigator.systemLanguage // -> undefined