Skip to content

Instantly share code, notes, and snippets.

View alex-wilmer's full-sized avatar

Alex Wilmer alex-wilmer

View GitHub Profile
@alex-wilmer
alex-wilmer / adv-lecture-npm.md
Last active March 16, 2018 23:32
Publishing your own npm packages

Publishing npm packages

Giving back to the open source community is rite of passage for every developer and npm is a great ecosystem for taking that leap. You don't need something worth sharing to get started though, you simply need to follow a few easy steps. We'll assume you're starting a "new" package, though in most cases packages are derived from existing applications.

  1. Have a public git repostory where your source code and documentation will reside.
  2. Create a folder for your package: mkdir my-package && cd my-package
  3. Initialize a local git repo and sync it up: git init && git remote add origin git@github.com:User/UserRepo.git
  4. Initialize an npm package with npm init. Follow the instructions on the prompt, remembering a few key things:
  • The package name needs to be unique! You can check if the name is taken by running npm view
PUT case/case/3
{
"case_id": "65bb7520-f055-43a8-b735-1152fa2c9e04",
"updated_datetime": "2017-01-20T04:38:58.279242+00:00",
"primary_site": "Colorectal",
"portion_ids": [
"c2e0f59f-1736-40ca-8403-8deaffa5cb89",
"af36cafa-32f2-4381-9935-5f2da50dab11"
],
"disease_type": "Colon Adenocarcinoma",
PUT gdc_from_graph
{
"settings": {
"analysis": {
"filter": {
"edge_ngram": {
"min_gram": "1",
"side": "front",
"type": "edge_ngram",
PUT case_centric
{
"mappings": {
"case_centric": {
"_all": {
"enabled": false
},
"_source": {
"excludes": [
<html>
<head><title>Fuzzy Search</title>
<script id="algorithm">
// YOUR CODE HERE !
</script>
@alex-wilmer
alex-wilmer / introPython.py
Created June 26, 2016 17:51 — forked from mandrewstuart/introPython.py
This is a 20-minute introduction to the Python programming language for a talk given at Lighthouse Labs in 2016.
#http://bit.ly/28VdHva
##########
#VARIABLES
##########
#numbers
a = 3 #float, int, and long
#strings
b = 'ha '
// Import React
import React from "react";
// Import Spectacle Core tags
import {
Appear,
BlockQuote,
Cite,
CodePane,
Deck,
@alex-wilmer
alex-wilmer / asd
Last active October 21, 2015 00:10
asdasdasd
asd
/*
* Your Stylesheet
*
* This stylesheet is loaded when Atom starts up and is reloaded automatically
* when it is changed and saved.
*
* Add your own CSS or Less to fully customize Atom.
* If you are unfamiliar with Less, you can read more about it here:
* http://lesscss.org
*/