Skip to content

Instantly share code, notes, and snippets.

View denisemauldin's full-sized avatar

Denise Mauldin denisemauldin

  • Noteworth
  • Seattle, WA
View GitHub Profile
@denisemauldin
denisemauldin / test_seek.pl
Created June 1, 2012 23:27
Perl Filehandle problem
use IO::File;
use IO::Seekable;
use Data::Dumper;
use strict;
use warnings;
my @files = qw( test_input.txt);
my @fileHndls;
foreach my $file (@files) {
@denisemauldin
denisemauldin / test_input.txt
Created June 1, 2012 23:29
Input file for test_seek.pl
This file has been truncated, but you can view the full file.
1 2 all chr1
2 2 all chr1
3 2 all chr1
4 2 all chr1
5 2 all chr1
6 2 all chr1
7 2 all chr1
8 2 all chr1
9 2 all chr1
10 2 all chr1
class User < ActiveRecord::Base
has_many :study_groups
has_many :studies, :through => :study_groups
has_many :roles, :through => :user_roles
def admin
true if self.roles.include?("admin")
end
def manager
var userRef = new Firebase("https://shining-fire-453.firebaseio.com/users");
userRef.child(authData.uid).once("value",function(snapshot) {
console.log("snapshot in userREf",snapshot);
var fullName = snapshot.val().name;
console.log("fullname",fullName);
var displayName = fullName.split(' ');
localStorage.setItem("firstName", displayName[0]);
//redirect to user-enabled home page
console.log("welcome back, welcome back, welcoooome baack...");
require 'optparse'
namespace :schedule do |args|
desc "Create schedule entries for recurring events"
task :create_recurring => :environment do
options = {}
optparse = OptionParser.new(args) do |opts|
opts.on("--from_date {from_date}", "Date to start creating Schedules") do |from_date|
options[:from_date] = from_date
end
opts.on("-e", "--event_id {event_id}", "Event to create Schedules for") do |event_id|
@denisemauldin
denisemauldin / VCF_examples
Created October 30, 2015 00:02
Examples for bcftools error message.
##fileformat=VCFv4.1
##FILTER=<ID=PASS,Description="All filters passed">
##contig=<ID=chrY,length=59373566,assembly=B37,md5=1e86411d73e6f00a10590f976be01623,species="Homo sapiens">
##contig=<ID=chrM,length=16569,assembly=B37,md5=c68f52674c9fb33aef52dcf399755519,species="Homo sapiens">
##FORMAT=<ID=GT,Number=1,Type=String,Description="Genotype">
##FORMAT=<ID=HQ,Number=2,Type=Integer,Description="Haplotype Quality">
##FORMAT=<ID=GQX,Number=1,Type=Integer,Description="Minimum of {Genotype quality assuming variant position,Genotype quality assuming non-variant position}">
##FORMAT=<ID=GQ,Number=1,Type=Integer,Description="Genotype Quality">
##FORMAT=<ID=EHQ,Number=2,Type=Integer,Description="Haplotype Quality, Equal Allele Fraction Assumption">
##INFO=<ID=AN,Number=1,Type=Integer,Description="Total number of alleles in called genotypes">
@denisemauldin
denisemauldin / gist:835f58b4efe32e7a1311
Created December 9, 2015 01:02
bcftools merge 3rd sample missing
##fileformat=VCFv4.1
##FILTER=<ID=PASS,Description="All filters passed">
##FILTER=<ID=LowGQX,Description="Locus GQX is less than 30 or not present">
##FILTER=<ID=HighDPFRatio,Description="The fraction of basecalls filtered out at a site is greater than 0.3">
##FILTER=<ID=nc,Description="No-call">
##contig=<ID=chrY,length=59373566,assembly=B37,md5=1e86411d73e6f00a10590f976be01623,species="Homo sapiens">
##contig=<ID=chrM,length=16569,assembly=B37,md5=c68f52674c9fb33aef52dcf399755519,species="Homo sapiens">
##FORMAT=<ID=GT,Number=1,Type=String,Description="Genotype">
##FORMAT=<ID=HQ,Number=2,Type=Integer,Description="Haplotype Quality">
##FORMAT=<ID=GQX,Number=1,Type=Integer,Description="Minimum of {Genotype quality assuming variant position,Genotype quality assuming non-variant position}">
@denisemauldin
denisemauldin / systemjs.config.js
Created May 2, 2017 06:12
System JS configuration for JointJS, Dagre, JQuery, Graphlib, Lodash 3.10.1 and Backbone 1.3.3.
(function () {
System.config({
// map tells the System loader where to look for things
map: {
'app': '/static/app',
// angular bundles
'@angular/core': '/static/libs/@angular/core/bundles/core.umd.js',
'@angular/common': '/static/libs/@angular/common/bundles/common.umd.js',
'@angular/compiler': '/static/libs/@angular/compiler/bundles/compiler.umd.js',
# -*- mode: ruby -*-
# vi: set ft=ruby :
#
# Expects either a setup.yml file or a command line parameter for the github_ssh_key
require 'getoptlong'
def provisioned?(vm_name='default', provider='virtualbox')
File.exist?(".vagrant/machines/#{vm_name}/#{provider}/action_provision")
end
@denisemauldin
denisemauldin / index.html
Created June 29, 2017 15:38
d3 v4 topojson clickable map
<!DOCTYPE html>
<style>
.counties :hover {
fill: red;
}
.county-borders {
fill: none;
stroke: #fff;