Skip to content

Instantly share code, notes, and snippets.

View medelman17's full-sized avatar

Michael Edelman medelman17

View GitHub Profile
@medelman17
medelman17 / prisma-yoga-Dockerfile.yml
Created May 24, 2018 23:07
Dockerfile For AWS Compatible GraphQL Server
FROM amazonlinux:2
RUN rm /bin/sh && ln -s /bin/bash /bin/sh
RUN yum update -y && yum install -y \
apt-transport-https \
build-essential \
ca-certificates \
curl \
make \
@medelman17
medelman17 / .zpreztorc
Created August 4, 2019 10:58
Edelman iTerm2 Config
# Set case-sensitivity for completion, history lookup, etc.
zstyle ':prezto:*:*' case-sensitive 'yes'
# Color output (auto set to 'no' on dumb terminals).
zstyle ':prezto:*:*' color 'yes'
# Set the Prezto modules to load (browse modules).
# The order matters.
zstyle ':prezto:load' pmodule \
'environment' \
@medelman17
medelman17 / Context-Aware-RN-Apps-Abstract.md
Last active October 28, 2019 00:36
Abstract/Problem Statement re Building Context-Aware React Native Applications at Scale

Building Context-Aware React Native Applications at Scale

In 2001, Dey et al. described a hypothetical "conference assistant" application that was designed to enhance the individual experiences of conference attendees.[^Dey, Anind & Abowd, Gregory & Salber, Daniel. (2001). A Conceptual Framework and a Toolkit for Supporting the Rapid Prototyping of Context-Aware Applications. Human-Computer Interaction. 16. 10.1207/S15327051HCI16234_02.] The app would run on a "handheld device" that each attendee would be given upon arrival at the conference. Thereafter, the app would offer thoughtful guidance and assistance as each attendee progressed throughout the conference. For example, when an attendee would enter a presentation room, the app would display information about the session that was about to begin. This would include "information on the presenter, relevant URLs and the proceedings, page numbers of the papers being presented[,]" etc. It would also, inter alia, show "a thumbnail of the current slide and

@medelman17
medelman17 / bigdata-aboutfonts.ts
Created December 23, 2019 03:05
Download Every Google Font, Run Each Through OpenType.Js, Generate BIG JSON re Same
import fetch from 'node-fetch';
import fs from 'fs';
const opentype = require('opentype.js');
const API_KEY = `ENTER YOUR API KEY HERE`;
const API_URL = (key: string) =>
`https://www.googleapis.com/webfonts/v1/webfonts?key=${key}`;
const FONT_LIST_FILE = 'fonts/fontList.json';
@medelman17
medelman17 / machine.js
Created January 4, 2020 15:39
Generated by XState Viz: https://xstate.js.org/viz
const options = {
guards: {
shouldRetry: (context, event) => {
return context.retries < 4;
}
},
actions: {
incrementRetries: assign({
retries: (context, event) => context.retries + 1
@medelman17
medelman17 / machine.js
Last active January 7, 2020 15:50
Generated by XState Viz: https://xstate.js.org/viz
const photon = {
characters: {
create({data}) {
return new Promise((resolve, reject) => {
setTimeout(reject, 10)
})
}
}
}
@medelman17
medelman17 / machine.js
Created January 7, 2020 18:39
Generated by XState Viz: https://xstate.js.org/viz
const machine = getCharacterProcessor({ data: "dsfdsfsdfsdf", res: {} });
function createCharExtractor(context) {
return Machine(
{
id: "extractor",
initial: "idle",
context,
states: {
idle: {
@medelman17
medelman17 / machine.js
Created February 17, 2020 20:19
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@medelman17
medelman17 / blacks-dictionary.jsonl
Created December 1, 2020 16:20
Black's Legal Dictionary in JSONL format.
This file has been truncated, but you can view the full file.
{"title":"AUTOGRAPH","definition":"The handwriting of any one.","related":["EX SCRIPTIS OLIM VISIS","MAYN L","WILL HOLOGRAPHIC","IDENTIFICATION","HOLOGRAFO","EX VISU SCRIPTIONIS","ONOMASTIC","HANDWRITING EXPERT","BON FR","COMPARISON OF HANDWRITING"]}
{"title":"AUXILIUM REGIS","definition":"In English law. The king’s aid or money levied for the royal use and the public service, as taxes granted by parliament.","related":["BANCUS REGIS","VIDUA REGIS","AUXILIUM","SERVIENS DOMINI REGIS","DE NON RESIDENTIA CLERICI REGIS","AD JURA REGIS","CAMERA REGIS","MINISTRI REGIS","NON-RESIDENTIO PRO CLERICO REGIS","AUXILIUM CURIAE"]}
{"title":"AVER SILVER","definition":"A custom or rent formerly so called.","related":["GREEN SILVER","AVER CORN","HERRING SILVER","ALE SILVER","SLOUGH SILVER","AVER, N","AVER, V","AVER","AVER PENNY","AVER LAND"]}
{"title":"AVOID","definition":"To annul; cancel; make yoid; to destroy the efficacy of anything.","related":["CONDITIONS TO AVOID","VITIATE","ANNUL","VACATE","DESTROY","DISSOLVE","DISCHA
import * as fs from 'fs';
import * as path from 'path';
import * as cdk from '@aws-cdk/core';
import * as lambda from '@aws-cdk/aws-lambda-nodejs';
import * as kms from '@aws-cdk/aws-kms';
import * as secretsmanager from '@aws-cdk/aws-secretsmanager';
import * as acm from '@aws-cdk/aws-certificatemanager';
import * as alias from '@aws-cdk/aws-route53-targets';
import * as iam from '@aws-cdk/aws-iam';
import * as api from '@aws-cdk/aws-apigatewayv2';