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 / build.gradle
Created July 3, 2014 01:32
forbidden-api gradle
apply plugin: 'java'
configurations {
forbiddenAntTask
}
repositories {
mavenCentral()
}
@mdavis95
mdavis95 / gist:b41d12ea907da74c3923
Created April 2, 2015 13:07
U.S. Patent Classification File Example
ZIRCONIUM 000000000000067829 1 1
ALLOYS ............................ 420422000000067830 3
COMPOUNDS 000000000000067831 3 1
ORGANIC ........................ 556051000000067832 +6
RECOVERY OF INORGANIC .......... 423069000000067833 6
REFRACTORY COMPOSITION ......... 501094000000067834 6
ELECTROLYTIC FUSED BATH ........... 205397000000067835 3
ELECTROLYTIC SYNTHESIS AQUEOUS BATH 205560000000067836 3
HEAT TREATMENT .................... 148672000000067837 3
PYROMETALLURGY .................... 075612000000067838 +3
@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
@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;
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);
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
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) {
@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
"operation": {
"operationType": "nlp",
"fields": [
{
"field": "title",
"type": "freeText"
},
{
"field": "condition",
"type": "contextSpecific",
@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