This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.
To capture the video (filesize: 19MB), using the free "QuickTime Player" application:
#!/bin/bash | |
# get the absolute path of the executable | |
SELF_PATH=$(cd -P -- "$(dirname -- "$0")" && pwd -P) && SELF_PATH=$SELF_PATH/$(basename -- "$0") | |
# resolve symlinks | |
while [ -h $SELF_PATH ]; do | |
# 1) cd to directory of the symlink | |
# 2) cd to the directory of where the symlink points | |
# 3) get the pwd |
\documentclass{elsarticle} | |
%% Redefines the elsarticle footer | |
\makeatletter | |
\def\ps@pprintTitle{% | |
\let\@oddhead\@empty | |
\let\@evenhead\@empty | |
\def\@oddfoot{\it \hfill\today}% | |
\let\@evenfoot\@oddfoot} | |
\makeatother |
#!/usr/bin/Rscript | |
library(tools) | |
library(knitr) | |
library(sowsear) | |
opts_knit$set(progress = FALSE, verbose = FALSE) | |
## We need a list of files and a package to start. | |
args <- commandArgs(TRUE) | |
package <- args[[1]] | |
files <- args[-1] |
#!/bin/bash | |
USERNAME=icaoberg | |
#to kill all the jobs | |
qstat -u$USERNAME | grep "$USERNAME" | cut -d"." -f1 | xargs qdel | |
#to kill all the running jobs | |
qstat -u$USERNAME | grep "R" | cut -d"." -f1 | xargs qdel |
People
![]() :bowtie: |
😄 :smile: |
😆 :laughing: |
---|---|---|
😊 :blush: |
😃 :smiley: |
:relaxed: |
😏 :smirk: |
😍 :heart_eyes: |
😘 :kissing_heart: |
😚 :kissing_closed_eyes: |
😳 :flushed: |
😌 :relieved: |
😆 :satisfied: |
😁 :grin: |
😉 :wink: |
😜 :stuck_out_tongue_winking_eye: |
😝 :stuck_out_tongue_closed_eyes: |
😀 :grinning: |
😗 :kissing: |
😙 :kissing_smiling_eyes: |
😛 :stuck_out_tongue: |
# Helper functions that allow string arguments for dplyr's data modification functions like arrange, select etc. | |
# Author: Sebastian Kranz | |
# Examples are below | |
#' Modified version of dplyr's filter that uses string arguments | |
#' @export | |
s_filter = function(.data, ...) { | |
eval.string.dplyr(.data,"filter", ...) | |
} |
From http://www.darkcoding.net/software/cleaning-up-old-git-branches/
Switch to the main branch, usually 'develop':
git checkout develop
Get a list of fully merged branches:
library(limma) | |
library(Matrix) | |
## Create the experimental variables and put them in a data frame | |
animal <- factor(rep(sprintf("Animal %s", 1:6), each=2)) | |
timep <- factor(c("Pre", "Post"), levels=c("Pre", "Post")) | |
treat <- factor(c("control", "control", "reagent", "reagent")) | |
df <- data.frame(animal, timep, treat) | |
df$replicate <- as.numeric(droplevels(df$animal:df$timep:df$treat)) | |
## Create technical replicates by duplicating each row |
A simple Ghostscript command to merge two PDFs in a single file is shown below:
gs -dNOPAUSE -sDEVICE=pdfwrite -sOUTPUTFILE=combine.pdf -dBATCH 1.pdf 2.pdf
Install Ghostscript:
Type the command sudo apt-get install ghostscript
to download and install the ghostscript package and all of the packages it depends on.