Skip to content

Instantly share code, notes, and snippets.

@jlanej
jlanej / timelapse.sh
Created September 28, 2022 00:42 — forked from antarktikali/timelapse.sh
Create a smooth timelapse video from given images using imagemagick and ffmpeg
#!/bin/bash
mkdir new_frames
cp IMG_2985.JPG new_frames/previous.jpg
cd new_frames
counter=0
for f in ../IMG_*.JPG
do
for i in {0..20}
do
@jlanej
jlanej / BCFtools cheat sheet
Created October 1, 2021 18:05 — forked from elowy01/BCFtools cheat sheet
BCFtools cheat sheet
*bcftools filter
*Filter variants per region (in this example, print out only variants mapped to chr1 and chr2)
qbcftools filter -r1,2 ALL.chip.omni_broad_sanger_combined.20140818.snps.genotypes.hg38.vcf.gz
*printing out info for only 2 samples:
bcftools view -s NA20818,NA20819 filename.vcf.gz
*printing stats only for variants passing the filter:
bcftools view -f PASS filename.vcf.gz
#!/usr/bin/env bash
help() {
if [[ ! -z "$1" ]]
then
echo "Error: $1"
trap 'exit 1' RETURN
fi
cat <<EOF
@jlanej
jlanej / gh-clonepullrequests
Created December 3, 2019 03:58 — forked from meowsbits/gh-clonepullrequests
Clone Github Pull Requests.
#!/usr/bin/env bash
help() {
if [[ ! -z "$1" ]]
then
echo "Error: $1"
trap 'exit 1' RETURN
fi
cat <<EOF
#cleanup
outDir="/scratch.global/lanej/aric_raw/fullSraPipeline/"
#rm -r $outDir"bams"
#rm -r $outDir"completes"
#rm -r $outDir"unmapped"
#rm -r $outDir"telseq"
rm -r $outDir"process"
#rm -r $outDir"mtDNACN"
rm -r $outDir"batches"
@jlanej
jlanej / gist:9f3abb0c7c5507e29f6bcbb35fd5577c
Created November 19, 2016 02:01 — forked from ismasan/gist:3804361
async fetching of urls using goroutines and channels
package main
import (
"fmt"
"net/http"
"time"
)
var urls = []string{
"http://pulsoconf.co/",
package markerMaker
import (
"encoding/json"
"html/template"
"net/http"
"strings"
"appengine"
"appengine/datastore"

Keybase proof

I hereby claim:

  • I am jlanej on github.
  • I am jlanej (https://keybase.io/jlanej) on keybase.
  • I have a public key ASB041MUDsCLDdzig_W57Ptk_-Nq_kObMoRg3pZXQ5sRowo

To claim this, I am signing this object:

@jlanej
jlanej / 0_reuse_code.js
Created September 7, 2016 17:07
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console