Skip to content

Instantly share code, notes, and snippets.

View alext234's full-sized avatar
🎯
Focusing

Alex alext234

🎯
Focusing
View GitHub Profile
@alext234
alext234 / sample-api.py
Created September 26, 2019 05:14
Singapore NEA PSI API
import requests
from datetime import date
from datetime import timedelta
day = date.today()-timedelta(days=0)
dayStr = day.strftime("%Y-%m-%d")
rPsi = requests.get("https://api.data.gov.sg/v1/environment/psi?date=" + dayStr)
@alext234
alext234 / testing-of-closestmatch.go
Last active November 1, 2018 21:01
test closestmatch
package main
import (
"fmt"
"github.com/schollz/closestmatch"
)
func main() {
wordsToTest := []string{"MERCEDES (ID000001)",
@alext234
alext234 / .gitignore
Created January 10, 2017 06:13
.gitignore for c++ with build directory and vim swap files included
# Compiled Object files
*.slo
*.lo
*.o
*.obj
# Precompiled Headers
*.gch
*.pch
@alext234
alext234 / openwrt-cross-compile.md
Created December 14, 2016 07:30
cross-compile instruction for openwrt
@alext234
alext234 / Dockerfile
Last active May 13, 2024 00:45
A simple ubuntu container with gcc and cmake
FROM ubuntu:xenial
MAINTAINER alex
# update and install dependencies
RUN apt-get update \
&& apt-get install -y \
software-properties-common \
wget \
&& add-apt-repository -y ppa:ubuntu-toolchain-r/test \
&& apt-get update \
@alext234
alext234 / keybase.md
Last active November 24, 2016 02:37
My publicly-auditable identity

Keybase proof

I hereby claim:

  • I am alext234 on github.
  • I am alext234 (https://keybase.io/alext234) on keybase.
  • I have a public key ASAQSHCKjdab_jgIMuJ8TPCqfg68S4b9AytJPd0QhkiEmAo

To claim this, I am signing this object: