Skip to content

Instantly share code, notes, and snippets.

@nkrumm
nkrumm / Untitled.ipynb
Created August 24, 2023 22:24
AI decorator Idea
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@nkrumm
nkrumm / codesample.rst
Last active August 10, 2022 22:25 — forked from nhoffman/codesample.rst
Python code sample

Web app code sample

We're looking for a full-stack web/applications developer who can build solutions for our laboratories and bioinformatics teams. One useful way for us to get a sense for your skill in these areas is in the form of a working code sample. Here's what should be a fairly straightforward exercise:

  • Build a simple web page that performs a web BLAST query against nt
@nkrumm
nkrumm / multi-git-remote.sh
Created April 15, 2020 18:43
Add multiple git remotes
git remote add all git@gitlab.labmed.uw.edu:nkrumm/demux-nf.git
git remote set-url --add --push all git@gitlab.labmed.uw.edu:nkrumm/demux-nf.git
git remote set-url --add --push all https://github.com/nkrumm/demux-nf
git push -u all master
# now `git push` will update both remotes!
@nkrumm
nkrumm / Dockerfile
Created April 14, 2020 20:57
bwa-alignment dockerfile
FROM biocontainers/bwa:v0.7.17-3-deb_cv1
USER root
ENV DEBIAN_FRONTEND noninteractive
# seqtk
RUN apt-get update && (apt-get install -t buster-backports -y seqtk || apt-get install -y seqtk) && apt-get clean && apt-get purge && rm -rf /var/lib/apt/lists/* /tmp/*
# samtools
@nkrumm
nkrumm / gist:b229d790840d85b14bba0a1b4006c184
Created February 7, 2020 20:32
Fix virtualenv after upgrading python
find ~/.virtualenvs/my-virtual-env/ -type l -delete
virtualenv ~/.virtualenvs/my-virtual-env
@nkrumm
nkrumm / NCGL-Sample-Tube.label
Created September 5, 2019 17:27
NCGL Label Format
<?xml version="1.0" encoding="utf-8"?>
<DieCutLabel Version="8.0" Units="twips" MediaType="Default">
<PaperOrientation>Portrait</PaperOrientation>
<Id>LargeShipping</Id>
<PaperName>30256 Shipping</PaperName>
<DrawCommands>
<RoundRectangle X="5000" Y="5000" Width="10" Height="10" Rx="270" Ry="270"/>
<RoundRectangle X="410" Y="410" Width="1400" Height="720" Rx="180" Ry="180"/>
<RoundRectangle X="2100" Y="500" Width="500" Height="500" Rx="270" Ry="270"/>
</DrawCommands>
@nkrumm
nkrumm / test.applescript
Last active May 26, 2023 16:48
Label Printer Driver Script
(*
DYMO Label Software v8 SDK
This example demonstrates how to create an address label from scratch by adding a new Address Object and setting its attributes.
*)
on SplitString(TheBigString, fieldSeparator)
tell AppleScript
import dash
import dash_html_components as html
import dash_core_components as dcc
from dash.dependencies import Input, Output, State, Event
app = dash.Dash()
app.config.supress_callback_exceptions=True
app.layout = html.Div([
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@nkrumm
nkrumm / gist:0a16ab03b4c14de5a666
Created May 15, 2015 19:09
Ipython autoreload
%load_ext autoreload
%autoreload 1
%aimport MyModule