Skip to content

Instantly share code, notes, and snippets.

View metaforte's full-sized avatar

Manas Marthi metaforte

  • Belfast, United Kingdom
View GitHub Profile
Verifying that "manas_marthi.id" is my Blockstack ID. https://onename.com/manas_marthi

Homogeneous Collections

  • Atomic Vector (1 dimension)
  • Matrix (2 dimension)
  • Array (n dimension)

Heterogeneous Collections

@metaforte
metaforte / JPAL 102X.md
Last active September 27, 2017 15:53
JPAL 102X How to design randomized evaluations

The is comprised of five sections.

First, designing randomized evaluations,

  • where we tackle the question, what is evaluation?
  • What is the purpose of evaluation in general?
  • And what is the theory behind our evaluation question?

Second, selecting a sample.

@metaforte
metaforte / modern-clojurescript.md
Created September 16, 2018 20:32
Modern ClojureScript

Chpater 2: Browser Repl

connect.cljs

(ns modern-cljs.connect
  (:require [clojure.browser.repl :as repl]))
@metaforte
metaforte / edx-devstack.md
Created October 21, 2018 13:42
edx-devstack.md

Below are the steps I followed to create edx devstack on ubuntu 16.04 running inside virtualbox on Windows 10.

Create virtual box ubuntu instance with atleast 20 Gig so that you do not run into disk full errors.

    sudo apt install git
    sudo apt-get update
    sudo apt install make
    curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
@metaforte
metaforte / calva.md
Last active January 22, 2022 17:28
Calva shortcuts for visual studio code

In VSCode, the default key binding for ctrl+, points to the settings menu. The number of times people access settings windows is far more less than the number of times s-expressions are executed. I modified calva key bindings to use ctrl+, (ctrl+oem_comma) instead of ctrl+alt+c. I also remapped the workbench settings keybinding to ctrl+, g so that it is still accessible. I left the Paredit settings unmodified. However, they are included in the below gist for reference. All the when clause of "when": "editorTextFocus && editorLangId == 'clojure'" so that their scope is limited to clojure only.

@metaforte
metaforte / latency.txt
Created April 11, 2024 14:59 — forked from jboner/latency.txt
Latency Numbers Every Programmer Should Know
Latency Comparison Numbers (~2012)
----------------------------------
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