Skip to content

Instantly share code, notes, and snippets.

Avatar
🙃
Pro

Danny Hinshaw DannyHinshaw

🙃
Pro
View GitHub Profile
View test-data.ts
export const AFINITOR = [{
"TherapyContinuation_Plan": 173547,
"ProductName": "Afinitor",
"RxDed": 500,
"Month11_Patient": 500,
"Lives": 26088,
"TherapyInitiation_Patient": 1000,
"DrugTier": "4",
"MedDed": 6300,
"DedType": "Pharmacy",
View async-pool-log.md
userCodeAppPanel:41211 perf::testPooledAsync::18::Finished in 901 milliseconds
userCodeAppPanel:41211 perf::testPooledAsync::31::Finished in 924 milliseconds
userCodeAppPanel:41211 perf::testPooledAsync::17::Finished in 1093 milliseconds
userCodeAppPanel:41211 perf::testPooledAsync::32::Finished in 1092 milliseconds
userCodeAppPanel:41211 perf::testPooledAsync::46::Finished in 1093 milliseconds
userCodeAppPanel:41211 perf::testPooledAsync::43::Finished in 1093 milliseconds
userCodeAppPanel:41211 perf::testPooledAsync::37::Finished in 1095 milliseconds
userCodeAppPanel:41211 perf::testPooledAsync::14::Finished in 1097 milliseconds
userCodeAppPanel:41211 perf::testPooledAsync::11::Finished in 1102 milliseconds
View screener-roadmap.md

Screener(er) and beyond

  • Mercury
  • Venus
  • Earth (Orbit/Moon)
  • Mars
  • Jupiter
  • Saturn
  • Uranus
  • Neptune
View troubles.go
// crypto.go
package crypto
import (
"crypto/aes"
"crypto/cipher"
"crypto/rand"
"encoding/base64"
"encoding/hex"
"errors"
View simple-https-server.py
# taken from http://www.piware.de/2011/01/creating-an-https-server-in-python/
# generate server.pem with the following command:
# openssl req -new -x509 -keyout key.pem -out server.pem -days 365 -nodes
# run as follows:
# python simple-https-server.py
# then in your browser, visit:
# https://localhost:4443
import http.server
View franc.js
!function(b,a){typeof exports==='object'&&typeof module!=='undefined'?module.exports=b():typeof define==='function'&&define.amd?define([],b):(typeof window!=='undefined'?a=window:typeof global!=='undefined'?a=global:typeof self!=='undefined'?a=self:a=this,a.franc=b())}(function(){return function(){function a(b,c,e){function f(d,k){if(!c[d]){if(!b[d]){var i='function'==typeof require&&require;if(!k&&i)return i(d,!0);if(g)return g(d,!0);var j=new Error("Cannot find module '"+d+"'");throw j.code='MODULE_NOT_FOUND',j}var h=c[d]={exports:{}};b[d][0].call(h.exports,function(a){var c=b[d][1][a];return f(c||a)},h,h.exports,a,b,c,e)}return c[d].exports}for(var g='function'==typeof require&&require,d=0;d<e.length;d++)f(e[d]);return f}return a}()({1:[function(b,a,c){a.exports={Latin:{spa:' de|os |de | la|la | y | a |es |ón |ión|rec|ere|der| co|e l|el |en |ien|cho|ent|ech|ció|aci|o a|a p| el|a l|al |as |e d| en|na |ona|s d|da |nte| to|ad |ene|con| pr| su|tod| se|ho |los| pe|per|ers| lo|o d| ti|cia|n d|cio| es|ida|res|a t
@DannyHinshaw
DannyHinshaw / watch.sh
Created Sep 20, 2018
Watchman issues on Ubuntu with create-react-app ('ENOSPC: no space left on device')
View watch.sh
sudo sysctl -w fs.inotify.max_user_instances=1024
sudo sysctl -w fs.inotify.max_user_watches=12288
@DannyHinshaw
DannyHinshaw / docker-nuke.sh
Created May 8, 2018
For when docker is all messed up and you need a clean slate... run with caution.
View docker-nuke.sh
docker volume rm $(docker volume ls -q)
docker stop $(docker ps -aq)
docker rm $(docker ps -aq)
docker rmi $(docker images -q)
docker volume rm $(docker volume ls -q)
You can’t perform that action at this time.