Skip to content

Instantly share code, notes, and snippets.

from pprint import pprint
import sqlalchemy
from sqlalchemy import Column, Integer, String
from sqlalchemy import create_engine
engine = create_engine('sqlite:///:memory:', echo=True)
from sqlalchemy.ext.declarative import declarative_base
Base = declarative_base()
---
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: nfs-cscratch-claim1
annotations:
volume.beta.kubernetes.io/storage-class: "slow"
spec:
accessModes:
- ReadWriteMany
@serverhorror
serverhorror / Makefile
Created September 29, 2016 19:13
acbuild.acbuild
all: clean aci run
run:
rkt --insecure-options=image run acbuild-0.4.0-linux-amd64.aci
clean:
rm -f acbuild-0.4.0-linux-amd64.aci
.ONESHELL:
SHELL = /bin/bash
BEGIN;
DROP TABLE IF EXISTS master CASCADE;
CREATE TABLE master(
id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
value real
);
DROP TABLE IF EXISTS subordinate CASCADE;
CREATE TABLE subordinate (
--- table.column is a primary key in table
--- othertable.column references table.column
waiting_locktype | relation
waiting_table | gene
waiting_query | explain SELECT * FROM table WHERE column LIKE 'value%'
| ;
waiting_mode | AccessShareLock
waiting_pid | 25971
other_locktype | relation
loglevel= "DEBUG"
#defaultEntryPoints = ["http", "https"]
defaultEntryPoints = ["http"]
[web]
address = ":8181"
[entryPoints]
[entryPoints.http]
address = ":8080"
# Go! Why don't you use my version?
## WRONG: go run -ldflags="-X commonFlagTest.version='my-uber-version'" cmd/flagtest/main.go -version
go run -ldflags="-X github.com/serverhorror/commonFlagTest.versionString='$(TZ=UTC date '+%FT%T.%N%:z')'" cmd/flagtest/main.go -version
diff --git a/Makefile b/Makefile
index 0c59ef0..dd9570f 100644
--- a/Makefile
+++ b/Makefile
@@ -25,20 +25,6 @@ homer2 homer getMappableRegions makeTagDirectory getPeakTags makeUCSCfile getDif
$(COMPILER) analyzeHiC.o SeqTag.o Motif2.o Clustering.o Hashtable.o statistics.o $(LIBRARIES) $(DEBUG) -o analyzeHiC
$(COMPILER) getGenomeCorrelation.o SeqTag.o Motif2.o Clustering.o Hashtable.o statistics.o $(LIBRARIES) $(DEBUG) -o getGenomeTilingPeaks
$(COMPILER) homer2.o Motif2.o Hashtable.o statistics.o $(LIBRARIES) $(DEBUG) -o homer2
- cp findPeaks ../bin/
- cp mergePeaks ../bin/
FROM fedora:22
MAINTAINER Daniel Gerlach
COPY example_speedseq_install.sh ....
RUN example_spee.....
$ time R --no-save --no-restore
R version 3.2.0 (2015-04-16) -- "Full of Ingredients"
Copyright (C) 2015 The R Foundation for Statistical Computing
Platform: x86_64-unknown-linux-gnu (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.