Skip to content

Instantly share code, notes, and snippets.

View flamanta's full-sized avatar
🍞
working for some bread

Wei Min Cher flamanta

🍞
working for some bread
View GitHub Profile
@flamanta
flamanta / vn200-rpi-setup.md
Created January 16, 2023 06:40
Setting up VN-200 on the Raspberry Pi

Setting up VN-200 on the Raspberry Pi

Prerequisites

  • VN-200 Rugged Development Kit
  • Raspberry Pi
  • VectorNav Programming Library files
  • Wired keyboard and mouse
@flamanta
flamanta / 台湾百佳唱片榜单.md
Last active December 7, 2023 12:15
台湾流行音乐200最佳专辑 (1973-2005)

台湾流行音乐100最佳专辑1975-1993部分

排名 专辑名称 演唱者 制作人 发行公司 发行日期 著名曲目

1 之乎者也 罗大佑 罗大佑/阪部一夫 滚石 1982.4.21 鹿港小镇、恋曲1980

2 苏芮专辑 苏 芮 李寿全 飞碟 1983.6.18 一样的月光、请跟我来

3 橄榄树 齐 豫 李泰祥 新格 1979 橄榄树、欢颜、走在雨中

@flamanta
flamanta / vs-code-setup.md
Last active June 10, 2020 02:37
My VSCode setup

My VSCode setup

code style: prettier

My setup for VS Code. I use VS Code on both Windows and Linux.

Contents

@flamanta
flamanta / SUTD_Wifi_Linux.md
Created June 29, 2019 19:47
Setting up SUTD_Wifi on Linux

Setting up SUTD_Wifi on Linux

The following instructions are what worked for me for connecting to the SUTD_Wifi wireless network on Linux. My Linux setup is elementary OS 5.0 Juno (built on Ubuntu 18.04.2 LTS).

Wi-Fi

  • SSID: SUTD_Wifi
  • Mode: Client
  • Band: Automatic
  • Channel: default
@flamanta
flamanta / copy-chrome-ext.md
Created June 18, 2019 05:17
Copy Chrome extensions locally between computers

Copying Chrome extensions locally between computers

Retrieved from Super User.

  1. Locate the extension folder from an existing installation. You should find it in

     Chrome user data directory → Extensions → {a 32 "a→p" character hash}
    

    The Chrome user data directory is found under Profile Path at chrome://extensions.

@flamanta
flamanta / keybase.md
Created May 26, 2019 08:04
Keybase proof

Keybase proof

I hereby claim:

  • I am flamanta on github.
  • I am flamanta (https://keybase.io/flamanta) on keybase.
  • I have a public key ASD4jcygTrrg6S37UbdnP-yKkeWnpjIwPo-gESHnTb63nAo

To claim this, I am signing this object:

@flamanta
flamanta / bin_convert.py
Last active July 2, 2019 04:20
[Convert str to base32 or base64] #base32 #base64
import base64
base64.b64encode(s) # encode a string in Base64
base64.b64decode(s) # decode a Base64 encoded string
base64.b32encode(s) # encode a string in Base32
base64.b32decode(s) # decode a Base32 encoded string
@flamanta
flamanta / is_prime.py
Last active May 20, 2019 07:49
[Check if prime] #math
def is_prime(n):
if n < 2:
return False
if n == 2:
return True
for num in range(3, int(n**0.5)+1, 2):
if n % num == 0:
return False
return True