Skip to content

Instantly share code, notes, and snippets.

source $HOME/antigen.zsh
# Load antigen bundles
antigen use oh-my-zsh
antigen bundle git
antigen bundle zsh-users/zsh-syntax-highlighting
antigen theme af-magic
# Appearance
@marcusway
marcusway / .vimrc
Last active July 16, 2017 00:03
.vimrc
syntax on
set expandtab
set tabstop=8
set softtabstop=4
set shiftwidth=4
filetype plugin indent on
set ruler
set mouse=r
from time import sleep
import __builtin__
VISCOSITY = 0.5
def stickify(fn, *args, **kwargs):
def sticky_fn(*args, **kwargs):
sleep(VISCOSITY)
return fn(*args, **kwargs)
return sticky_fn
for k, v in __builtin__.__dict__.iteritems():
@marcusway
marcusway / happy_numbers.ipynb
Created May 4, 2015 14:48
On Happy Numbers
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@marcusway
marcusway / LFD_ex1.10.ipynb
Last active January 27, 2023 16:08
Feasibility of Learning
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
/// Adds two numbers. Not curried.
func f(x: Int, y: Int) -> Int {
return x + y
}
/// h(x) takes an integer and generates a function g(y), which
/// returns the sum of x (now fixed) and y.
func h(x: Int) -> ((Int) -> Int) {
func g(y: Int) -> Int {
return x + y
@marcusway
marcusway / wsj_gawker.ipynb
Last active August 29, 2015 14:08
Web Scraping and Machine Learning in Python: Gawker vs WSJ
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.