This blog post series has moved here.
You might also be interested in the 2016 version.
#!/usr/bin/env python3 | |
import re, sys, os | |
""" | |
Converts the Nix profile SH script to a Fish-compatible profile using a | |
simple line-by-line replace algorithm. | |
""" | |
# Regular expressions for things we need to rewrite | |
RE_TEST = re.compile("\[([^\]]+)\]") |
This blog post series has moved here.
You might also be interested in the 2016 version.
Basic unit type:
λ> replTy "()"
() :: ()
Basic functions:
Inspired by "Parsing CSS with Parsec".
Just quick notes and code that you can play with in REPL.
By @kachayev
; /usr/local/bin/nasm -f macho 32.asm && ld -macosx_version_min 10.7.0 -o 32 32.o && ./32 | |
global start | |
section .text | |
start: | |
push dword msg.len | |
push dword msg | |
push dword 1 | |
mov eax, 4 |
I was fighting with Haskell last weekend. At first, I couldn't install some missing libraries with Cabal, and then, when trying to find out what's wrong, I ended up removing the whole Haskell installation — only to find out I could no longer install neither the Haskell Platform nor even just Cabal Install! The warnings I would see were more or less about the use of the single quote in source code:
Preprocessing library text-0.11.2.3...
Data/Text.hs:6:52:
warning: missing terminating ' character [-Winvalid-pp-token]
-- Copyright : (c) 2009, 2010, 2011, 2012 Bryan O'Sullivan,
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
# ~/.config/fish/config.fish | |
. ~/.config/fish/fish_prompt.fish | |
set fish_greeting '' # turn off greeting | |
function fish_title;end | |
alias vi 'vim' |
var empty_list = function(selector) { | |
return selector(undefined, undefined, true); | |
}; | |
var prepend = function(el, list) { | |
return function(selector) { | |
return selector(el, list, false); | |
}; | |
}; | |
var head = function(list) { |
module MyData | |
(MetricUnit(..), | |
ImperialUnit(..), | |
Measurement(..), | |
convert) | |
where | |
data MetricUnit = Meter | |
| Liter |