Skip to content

Instantly share code, notes, and snippets.

[tool.poetry]
name = "foo"
version = "0.2.0"
description = ""
authors = ["me and him"]
packages = [
{ include = "text2struct" }
]
[[tool.poetry.source]]
def twiddle(run, p, tol = 0.2): #Make this tolerance bigger if you are timing out!
############## ADD CODE BELOW ####################
dp = [1.0 for i in p]
best_err = run(p)
while sum(dp) > tol:
for i in range(len(p)):
p[i] += dp[i]
err = run(p)
if err < best_err:
best_err = err
sudo sh ~/Downloads/crouton -e -t xorg,xfce-desktop,x11,extension,core,cli-extra,chrome-beta,audio -r trusty

Docker Cheat Sheet

Why

Why Should I Care (For Developers)

"Docker interests me because it allows simple environment isolation and repeatability. I can create a run-time environment once, package it up, then run it again on any other machine. Furthermore, everything that runs in that environment is isolated from the underlying host (much like a virtual machine). And best of all, everything is fast and simple."

TL;DR, I just want a dev environment

@timothyjlaurent
timothyjlaurent / Qsub Indexing scheme
Created August 15, 2013 23:45
How to process arbitrarily named files with Sun Grid Engine. Prior to this I would rename the files something numeric so that Q SUb could detect it... This was also very annoying because SGE doesn't like prepending 0's... This gets around all of that and allowing you to process any pattern of files with SGE without renaming
cd ${fastaDir}
fs=(`ls *.fa`)
i=$(expr ${SGE_TASK_ID} - 1)
f=${fs[$i]}
process $f