Skip to content

Instantly share code, notes, and snippets.

View nerdstrike's full-sized avatar

Kieron Taylor nerdstrike

View GitHub Profile
@nerdstrike
nerdstrike / annotated_function_central.json
Last active April 23, 2021 11:02
Resource specifications in npg_seq_pipeline graph
{
"graph" : {
"label" : "NPG sequence pipeline job dependency graph",
"metadata": { "description": "Perhaps we could put pipeline defaults here?" },
"edges" : [...],
"nodes" : [
{
"id" : "pipeline_start",
"label" : "pipeline_start",
"metadata": {
@nerdstrike
nerdstrike / not_good.py
Created January 15, 2020 17:04
A one-file graphql server
import ariadne
from ariadne import QueryType, ObjectType, UnionType
import pymongo
from aiodataloader import DataLoader
from collections import defaultdict
config = {
'host': 'IPADDRESS',
'port': 'PORT',
'user': 'USER',
@nerdstrike
nerdstrike / Elasticsearch.pm
Last active January 11, 2019 15:41
Why no authenticate?
package Catalyst::Authentication::Store::ElasticSearch;
use strict;
use warnings;
use Moose;
use MooseX::NonMoose;
use Catalyst::Exception;
use Catalyst::Authentication::Store::ElasticSearch::User; # The default user storage class