This file contains hidden or 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 sys | |
| class Dog(): | |
| def __init__(self, name, barks=True, bites=True): | |
| self.name = name | |
| self.barks = barks | |
| self.bites = bites | |
| def bite(self, victim): |
This file contains hidden or 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 python3 | |
| """ | |
| Add sequences from a Fasta file to a GFA file. | |
| """ | |
| import argparse | |
| import sys | |
| import gfapy | |
| op = argparse.ArgumentParser(description=__doc__) |
This file contains hidden or 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
| namespace :db do | |
| namespace :mysql do | |
| desc "Overwrite the whole development db with a copy of the production db" | |
| task :init_dev do | |
| config = YAML.load(IO.read("config/database.yml")) | |
| d = config["development"] | |
| p = config["production"] | |
| unless d["adapter"] == "mysql" and |