I hereby claim:
- I am rsnara on github.
- I am ramanpreet (https://keybase.io/ramanpreet) on keybase.
- I have a public key ASDsidiMvMNDxCwLYu9ofiegfUVpWmfFgXew3kqBa0mVbQo
To claim this, I am signing this object:
function ArrayNDOf(factory) { | |
return function ArrayND(first, ...rest) { | |
return Array.apply(null, { length: first }).map(() => { | |
return rest.length == 0 ? factory() : ArrayND(...rest); | |
}); | |
} | |
} |
I hereby claim:
To claim this, I am signing this object:
(() => { | |
var basscssAddons = [ | |
'responsive-margin', 'responsive-padding', 'forms', 'btn', | |
'btn-outline', 'btn-primary', 'btn-sizes', 'colors', | |
'background-colors', 'background-images', 'border-colors', 'darken', | |
'lighten', 'input-range', 'progress', 'all', 'media-object', | |
'highlight', 'highlight-dark', | |
]; | |
function createBasscssAddonLink(addon) { |
(defn adjacent [n coll] | |
(lazy-seq | |
(if-not (empty? coll) | |
(loop [i 0 | |
element [] | |
others coll] | |
(cond | |
(= i n) (cons element (adjacent n (rest coll))) | |
(empty? others) (list element) | |
:else (recur (inc i) (conj element (first others)) (rest others))))))) |
function debounce(fn) { | |
let token = null; | |
return function thunk() { | |
if (token) { | |
cancelAnimationFrame(token); | |
} | |
token = requestAnimationFrame(() => { | |
token = null; | |
thunk.apply(this, arguments); |
function throttle(fn) { | |
let token = null; | |
return function thunk() { | |
if (token) { | |
return; | |
} | |
token = requestAnimationFrame(() => { | |
token = null; | |
thunk.apply(this, arguments); |
(defn raf-loop [func] | |
(let [stop (atom false) | |
id (atom nil)] | |
(reset! id (.requestAnimationFrame js/window | |
(fn helper [& args] | |
(when-not @stop | |
(reset! id (.requestAnimationFrame js/window helper)) | |
(try | |
(apply func args) | |
(catch js/Error ex |
#!/bin/bash | |
function cj() { | |
JOURNAL_HOME="$HOME/.journal" | |
FILE="$JOURNAL_HOME/$(date +%Y-%m-%d)".org | |
mkdir -p "$JOURNAL_HOME" | |
if [[ ! -f "$FILE" ]]; then | |
JOURNAL_COUNTER_FILE="$JOURNAL_HOME/.journal-counter" |
;; -*- mode: emacs-lisp -*- | |
;; This file is loaded by Spacemacs at startup. | |
;; It must be stored in your home directory. | |
(defun dotspacemacs/layers () | |
"Configuration Layers declaration. | |
You should not put any user code in this function besides modifying the variable | |
values." | |
(setq-default | |
;; Base distribution to use. This is a layer contained in the directory |