I hereby claim:
- I am linse on github.
- I am linse (https://keybase.io/linse) on keybase.
- I have a public key whose fingerprint is 5148 4174 C54D A514 3342 77BA 2334 6873 8FF9 BABA
To claim this, I am signing this object:
instance Num a => Num [a] where -- (1) | |
(f:fs) + (g:gs) = f+g : fs+gs -- (2) | |
fs + [] = fs -- (3a) | |
[] + gs = gs -- (3b) | |
(f:fs) * (g:gs) = f*g : [f]*gs + fs*(g:gs) -- (4) | |
_ * _ = [] -- (5) | |
abs = undefined -- I can't think of a sensible definition |
# http://www.sailmaker.co.uk/blog/2013/05/05/migrating-from-svn-to-git-preserving-branches-and-tags-3/ | |
# svn 2 git transformation, with prefix to avoid ambiguity and no metadata to avoid ugly commit messages | |
git svn -A ../MC-Fold/authors-transform.txt clone --prefix=svn/ --no-metadata -s http://svn.bioinfo.iric.ca/MC-Fold/ | |
cd MC-Fold/ | |
# transform svn branches into local git branches | |
git branch -r | |
for branch in `git branch -r | grep -v "svn/tags/" | sed 's/svn\///'`; do | |
git branch $branch refs/remotes/svn/$branch; |
-- this is very simple and also ambiguous, e.g. the open structure will be constructed multiple times | |
s :: Integer -> [String] | |
s 2 = [".."] | |
s 1 = ["."] | |
s n = (map inbrackets $ s (n-2)) ++ (map adddot $ s (n-1) ) ++ (concatMap branches (splits n)) | |
where | |
inbrackets a = "("++a++")" | |
adddot a = '.':a | |
branches (a,b) = [a'++b' | a' <- s a, b' <- s b ] |
I hereby claim:
To claim this, I am signing this object:
commentserver is a daemon now :) |
Data for dot-bracket notation (a.k.a. Vienna notation) | |
> type Viennachar = Char | |
> type RNAchar = Char | |
Data for tree structure | |
> data Tree a = N a (Forest a) deriving (Show,Eq,Ord) | |
> type Forest a = [Tree a] |
The CLISP specialty is used when producing a png from the dot file in Chapter 7.
brew install graphviz
which dot -> /usr/local/bin/dot
(defun dot->png (fname thunk)
(with-open-file (standard-output
mvn -X test -Dandroid.sdk.path="path/to/my/sdk" | |
Apache Maven 3.0.3 (r1075438; 2011-02-28 12:31:09-0500) | |
Maven home: /usr/share/maven | |
Java version: 1.6.0_29, vendor: Apple Inc. | |
Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home | |
Default locale: en_US, platform encoding: MacRoman | |
OS name: "mac os x", version: "10.7.2", arch: "x86_64", family: "mac" | |
[INFO] Error stacktraces are turned on. | |
[DEBUG] Reading global settings from /usr/share/maven/conf/settings.xml |
The ``syntax error near unexpected token`` means a m4 macro (for me: PKG_CHECK_MODULES) could not be expanded. | |
This can be a problem of autotoos / aclocal on OSX using homebrew. The tool aclocal is very oldschool and uses m4 macros. These .m4 macros for aclocal are expected to be in ``/usr/share/aclocal``, but homebrew puts them in ``/usr/local/share/aclocal`` without telling aclocal so. | |
Solution is adding a line ``/usr/local/share/aclocal`` in a ``/usr/share/aclocal/dirlist`` file. |
var _33C3=["\x74\x65\x78\x74\x5F\x68\x6F\x6C\x64\x65\x72","\x67\x65\x74\x45\x6C\x65\x6D\x65\x6E\x74\x42\x79\x49\x64","\x66\x6E\x61\x71\x5F\x68\x6F\x6C\x64\x65\x72","\x6C\x6F\x67\x6F","\x66\x72\x61\x6D\x65","\x69\x66\x72\x61\x6D\x65","\x63\x6C\x61\x69\x6D","\x6C\x69\x6E\x67\x75\x61","\x6C\x61\x6E\x67","\x67\x65\x74\x45\x6C\x65\x6D\x65\x6E\x74\x73\x42\x79\x43\x6C\x61\x73\x73\x4E\x61\x6D\x65","\x73\x63\x68\x72\x6F\x65\x64\x69\x6E\x67\x65\x72\x5F\x65\x6E","\x73\x63\x68\x72\x6F\x65\x64\x69\x6E\x67\x65\x72\x5F\x64\x65","\x6B\x65\x69\x6E\x73\x70\x69\x65\x6C\x5F\x64\x65","\x70\x61\x73\x73\x77\x6F\x72\x64\x65\x72","\x70\x61\x73\x73\x77\x6F\x72\x64","\x6B\x65\x69\x6E\x73\x70\x69\x65\x6C","\x63\x6C\x69\x63\x6B","\x68\x69\x64\x64\x65\x6E","\x72\x65\x6D\x6F\x76\x65","\x63\x6C\x61\x73\x73\x4C\x69\x73\x74","\x66\x6F\x63\x75\x73","\x70\x72\x65\x76\x65\x6E\x74\x44\x65\x66\x61\x75\x6C\x74","\x73\x74\x6F\x70\x49\x6D\x6D\x65\x64\x69\x61\x74\x65\x50\x72\x6F\x70\x61\x67\x61\x74\x69\x6F\x6E","\x61\x64\x64\x45\x76\x65\x6E\x74\x4C\x6 |