Skip to content

Instantly share code, notes, and snippets.

View mdavis95's full-sized avatar

Matthew Davis mdavis95

  • Ascendant Software Technology
  • Maryland
View GitHub Profile
@mdavis95
mdavis95 / test.xml
Last active December 7, 2018 21:34
pmc affilation.xml
<aff id="Aff1">
<label>1</label>
<institution-wrap>
<institution-id institution-id-type="ISNI">0000 0001 0481 6099</institution-id>
<institution-id institution-id-type="GRID">grid.5012.6</institution-id>
<institution>Alzheimer Centrum Limburg, </institution>
<institution>Maastricht University, </institution>
</institution-wrap>Maastricht, the Netherlands
</aff>
<aff id="Aff2">
iteration 0: shift 326660.53323412564
iteration 1: shift 94259.10172545548
iteration 2: shift 56197.9495302406
iteration 3: shift 52334.03332636276
iteration 4: shift 49295.82876277075
iteration 5: shift 43768.93700952554
iteration 6: shift 46997.62943765168
iteration 7: shift 39130.03475373644
iteration 8: shift 35194.75152447719
iteration 9: shift 35578.65471037449
@mdavis95
mdavis95 / PKGBUILD
Created December 21, 2017 20:11
MongoDB 3.6 Arch Linux PKGBUILD
# $Id$
# Maintainer: Felix Yan <felixonmars@archlinux.org>
# Contributor: Sven-Hendrik Haase <sh@lutzhaase.com>
# Contributor: Thomas Dziedzic < gostrc at gmail >
# Contributor: Mathias Stearn <mathias@10gen.com>
# Contributor: Alec Thomas
pkgname=mongodb
pkgver=3.6.0
pkgrel=1
"operation": {
"operationType": "nlp",
"fields": [
{
"field": "title",
"type": "freeText"
},
{
"field": "condition",
"type": "contextSpecific",
@mdavis95
mdavis95 / gist:199bc3c9425e457767ea0aad2f5fef57
Last active April 19, 2017 00:03
unmatched organizations
Ethicon, Inc
GTC Biotherapeutics, Inc
Gen-Probe, Inc
Instituto Bioclon, S.A. de C.V.
JHP Pharmaceuticals, LLC
Kedrion Biopharmaceuticals, SpA
LifeSouth Community Blood Centers, Inc.
MacoProductions S.A.S.
Maxim Biomedical, Inc
Mekos Laboratories AS
SearchWebappSearch searchWebappSearch = new SearchWebappSearch();
searchWebappSearch.setPortfolioId(portfolio.getId().toString());
ServiceProvider.get().getSearchService().saveSearch(MushroomState.getMushroomId(), searchWebappSearch, new AsyncCallback<String>() {
@Override
public void onFailure(Throwable caught) {
BootstrapNotifyUtil.showFailure("Failed to save search.", caught);
}
@Override
public void onSuccess(String result) {
git clone git@github.com:lumongo/lumongo.git
cd lumongo
./gradlew
cd deploy
//edit mongo and cluster config if needed
./clusteradmin.sh --command createCluster --mongoConfig mongo.properties --clusterConfig cluster.properties
./clusteradmin.sh --command registerNode --mongoConfig mongo.properties --nodeConfig node.properties
./startnode.sh --mongoConfig mongo.properties
public abstract class PieChart extends Highcharts implements PointClickHandler {
public PieChart(Integer height) {
super(height);
}
public void setPieChartData(Map<String, Integer> pieChartData, String dataLabel) {
HighchartsOptions highchartsOptions = getPieChartData(pieChartData, dataLabel);
@mdavis95
mdavis95 / designer.html
Last active February 20, 2016 22:03
designer
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-input/core-input.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: relative;
@mdavis95
mdavis95 / gist:6a33affe0509b26d9cdc
Created April 2, 2015 13:09
U.S. Manual of Classification File Example
435006170 3 16006100Involving a nucleic acid encoding a receptor, cytokine, hormone, growth factor, ion channel protein, or membrane transporter protein
435006180 3 17006100Involving a nucleic acid encoding an enzyme
435006190 3 18006100Detecting nucleic acid by specific antibody, protein or ligand-receptor binding assay
435007100 2 19004000Involving antigen-antibody binding, specific binding protein assay or specific ligand-receptor binding assay
435007200 3 20007100Involving a micro-organism or cell membrane bound antigen or cell membrane bound receptor or cell membrane bound antibody or microbial lysate
435007210 4 21007200Animal cell
435007220 5 22007210Parasite or protozoa
435007230 5 23007210Tumor cell or cancer cell