Skip to content

Instantly share code, notes, and snippets.

Tony Brown anthonybrown

View GitHub Profile
anthonybrown /
Created Apr 13, 2019 — forked from darsain/
Better streaming interface for modern JavaScript.

Better streaming interface for modern JavaScript

Node streams have a lot of issues. Awkward to control backpressure, no error propagation, overcomplicated implementation impenetrable to any view source attempts, etc...

To solve this, here is an implementation of pull-streams in modern JS, using promises, async iterators, and for..await loops.


  • Built in backpressure.
  • Build in error propagation.
anthonybrown /
Created Apr 10, 2019 — forked from pwenzel/
LAMP stack on OSX with Homebrew, built-in Apache, multiple PHP versions, VirtualhostX optional

This guide shows how to set up a PHP and MySQL development environment using OSX's built-in Apache, using Homebrew to install necessary components. With this strategy, you can use different versions of PHP for certain virtual hosts.

VirtualHostX is a convenient way to manage development sites, but not required.

Install PHP and MySQL with Homebrew

brew update
brew install php56
brew install php56-mcrypt
brew install mysql
View index.html
<link href='' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="">
<title>Calculator App</title>
anthonybrown /
Created Mar 2, 2019 — forked from lhorie/
What's the longest keyword sequence in Javascript?
anthonybrown / createQueue.js
Last active Dec 4, 2018
Using a Queue to contain our data structure, use a queue. Create a function that returns our data in a plain old Object. A queue is a collection of items that obey's the principle of FIFO, first in, first out.
View createQueue.js
function createQueue() {
// store our queue
const queue = []
return {
// add or enqueue
enqueue(item) {
// remove or dequeue
anthonybrown / Array2-Digit.js
Last active Dec 2, 2018
Using Array.from to compose dates
View Array2-Digit.js
Array.from({ length: 12 }, (x, index) => (new Date(0, index).toLocaleString('us-EN', { month: '2-digit' })));
View App.js
import React, { Suspense, useState } from "react";
import { unstable_createResource as createResource } from "react-cache";
import {
} from "./Combobox2.js";
function App({ tabIndex, navigate }) {
anthonybrown / currier.js
Created Oct 17, 2018
An example of a currying in JavaScript
View currier.js
var currier = function(fn) {
var args =, 1);
return function() {
return fn.apply(this, args.concat(, 0)));

Web Performance




React && Firebase Workshop

Contact Information

Prequisite Setup

  • A recent version of Node.js
  • npm install -g create-react-app
You can’t perform that action at this time.