Skip to content

Instantly share code, notes, and snippets.

View fredefox's full-sized avatar
🦊

Frederik Hanghøj Iversen fredefox

🦊
View GitHub Profile
const tau = Math.PI * 2;
const getImageData = (ctx, [x0, x1], [y0, y1]) => {
const data = ctx.getImageData(x0, x1, y0, y1).data;
return Array.from(
(function* () {
for (let i = 0; i < data.length; i += 4) {
yield [data[i], data[i + 1], data[i + 2], data[i + 3]];
}
})()
data U = U Int Int Int
u :: U
u = convertResults (take 3 $ repeat aField) $ Just <$> ["0","1","2"]
deriving stock instance Generic U
deriving stock instance Show U
deriving anyclass instance QueryResults U
data T = T Int Int Int Int Int Int
# Path to your oh-my-zsh installation.
export ZSH=/home/fredefox/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="robbyrussell"
export UPDATE_ZSH_DAYS=30

Keybase proof

I hereby claim:

  • I am fredefox on github.
  • I am fredefox (https://keybase.io/fredefox) on keybase.
  • I have a public key whose fingerprint is 4BB6 F1BC C493 8BB6 4F3A 0B3C C1C3 7F81 1DA9 3EEC

To claim this, I am signing this object:

@fredefox
fredefox / packages.list
Last active August 29, 2015 13:57
Debian packages
curl install
zsh install
vlc install
openjdk-7-jdk install
transmission install
texlive-full install
jq install
icedtea-7-plugin install
virtualbox install
aha install
@fredefox
fredefox / .zshenv
Last active August 29, 2015 13:57
Some nifty stuff for your shell.
# Environment
export WORKSPACE="$HOME/workspace"
export LESSOPEN='|pygmentize %s'
export LESSCOLORIZER='pygmentize'
export EDITOR=vim
export VISUAL="subl -w"
export PAGER="less -SF"
# Aliases
alias e=subl