Skip to content

Instantly share code, notes, and snippets.

Avatar

Alan B Smith alanbsmith

View GitHub Profile
@alanbsmith
alanbsmith / LeftNavWithIcons.jsx
Created Sep 4, 2020
image02 for component hierarchy post
View LeftNavWithIcons.jsx
const LeftNavWithIcons = () => {
return (
<Box padding="m">
<Nav>
<List>
<ListItem>
<Icon type="home" />
<Link href="/">Home</Link>
</ListItem>
<ListItem>
@alanbsmith
alanbsmith / LeftNav.jsx
Created Sep 4, 2020
image01 for component hierarchy post
View LeftNav.jsx
const LeftNav = () => {
return (
<Box padding="m">
<Nav>
<List>
<ListItem>
<Link href="/">Home</Link>
</ListItem>
<ListItem>
<Link href="/about">About</Link>
@alanbsmith
alanbsmith / RFC Template.md
Created Aug 5, 2020
RFC Template (a wip)
View RFC Template.md
  • Start Date: (fill me in with today's date, YYYY-MM-DD)
  • RFC PR: (leave this empty)
  • Canvas Kit Issue: (leave this empty)

Summary

Brief explanation of the feature.

Basic example

View pita-bread-recipe.md

Pita Bread

Ingredients

  • 310g (2½ cup) all-purpose flour
  • 35g (¼ cup) whole-wheat flour
  • 236g (1 cup) water at 90-95°F
  • 5g (~1 tsp) kosher salt
  • 1g (¼ tsp) active dry yeast
@alanbsmith
alanbsmith / Stack Spec.md
Last active May 22, 2020
Potential Stack implementations
View Stack Spec.md

Stack

Purpose

Stack is a layout component designed to make spacing vertically stacked components simple.

Possible Implementations

CSS

@alanbsmith
alanbsmith / pascalify.js
Created Dec 30, 2019
pascal-ifying strings and arrays in JS
View pascalify.js
function capitalize(str = '') {
let cap = str.substring(0,1).toUpperCase();
let rest = str.substring(1).toLowerCase();
return `${cap}${rest}`
}
function toPascalCase(str = '') {
let splitStr = str.split(' ');
return splitStr.map(word => capitalize(word)).join('');
}
View keybase.md

Keybase proof

I hereby claim:

  • I am alanbsmith on github.
  • I am alanbsmith (https://keybase.io/alanbsmith) on keybase.
  • I have a public key ASAyjrq6hQpJvSEQnCDdqjnZitL0DVNIWIP2ZbxNqiLYtwo

To claim this, I am signing this object:

@alanbsmith
alanbsmith / german pumpkin bread.md
Last active Oct 4, 2019
Grandma's German Pumpkin Bread
View german pumpkin bread.md

Doris' German Pumpkin Bread

Yield

  • 2 loaves (6x9 pans)

Wet Ingredients

  • 3 eggs
  • 16oz pumpkin puree
View cfp-notes.md

CFP Outline

an outline for talks to be submitted to PaperCall.io

OVERVIEW

This document is a collection of resources and helpful information for writing a good CFP. Many of the notes and tips are direct quotes from the resources listed below. They are mostly notes I took as I read. The outline itself is formatted for PaperCall.io, and the italicized notes are from their site as well.

GENERAL TIPS