-
“Good jeux du mot” - good word game
-
Study history - it edifies us
This file contains 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
#!/usr/bin/python | |
#-*- coding:utf-8 -*- | |
# see http://forrst.com/posts/An_unball_script_for_vimball_plugins-CHM for | |
# author and credit of this code | |
import os, sys | |
if len(sys.argv) < 2: | |
raise SystemExit('Please specify a vba file (and optionally the directory to unball it to)') |
This file contains 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
" 1) install vundle: | |
" git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle | |
" 2) restart vim | |
" 3) :BundleInstall | |
"set term=builtin_ansi | |
syntax on | |
:set nu | |
set nocompatible " be iMproved |
This file contains 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
apply plugin: 'java' | |
apply plugin: 'idea' | |
apply plugin: 'application' | |
version = '1.0' | |
repositories { | |
mavenCentral() | |
} |
This file contains 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
#!/bin/sh | |
PROJECT_DIR="$(cd `dirname $0`; pwd)" | |
PROJECT_JAR="none" | |
for entry in "build/libs"/* | |
do | |
PROJECT_JAR=$entry | |
echo "running $entry" | |
break |
This file contains 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
#!/bin/sh | |
# requires R and latex / pdflatex | |
rm -rf ./mypkg/..Rcheck | |
cd ./mypkg | |
R CMD check . | |
cp ..Rcheck/mypkg-manual.pdf .. | |
rm -rf ..Rcheck | |
cd .. |
This file contains 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
#!/usr/bin/env python | |
import csv | |
with open('filename.csv', 'rb') as f: | |
reader = csv.reader(f) | |
for row in reader: | |
print "%s --- %s" % (row[0], row[1]) |
This file contains 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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains 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
" 1) install vundle: | |
" git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle | |
" 2) restart vim | |
" 3) :BundleInstall | |
" 4) build ~/.vim/bundle/YouCompleteMe with './install.sh --clang-completer' | |
"set term=builtin_ansi | |
syntax on | |
:set nu |
This file contains 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
package fpscala | |
sealed trait List[+A] | |
case object Nil extends List[Nothing] | |
case class Cons[+A](head: A, tail: List[A]) extends List[A] | |
object List { | |
def sum(ints: List[Int]): Int = ints match { | |
case Nil => 0 | |
case Cons(x,xs) => x + sum(xs) |
OlderNewer