Skip to content

Instantly share code, notes, and snippets.

View cpressey's full-sized avatar
🚚
Moved to codeberg.org/cpressey

Chris Pressey cpressey

🚚
Moved to codeberg.org/cpressey
View GitHub Profile
@cpressey
cpressey / Programming Language Feature Desiderata.md
Last active December 3, 2023 14:55
Programming Language Feature Desiderata
@cpressey
cpressey / Calling an anonymous function directly in various languages.md
Last active June 1, 2020 15:55
Calling an anonymous function directly in various languages

Just a little survey of what code to create an anonymous function and immediately call it looks like in a handful of high-level languages. All of these expressions should evaluate to 10.

Language Code
Python (lambda x: x+1)(9)
Ruby (lambda {|x| x+1}).call(9)
Lua (function(x) return x+1 end)(9)
Erlang (fun(X) -> X+1 end)(9)
Haskell (\x -> x+1)(9)
@cpressey
cpressey / Future directions for SixtyPical.md
Last active December 10, 2023 12:18
Future directions for SixtyPical
@cpressey
cpressey / PipelineCombinators.hs.md
Last active May 6, 2024 13:00
PipelineCombinators.hs
@cpressey
cpressey / OperationalSansGADTs.hs.md
Last active May 6, 2024 09:42
Operational monad sans GADTs
@cpressey
cpressey / .bash_aliases
Created August 10, 2021 09:57
.bash_aliases
# encoding: UTF-8
bind '"\e[A":history-search-backward'
bind '"\e[B":history-search-forward'
export PATH="$HOME/.cabal/bin:$HOME/.local/bin:$PATH"
export EDITOR=nano
alias unpyc="find . -name '*.pyc' -exec rm -f {} \;"
alias rsyncavd="rsync --archive --verbose --delete"
alias git-savepatch='git diff >'
alias chintzy-httpd='python2 -m SimpleHTTPServer'
@cpressey
cpressey / Efficiently-Dull.md
Created October 23, 2022 10:39
"The League of Efficiently Dull Gentlemen"