Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Matthew Stokeley matthewstokeley

🎯
Focusing
Block or report user

Report or block matthewstokeley

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@matthewstokeley
matthewstokeley / on-one-off.ts
Last active Mar 16, 2020
an on-one-off robust api with the mixin pattern
View on-one-off.ts
// dom versus publisher subscribe naming conventions
const Handler = ( function() {
return {}
} )()
type eventName: String
type eventFn: Function
View isolated-development.sh
# Isolated Development Environment Installation
# Poor man's storybook for scripts, with glitch
# https://www.lucidchart.com/invitations/accept/d77e6095-bd82-41af-a9cf-a48e056f39ee
# tl;dr
# Problem:
# `return _cache( new Symbol( key ) )` should have been `return ( typeof key === 'Symbol' ) ? _cache( key ) : _cache( new Symbol( key ) )
View gist:c1015f96ef5dbdf9eab005c72811e51a
https://docs.google.com/spreadsheets/d/1K4XK94PdH4l4NSHVMnh04ht0ZktJ70EG_4pfPpaSVbI/edit?usp=sharing
View key-lookup-strategies.js
// 0.0.2
type Key: Symbol | String
type KeyClosure: Function( str: String ): Key
// Symbol Strategy
export var symbolKeyHandler = function symbolKeyHandler(
_cache: Function
): KeyClosure {
@matthewstokeley
matthewstokeley / transpiler-installation.sh
Created Mar 3, 2020
configuration file population, modular dependencies and modular task workflows
View transpiler-installation.sh
#! /usr/bin/node
/* ~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-
* Bootload a Transpiling Environment
*
* @version 0.0.2
*/
/* ~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-
* Declare Modules
@matthewstokeley
matthewstokeley / express-jade-container
Last active Mar 1, 2020
containerized node development for express jade
View express-jade-container
#! /usr/bin/bash
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Containerized Express/Jade Development Environment
#
# This file implements a configuration workflow that allows for
# .env population and versioning of a composition file by
# ignoring the secrets file and separating the pre-populated composition file
# into a repo outside of the development environment.
#
View install-node-container.sh
#! /usr/bin/bash
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Containerized Node Development Environment
#
# @version 0.0.2
CONFIG=secret.env
COMPOSE=docker-compose.yml
@matthewstokeley
matthewstokeley / docker-compose.yml
Last active Feb 29, 2020
node docker compose file
View docker-compose.yml
version: '3.3'
services:
db:
image: mysql:5.7
volumes:
- db_data:/var/lib/mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: "******"
View gist:7f67d088c9ba2928de6654b8854c4d32
https://drive.google.com/file/d/1Cz3WcOzeUX6tT6yaIcQnzLqTNtLkH3RC/view?usp=sharing
You can’t perform that action at this time.