A ZSH theme optimized for people who use:
- Solarized
- Git
- Unicode-compatible fonts and terminals (I use iTerm2 + Menlo)
For Mac users, I highly recommend iTerm 2 + Solarized Dark
<?xml version="1.0" encoding="UTF-8"?> | |
<scheme name="Blackbored" version="1" parent_scheme="Default"> | |
<option name="LINE_SPACING" value="1.25" /> | |
<option name="EDITOR_FONT_SIZE" value="12" /> | |
<option name="EDITOR_FONT_NAME" value="Monaco" /> | |
<colors> | |
<option name="ANNOTATIONS_COLOR" value="3e83e7" /> | |
<option name="CARET_COLOR" value="" /> | |
<option name="CARET_ROW_COLOR" value="40436" /> | |
<option name="CONSOLE_BACKGROUND_KEY" value="0" /> |
from django.db import models | |
from django.contrib.auth.models import User | |
from imagekit.models import ImageSpec | |
from imagekit.processors import resize, Adjust | |
from django.db.models.signals import post_save | |
from django.dispatch import receiver | |
from celery.task import task | |
from celery.execute import send_task |
require 'formula' | |
class Geos < Formula | |
url 'http://download.osgeo.org/geos/geos-3.3.1.tar.bz2' | |
homepage 'http://trac.osgeo.org/geos/' | |
md5 'b1ceefe205c9ee520b99f2b072c345f7' | |
def skip_clean? path | |
path.extname == '.la' | |
end |
import datetime | |
import simplejson | |
from pymongo.dbref import DBRef | |
from pymongo.objectid import ObjectId | |
class MongoEngineEncoder(simplejson.JSONEncoder): | |
"""Handles Encoding of ObjectId's""" |
#!/bin/sh | |
echo Install all AppStore Apps at first! | |
# no solution to automate AppStore installs | |
read -p "Press any key to continue... " -n1 -s | |
echo '\n' | |
echo Install and Set San Francisco as System Font | |
ruby -e "$(curl -fsSL https://raw.github.com/wellsriley/YosemiteSanFranciscoFont/master/install)" | |
echo Install Homebrew, Postgres, wget and cask | |
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)" |
brew install mutt
brew install terminal-notifier
terminal-notifiergem install imap_notifier
imap_notifierbrew install urlview
brew install w3m
(links
would be OK too)package akkahttptest | |
import akka.http.Http | |
import akka.stream.ActorFlowMaterializer | |
import akka.actor.ActorSystem | |
import akka.stream.scaladsl.{Sink, Source} | |
import akka.http.model._ | |
object TestClient extends App { |
# NCBI36 | |
wget ftp://ftp.ncbi.nlm.nih.gov/genomes/MapView/Homo_sapiens/sequence/BUILD.36.3/initial_release/seq_gene.md.gz -O - \ | |
| zcat | sort -t $'\t' -k 11,11 -k 2,2 > /tmp/hg18.seq_gene.sorted.md | |
mutalyzer-admin assemblies import-mapview -a hg18 /tmp/hg18.seq_gene.sorted.md 'reference' | |
mutalyzer-admin assemblies import-reference -a hg18 'NC_001807.4' | |
# GRCh37 | |
wget ftp://ftp.ncbi.nlm.nih.gov/genomes/MapView/Homo_sapiens/sequence/ANNOTATION_RELEASE.105/initial_release/seq_gene.md.gz -O - \ | |
| zcat | sort -t $'\t' -k 11,11 -k 2,2 > /tmp/hg19.seq_gene.sorted.md | |
mutalyzer-admin assemblies import-mapview -a hg19 /tmp/hg19.seq_gene.sorted.md 'GRCh37.p13-Primary Assembly' |