Skip to content

Instantly share code, notes, and snippets.

View klrkdekira's full-sized avatar

Chee Leong klrkdekira

View GitHub Profile
def tobold(text):
return md.bold(text)
# using tobold == md.bold
# because tobold(text) == md.bold(text)
# fun fact, you can alias the function
# tobold = md.bold
# unless you want to pre fill parameter
def header(text):
# go-measurement-kit
git clone https://github.com/measurement-kit/go-measurement-kit.git
docker run -ti --rm \
-v $PWD/go-measurement-kit:/go/src/github.com/measurement-kit/go-measurement-kit \
-w /go/src/github.com/measurement-kit/go-measurement-kit \
-e CGO_ENABLED='1' \
golang:1.12 bash
./download-libs.sh linux
go build -x .
@klrkdekira
klrkdekira / engineersmy-setup.md
Last active March 11, 2019 12:34
EngineersMY Setup

The following are the items used currently, the link are reference to the model, you can probably buy them elsewhere.

Laptop

I'd suggest laptop that supports hardware encoding which should reduce the CPU requirement by a lot.

  • Intel Quicksync

  • AMD VCE

@klrkdekira
klrkdekira / giistr-cla.md
Last active July 20, 2018 09:09 — forked from alex3165/giistr-cla.md
MIT CLA

Individual Contributor License Agreement (CLA)

Thank you for submitting your contributions to this project.

By signing this CLA, you agree that the following terms apply to all of your past, present and future contributions to the project.

License.

You hereby represent that all present, past and future contributions are governed by the

Keybase proof

I hereby claim:

  • I am klrkdekira on github.
  • I am motionman (https://keybase.io/motionman) on keybase.
  • I have a public key ASA0vH854j6UJj23zuUzOiiap7awjlV0pzxxUpdvHt0Ndgo

To claim this, I am signing this object:

TRUE = lambda a: (lambda b: a)
FALSE = lambda a: (lambda b: b)
NOT = lambda b: b(FALSE)(TRUE)
AND = lambda a: (lambda b: a(b)(FALSE))
OR = lambda a: (lambda b: a(TRUE)(b))
XOR = lambda a: (lambda b: a(NOT(b))(b))
print('TRUE\t\t', TRUE(True)(False))
print('FALSE\t\t', FALSE(True)(False))
print('NOT TRUE\t', NOT(TRUE)(True)(False))
@klrkdekira
klrkdekira / fac.py
Last active November 1, 2016 13:57
just to prove a point
#!/usr/bin/env python
def fac(n):
if n == 0:
return 0
f = 0
for i in reversed(xrange(n)):
if f == 0:
f = i+1
@klrkdekira
klrkdekira / main.go
Created October 23, 2016 07:11
Golang net/http HandlerFunc demo
package main
import (
"fmt"
"io/ioutil"
"net/http"
"time"
)
func sayHelloHandlerFunc(w http.ResponseWriter, r *http.Request) {
package main
import (
"fmt"
"io/ioutil"
"log"
"net/http"
"sync"
)
package main
import (
"fmt"
"io/ioutil"
"log"
"net/http"
"sync"
)