Skip to content

Instantly share code, notes, and snippets.

View sullivan-'s full-sized avatar

John Sullivan sullivan-

View GitHub Profile
@leetreveil
leetreveil / start-mongo-replset.sh
Last active December 8, 2023 06:34
Shell scripts to create a mongodb replica set and sharded cluster locally
#!/bin/bash
# shell script to create a simple mongodb replica set (tested on osx)
set -e
red=$(tput setaf 1)
green=$(tput setaf 2)
yellow=$(tput setaf 3)
default=$(tput sgr0)
@doxxx
doxxx / gist:5459937
Last active December 16, 2015 15:59
trait FreshProducer[T] {
def fresh(): T
}
class Foo {
override def toString = "Foo!"
}
implicit object FooProducer extends FreshProducer[Foo] {
def fresh() = new Foo
package org.broadinstitute.toolkit
package core.domain.analysis
/**
* Maintains sequences of singleton column view policies by the policy
* type. Also contains the composite column view policy that is used by
* default in an analysis.
*/
object ColumnViewPolicy {