Skip to content

Instantly share code, notes, and snippets.

Zach Schneider schneidmaster

Block or report user

Report or block schneidmaster

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
schneidmaster / .tool-versions
Last active Jan 19, 2018
Elixir/Phoenix + CircleCI config
View .tool-versions
erlang 18.0
elixir 1.3.2
View gilded_rose.rb
ITEM_AGED_BRIE = "Aged Brie".freeze
ITEM_BACKSTAGE_PASS = "Backstage passes to a TAFKAL80ETC concert".freeze
ITEM_SULFURAS = "Sulfuras, Hand of Ragnaros".freeze
class GildedRose
def initialize(items)
@items = items
def update_quality()
schneidmaster /
Last active Aug 30, 2018
Environment Setup
# Sets up basic development environment for ruby and nodejs
# Install Homebrew
ruby -e "$(curl -fsSL"
# Install Homebrew basics
brew install adns apr apr-util archey aspell atk augeas autoconf automake aws-cfn-tools aws-elasticbeanstalk awscli boost cairo certbot clamav cmake convox coreutils dialog dos2unix doxygen ec2-api-tools elasticsearch erlang faac ffmpeg flow fontconfig freetds freetype gcc gd gdbm gettext gifsicle git glew glib gmp gnupg gnupg2 gnutls go gobject-introspection gource graphviz heroku htop htop-osx hub icu4c imagemagick isl jhead jpeg jpegoptim lame libassuan libevent libffi libgcrypt libgpg-error libidn2 libksba libmpc libpng libpq libtasn1 libtiff libtool libunistring libusb libusb-compat libvo-aacenc libxml2 libyaml libzip mcrypt memcached mhash mpfr mysql nettle node npth nvm openssl optipng overmind p11-kit pcre pgcli phantomjs php pinentry pinentry-mac pixman pkg-config prettyping pth python python3 python@2 qt r
schneidmaster / 1-useState.js
Last active Oct 29, 2018
React Conf 2018 -- new functional component APIs
View 1-useState.js
// Basic example of useState.
import React, { useState } from 'react';
export default function Greeting(props) {
const [name, setName] = useState('Mary');
function handleNameChange(e) {
schneidmaster / react.d.ts
Last active Oct 31, 2018
Typescript definitions for React hooks
View react.d.ts
// Typescript definitions for React hooks
// Take with a grain of salt; these are a first attempt and I've only actually
// used a few so far :)
import { Context, RefObject } from 'react';
declare module 'react' {
export function useState<T>(initialValue: T): [T, (newState: T) => void];
export function useEffect(effect: Function, inputs?: Array<any>): void;
export function useMutationEffect(effect: Function, inputs?: Array<any>): void;
You can’t perform that action at this time.