Skip to content

Instantly share code, notes, and snippets.

View CBSti's full-sized avatar

Christoph Stiehm CBSti

  • Göttingen, Germany
View GitHub Profile
@jtoll
jtoll / sourceGist.r
Created November 8, 2012 21:58
Source a Gist from R
# Example: Easily source a Gist from R using devtools
# 1) install devtools
if (!("devtools" %in% installed.packages()[, 1])) {
install.packages("devtools")
}
# 2) source
# library(devtools)
# source_gist("https://gist.github.com/4041561")
@rob-murray
rob-murray / add_intellij_launcer
Last active July 16, 2024 23:43
Add Intellij launcher shortcut and icon for ubuntu
// create file:
sudo vim /usr/share/applications/intellij.desktop
// add the following
[Desktop Entry]
Version=13.0
Type=Application
Terminal=false
Icon[en_US]=/home/rob/.intellij-13/bin/idea.png
Name[en_US]=IntelliJ
@mick001
mick001 / logistic_regression.R
Last active June 14, 2024 07:59
Logistic regression tutorial code. Full article available at http://datascienceplus.com/perform-logistic-regression-in-r/
# Load the raw training data and replace missing values with NA
training.data.raw <- read.csv('train.csv',header=T,na.strings=c(""))
# Output the number of missing values for each column
sapply(training.data.raw,function(x) sum(is.na(x)))
# Quick check for how many different values for each feature
sapply(training.data.raw, function(x) length(unique(x)))
# A visual way to check for missing data
@atomfrede
atomfrede / plugin.properties
Last active March 20, 2019 14:17
SSJ Plugin for GroIMP
pluginName = SSJ Functions
provider = com.github.cbsti
thirdparty.list = ssj
thirdparty.ssj.Name = SSJ: Stochastic Simulation in Java 2.6
thirdparty.ssj.Copy = Copyright (C) 2008 Pierre L'Ecuyer and Université de Montréal
thirdparty.ssj.License = GPL
thirdparty.ssj.URL = http://www.iro.umontreal.ca/~simardr/ssj/indexe.html