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
/** | |
* Loads a module with the means to inject mocks. | |
* Usage: | |
* module = require('module-name'); // old and busted | |
* module = loadModule('/path/to/module-name.js', { // new hotness | |
* 'mocked-module-name': {} | |
* }); | |
* | |
* Thanks to: http://howtonode.org/testing-private-state-and-mocking-deps | |
* |
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
// | |
// Note.swift | |
// Example Notes | |
// | |
// Created by Michael Enger on 21/06/14. | |
// Copyright (c) 2014 Michael Enger. All rights reserved. | |
// | |
import UIKit | |
import CoreData |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
# The box (VM image) to use. vagrantcloud.com has a list of possible ones, but I'm a Debian/Ubuntu guy. | |
config.vm.box = "nfq/wheezy" |
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 python | |
# We're using the sys and re modules | |
import sys | |
import re | |
# This is the function which will do our replacing | |
def modify_fasta_headers(inpath, outpath): | |
# Open the in and out files | |
infile = open(inpath, "r") |