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] |
In the mid-80s, while reading through my roommate's collection of Scientific American back issues, I encountered this introduction to Lisp written by Douglas Hofstadter. I found it very charming at the time, and provide it here (somewhat illegally) for the edification of a new generation of Lispers.
In a testament to the timelessness of Lisp, you can still run all the examples below in emacs if you install these aliases:
(defalias 'plus #'+)
(defalias 'quotient #'/)
(defalias 'times #'*)
(defalias 'difference #'-)| #!/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 |