Skip to content

Instantly share code, notes, and snippets.

Alex Sheehan amsheehan

Block or report user

Report or block amsheehan

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
View top-app-bar-example.js
import React, {Component} from 'react';
class TopAppBar extends Component {
render() {
return (
<div className="mdc-top-app-bar">
View button-example.js
import React from 'react';
import PropTypes from 'prop-types';
import "@material/button/mdc-button.scss";
const Button = ({stroked, label}) => {
const classes = `mdc-button ${stroked ? 'mdc-button--stroked' : ''}`;
return (
View text-width.js
// Create rendering context
let ctx = document.createElement('canvas').getContext('2d');
// Get font family, font size, and letter spacing,
const fontFamily = window.getComputedStyle(<HTML ELEMENT>).getPropertyValue('font-family').split(',')[0];
const fontSize = window.getComputedStyle(<HTML ELEMENT>).getPropertyValue('font-size');
const letterSpacing = parseFloat(window.getComputedStyle(<HTML ELEMENT>).getPropertyValue('letter-spacing'));
// Get padding
const paddingLeft = parseInt(window.getComputedStyle(<HTML ELEMENT>).getPropertyValue('padding-left'), 10);
View packages
# Vim plugins:
# System stuff
View .bash_profile
export PATH="/usr/local/bin:$PATH"
if [ -f `brew --prefix`/etc/bash_completion ]; then
. `brew --prefix`/etc/bash_completion
PS1="(╯°□°)╯︵[\w] 𝝺: "
View .vimrc
execute pathogen#infect()
" Navigation "
set bs=indent,eol,start
set incsearch
set hlsearch
View gist:d74eae890115993a2ad6
session_attributes: {
session_id: '',
user_id: '',
user_role: ''
View gist:14b81c16ebe282f3c07f
Verifying myself: My Bitcoin username is +ams.
You can’t perform that action at this time.