Skip to content

Instantly share code, notes, and snippets.

@mpj
mpj / gist:808
Created July 22, 2008 10:27
undefined
stuff.
This is just a temporary test file.
Any Lew
# This function takes A and M-values (or any X and Y )
lowessNormalization <- function(x, y, include = TRUE, line = NULL,
...) {
isFinite <- (is.finite(x) & is.finite(y))
if (any(isFinite)){
if (is.null(line)) {
line <- lowess(x[isFinite & include], y[isFinite &
include], ...)
}
y[isFinite] <- y[isFinite] - approx(line, xout = x[isFinite],
def hello
p "Hello, world!"
end
@cv
cv / git-histogram.sh
Created July 22, 2008 11:10
Runs a script for every commit in a git repository
moved to http://github.com/cv/git-utils :)
lowessNormalization <- function(x, y, include = TRUE, line = NULL,
...) {
isFinite <- (is.finite(x) & is.finite(y))
if (any(isFinite)){
if (is.null(line)) {
line <- lowess(x[isFinite & include], y[isFinite &
include], ...)
}
y[isFinite] <- y[isFinite] - approx(line, xout = x[isFinite],
ties = mean)$y
lowessNormalization <- function(x, y, include = TRUE, line = NULL,
...) {
isFinite <- (is.finite(x) & is.finite(y))
if (any(isFinite)){
if (is.null(line)) {
line <- lowess(x[isFinite & include], y[isFinite &
include], ...)
}
y[isFinite] <- y[isFinite] - approx(line, xout = x[isFinite],
ties = mean)$y
@PhilGeek
PhilGeek / README.markdown
Created July 22, 2008 11:21
LaTeX preamble and associated scripts

README

LaTeX Preamble

Created by Mark Eli Kalderon on 2008-07-30

Introduction

LaTeX preamble and associated files. Meant to be used as a submodule of a Git repository. The file, preamble.tex, needs to be included in the LaTeX document under version control. See the provided template. For more information about keeping your LaTeX preamble in a Git submodule see this blog post.

@THC4k
THC4k / gist:844
Created July 22, 2008 11:26
Numpy != Python
import os, os.path
import sys, time, re, shutil
from subprocess import Popen, PIPE
from threading import Thread
from traceback import print_exc
"""The greatest Warez-Unpacking tool of all times!"""
## stuff to set
RARPATH = "C:/Programme/WinRAR/rar.exe"