Skip to content

Instantly share code, notes, and snippets.

View scott-riley's full-sized avatar
🎯
Focusing

Scott Riley scott-riley

🎯
Focusing
View GitHub Profile
@scott-riley
scott-riley / proptypes.js
Last active August 9, 2016 13:55
pls declare ur proptypes now everyone is happy
import React, { PropTypes, Component } from 'react';
// all that React code that everyone tells you is shit but you don’t care
// cause there’s dads out there and they’re not gonna kiss themselves
MyFuckinDopeComponent.propTypes = {
amIaRealDev: PropTypes.bool.isRequired,
whosDadWantsKissing: PropTypes.string,
}
// NodeList as querySelectorAll results
let nodeList = document.querySelectorAll('div');
// Hacky Array.slice() call with no delimeter = ordered array
const divArray = Array.prototype.slice.call(nodeList);
import React from 'react';
import * as t from '/i/love/jongold/tachyons.css';
export default JonGold = (props) => (
<div className={t.pa2}>{ props.children }</div>
);
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
Plugin 'vim-airline/vim-airline'
Plugin 'vim-airline/vim-airline-themes'
Plugin 'SirVer/ultisnips'

scott_riley

Keybase proof

I hereby claim:

  • I am scott-riley on github.
  • I am scott_riley (https://keybase.io/scott_riley) on keybase.
  • I have a public key ASBfL9VNjvXO7gtT96bSdqdgcV_vo8mHe2bxfU6Sf9901go

To claim this, I am signing this object: