Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// 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 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
syntax on | |
set expandtab | |
set tabstop=8 | |
set softtabstop=4 | |
set shiftwidth=4 | |
filetype plugin indent on | |
set ruler | |
set mouse=r |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |