Skip to content

Instantly share code, notes, and snippets.

xpra attach ssh:remotehost
#!/bin/sh
# Must be called with two command-line args.
# Example: git-svn-relocate.sh http://old.server https://new.server
if [ $# -ne 2 ]
then
echo "Please invoke this script with two command-line arguments (old and new SVN URLs)."
exit $E_NO_ARGS
fi
#!/usr/bin/python
from git_fast_filter import Commit, FastExportFilter
import re
import sys
IN_REPO = "https://svn.code.sf.net/p/matsim/code"
OUT_REPO = "https://svn.code.sf.net/p/matsim/source"
IN_REPO_RE = re.compile("^git-svn-id: %s" % re.escape(IN_REPO), re.M)
#!/bin/sh
. /usr/share/doc/git/contrib/subtree/git-subtree.sh "$*"
library(rbenchmark)
sort.q <- function(m) {
sort(m, method='quick')
}
sort.p <- function(m) {
mm <- sort(m, partial=TOP)[1:TOP]
sort(mm)
}
export DISPLAY=:$(( $( (echo 0; ls /tmp/.X11-unix/X* 2> /dev/null) | sed 's/^.*\/X//' | sort | tail -n 1) + 1))
read.table(text="599 449
149 99
249 189
349 259
199 99
299 NA
399 199
549 329
129 79
599 359
From 8c3ee5cbeb430aa3c16b4a516585449a0e5103a9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Kirill=20M=C3=BCller?= <kirill.mueller@ivt.baug.ethz.ch>
Date: Mon, 2 Sep 2013 17:28:43 +0200
Subject: [PATCH] allow empty model
---
R/na.rpart.R | 1 +
R/rpart.R | 2 +-
src/rpart.c | 50 ++++++++++++++++++++++++++------------------------
3 files changed, 28 insertions(+), 25 deletions(-)
@krlmlr
krlmlr / .gitignore
Last active December 27, 2015 00:09 — forked from jpritikin/predis-sm.Rnw
/cache/
/figure/
/predis-sm.aux
/predis-sm.bcf
/predis-sm.blg
/predis-sm.log
/predis-sm.out
/predis-sm.pdf
/predis-sm.pyg
/predis-sm.run.xml
#!/bin/sh
set -o errexit
set -o nounset
set -o noclobber
name=predis-sm
R --no-save --restore <<'EOF'
library(knitr)