Skip to content

Instantly share code, notes, and snippets.

View jethrokuan's full-sized avatar
💩

Jethro Kuan jethrokuan

💩
View GitHub Profile
@jethrokuan
jethrokuan / email.nix
Created September 23, 2018 06:31
NixOS email setup
{pkgs, ...}:
{
environment.systemPackages = with pkgs; [
pass
isyncUnstable
msmtp
notmuch
pinentry_qt5
];
@jethrokuan
jethrokuan / weekly_review.org
Created September 14, 2018 08:36
Weekly Review

Get Clear [0/3]

  • [ ] Collect Loose Papers and Materials: Pull out all miscellaneous pieces of paper, business cards, receipts, and so on that have crept into the crevices of your desk, clothing, and accessories. Put it all in your in-tray for processing.
  • [ ] Get “IN” to Zero: Review any meeting notes and miscellaneous scribbles on notepaper or in your mobile devices. Decide and list any action items, projects, waiting-fors, calendar events, and someday/maybes, as appropriate. File any reference notes and materials. Get the “in” areas of e-mails, texts, and voice mails to
@jethrokuan
jethrokuan / squat.js
Last active July 23, 2018 07:01
Archipelago Squatter
// Bookmarklet Usage:
javascript:(function () {
var audio = new Audio('https://notificationsounds.com/notification-sounds/definite-555/download/ogg');
var targetNode = document.getElementsByClassName("ng-toast__list")[0];
var config = {
childList: true,
subtree: true
};

Discussion Group Exercises Week 4

Problems

Problem 1

What is the recursive definition of Pascal's triangle? What are the base cases?

  1. row == 1
  2. column == 1 (first element of each row)
  3. column == row(last element of each row)

Keybase proof

I hereby claim:

  • I am jethrokuan on github.
  • I am jethroksy (https://keybase.io/jethroksy) on keybase.
  • I have a public key whose fingerprint is 9A69 81EE 6543 8CBF 592A C3D5 E25D BF2B EE01 EB11

To claim this, I am signing this object:

@jethrokuan
jethrokuan / latency.txt
Created February 19, 2017 06:24 — forked from jboner/latency.txt
Latency Numbers Every Programmer Should Know
Latency Comparison Numbers
--------------------------
L1 cache reference 0.5 ns
Branch mispredict 5 ns
L2 cache reference 7 ns 14x L1 cache
Mutex lock/unlock 25 ns
Main memory reference 100 ns 20x L2 cache, 200x L1 cache
Compress 1K bytes with Zippy 3,000 ns 3 us
Send 1K bytes over 1 Gbps network 10,000 ns 10 us
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD

Keybase proof

I hereby claim:

  • I am jethrokuan on github.
  • I am jethroksy (https://keybase.io/jethroksy) on keybase.
  • I have a public key ASBZCMhhv_7BDI6w28eRM6y_z8u_0S6xKGOFG2cbq02Akgo

To claim this, I am signing this object:

@jethrokuan
jethrokuan / metropolis.css
Created August 15, 2016 02:21 — forked from vhodges/metropolis.css
A version of the Beamer theme Metropolis for reveal.js
/**
* A simple theme for reveal.js presentations, derived from serif.css
* It's in the spirit of the Metropolis theme for beamer https://github.com/matze/mtheme
*
* This theme is Copyright (C) 2016 Vince Hodges, http://sourdoughlabs.com - it is MIT licensed.
*/
@import url('https://fonts.googleapis.com/css?family=Fira+Sans');
.reveal a {
@jethrokuan
jethrokuan / config.fish
Created August 3, 2016 12:47
snippet for fish < 2.3
for file in ~/.config/fish/conf.d/*.fish
source $file
end
@jethrokuan
jethrokuan / shim.clj
Created May 11, 2016 15:42
Shim for uberjar. Set :main to shim/-main, and only AOT shim.
(ns shim
(:gen-class))
(defn -main [& argv]
(require 'my.app.entrypoint)
(apply (resolve 'my.app.entrypoint/-main) argv))