This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
doctype 5 | |
html -> | |
head -> | |
title 'Title' | |
meta name: 'viewport', content: "width:device-width, initial-scale:1.0" | |
meta name: 'description', content: "" | |
meta name: 'author', content: "" | |
link href: 'bootstrap/css/bootstrap.css', rel: 'stylesheet' | |
link href: 'bootstrap/css/bootstrap-responsive.css', rel: 'stylesheet' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Hello, this is Dog | |
------------------ | |
Lets talk about cells.*/ | |
// code cell | |
print(84); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
String file contents |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import redis | |
import inspect | |
class RedisPlugin(object): | |
name = 'redis' | |
def __init__(self,host='localhost',port=6379,database=0,keyword='rdb'): | |
self.host = host | |
self.port = port | |
self.database = database |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from lettuce import * | |
from fabric import api | |
from fabric.api import env | |
import socket | |
servers = { | |
'xxx.local': { | |
'ip': ' xxxx', | |
'roles': ['production'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Feature: Mail | |
In order to handle mail | |
Scenario: Mail relay | |
Given I am a production server | |
And I am not a mail server | |
Then I should have postfix installed | |
And I should have a mail relay to mail.example.org | |
Scenario: Mail server |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
d = Doc() | |
with d.html: | |
with d.head: | |
d.title ('example page') | |
d.link (rel='stylesheet', href='/style.css', type='text/css') | |
with d.body (style='foo'): | |
d.a ('other stuff on another page', href='/other.html') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
A really stupid python template language inspired by coffeekup, markaby. | |
Do not use this code, it will ruin your day. A byproduct of insomnia. | |
TL;DR | |
----- | |
This module defines a template language that allows us to do: | |
d = Doc() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" Melt a VCF file into a tab delimited set of calls, one per line | |
VCF files have all the calls from different samples on one line. This | |
script reads vcf on stdin and writes all calls to stdout in tab delimited | |
format with one call in one sample per line. This makes it easy to find | |
a given sample's genotype with, say, grep. | |
""" | |
import sys |