Skip to content

Instantly share code, notes, and snippets.

View heypoom's full-sized avatar
🏠
Working from home

Phoomparin Mano heypoom

🏠
Working from home
View GitHub Profile
(def ranks [2 3 4 5 6 7 8 9 0 "J" "Q" "K" "A"])
(def suits ["C" "D" "H" "S"])
(defn card-at
"Retrieves the deck of card at the nth position"
[n]
(if (< n 52)
(str
(ranks (mod n 13))
(suits
for cmd in (bash -c 'compgen -c | sort')
set result (timeout 1s tldr $cmd 2>&1 || echo no)
if [ (echo $result | string match -r 'Submit new pages') ]
echo "$cmd is available for PR submission"
end
end
window.pprify = text => text.replace(/ภูมิปรินทร์ มะโน/g, "ภปร.").replace(/ภูมิปรินทร์/g, "ภปร.")
document.head.innerHTML = pprify(document.head.innerHTML)
document.body.innerHTML = pprify(document.body.innerHTML)
history.replaceState(null, null, pprify(location.pathname + location.search))
@heypoom
heypoom / linked-list.ts
Created July 22, 2019 11:31
Simple Linked List in TypeScript.
const VecNode = (value?: any) => ({
value,
next: null
})
function Vec() {
let _node = VecNode()
let length = 0
return {
[
"209.73.180.0/22",
"63.250.196.0/22",
"63.250.200.0/21",
"66.196.104.0/21",
"66.196.112.0/21",
"66.196.80.0/21",
"66.218.83.0/24",
"66.218.84.0/22",
"66.218.92.0/22",
const urinal = Machine({
id: 'urinal',
initial: 'inactive',
states: {
inactive: {
on: {
OBJECT_FOUND: 'rinsing'
}
},

Keybase proof

I hereby claim:

  • I am phoomparin on github.
  • I am phoomparin (https://keybase.io/phoomparin) on keybase.
  • I have a public key ASC943Cr3XC2STPcvgeSBj1bANVx-ZTfibr1yaSfZSXwVAo

To claim this, I am signing this object:

GET /api/mobile_apps.json HTTP/1.1
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIyIiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNTUwMjI2OTA0LCJleHAiOjI3MjY2NzU2NzU0OTA0LCJqdGkiOiJjMzliNjI4YS0yNGJmLTQzMjItOWFhNy1iNmU2NGI5NDA1MWUifQ.u80XwaNiOjaEG6TZTr1kp3m-qcUeGy8ouNq7ZbLLoT4
Host: www.uteleme.com
Connection: close
Messenger (com.facebook.orca)
Line (jp.naver.line.android)
Facebook (com.facebook.katana)
Twitter (com.twitter.android)
Pinterest (com.pinterest)
Hago (com.yy.hiyo)
BeeTalk (com.beetalk.app.mm)
Badoo (com.badoo.mobile)
Pantip (com.sarunw.pantiptalklite)
Dek-D (com.dekd.apps)
[
{
"id": 1,
"mobile_app_group": {
"id": 1,
"code": "SOCIAL",
"name_en": "Social",
"name_th": "สังคมออนไลน์",
"description": null,
"created_by": null,