Skip to content

Instantly share code, notes, and snippets.

View kevinSuttle's full-sized avatar

Kevin Suttle kevinSuttle

View GitHub Profile
@kevinSuttle
kevinSuttle / npme.txt
Created July 14, 2016 20:09
npme add-package, scoped
npme add-package @kadira/storybook
analyzing dependencies for @kadira/storybook:
could not load babel-loader@^6.2.0 error = getaddrinfo ENOTFOUND registry.npmjs.org registry.npmjs.org:443
could not load babel-preset-es2015@^6.3.13 error = getaddrinfo ENOTFOUND registry.npmjs.org registry.npmjs.org:443
could not load cjson@^0.4.0 error = getaddrinfo ENOTFOUND registry.npmjs.org registry.npmjs.org:443
could not load commander@^2.9.0 error = getaddrinfo ENOTFOUND registry.npmjs.org registry.npmjs.org:443
could not load shelljs@^0.6.0 error = getaddrinfo ENOTFOUND registry.npmjs.org registry.npmjs.org:443
could not load uuid@^2.0.1 error = getaddrinfo ENOTFOUND registry.npmjs.org registry.npmjs.org:443
could not load lodash.pick@^4.2.0 error = getaddrinfo ENOTFOUND registry.npmjs.org registry.npmjs.org:443
could not load eslint@^2.7.0 error = getaddrinfo ENOTFOUND registry.npmjs.org registry.npmjs.org:443
@kevinSuttle
kevinSuttle / Button.jsx
Last active September 21, 2016 17:29
Flow, defaultProps, and wrapper classes
// @flow
// "flow-bin": "^0.29.0",
import React from 'react';
require('./Button.css');
export type ButtonProps = {
onClick: () => void,
type: 'button' | 'reset' | 'submit',
design: 'primary' | 'secondary' | 'page' | 'tooltipInfo' | 'tooltipDocs',
@kevinSuttle
kevinSuttle / EmailInput.jsx
Last active May 3, 2017 15:28
Input higher-order components
import CreateInput from './Input.jsx';
const emailProps = {
type: "email",
inputMode: "email",
name: "email",
autoComplete: "email",
pattern: "[a-zA-Z0-9_]+(?:\.[A-Za-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?!([a-zA-Z0-9]*\.[a-zA-Z0-9]*\.[a-zA-Z0-9]*\.))(?:[A-Za-z0-9](?:[a-zA-Z0-9-]*[A-Za-z0-9])?\.)+[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?",
spellCheck: false,
autoCorrect: "off",
@kevinSuttle
kevinSuttle / Sublime DFM.md
Created April 19, 2016 15:20
Distraction-free settings diff
{
	"line_numbers": false,
	"gutter": false,
	"draw_centered": true,
	-"wrap_width": 80,
	"word_wrap": true,
	-"scroll_past_end": true
}
{
"font_size": 21,
"line_numbers": false,
"gutter": false,
"wrap_width": 80,
"scroll_past_end": false,
"color_scheme": "Packages/User/SublimeLinter/Solarized (Light) (SL).tmTheme",
"line_padding_bottom": 10,
"line_padding_top": 10
}
@kevinSuttle
kevinSuttle / ghost.conf
Last active July 17, 2016 18:53
Ghost + Nginx + letsencrypt + keybase.io + Digital Ocean + DNSimple
# /etc/nginx/sites-enabled/ghost
server {
root /usr/share/nginx/html;
index index.html index.htm;
listen 443 ssl;
server_name kevinsuttle.com www.kevinsuttle.com;
ssl_certificate /etc/letsencrypt/live/kevinsuttle.com/fullchain.pem;
@kevinSuttle
kevinSuttle / one-name.txt
Created January 4, 2016 16:23
Onename.com verification
Verifying that +kevinsuttle is my blockchain ID. https://onename.com/kevinsuttle
@kevinSuttle
kevinSuttle / private.xml
Created December 24, 2015 06:27
Tmux: map CAPS to ctrl-b prefix with Seil/Karabiner
<?xml version="1.0"?>
<root>
<!-- Thanks Brett Terpstra for the tip -->
<!-- http://brettterpstra.com/2012/12/08/a-useful-caps-lock-key/ -->
<item>
<name>Tmux Prefix</name>
<appendix>CAPS to control-b</appendix>
<identifier>private.tmux_prefix</identifier>
<autogen>
--KeyOverlaidModifier--
@kevinSuttle
kevinSuttle / El Capitan Dark.alfredappearance
Created December 23, 2015 20:37
El Capitan Dark theme
alfred://theme/searchForegroundColor=rgba(255,255,255,1.00)&resultSubtextFontSize=1&searchSelectionForegroundColor=rgba(0,0,0,1.00)&separatorColor=rgba(63,63,63,0.00)&resultSelectedBackgroundColor=rgba(0,105,218,1.00)&shortcutColor=rgba(0,160,255,1.00)&scrollbarColor=rgba(72,72,72,1.00)&imageStyle=7&resultSubtextFont=System&background=rgba(37,37,37,1.00)&shortcutFontSize=1&searchFontSize=3&resultSubtextColor=rgba(168,168,173,1.00)&searchBackgroundColor=rgba(37,37,37,1.00)&name=El%20Capitan%20Dark&resultTextFontSize=2&resultSelectedSubtextColor=rgba(216,217,221,1.00)&shortcutSelectedColor=rgba(255,255,255,1.00)&widthSize=3&border=rgba(37,37,37,1.00)&resultTextFont=System&resultTextColor=rgba(255,255,255,1.00)&cornerRoundness=3&searchFont=System%20Light&searchPaddingSize=0&credits=Kevin%20Suttle&searchSelectionBackgroundColor=rgba(178,220,236,1.00)&resultSelectedTextColor=rgba(255,255,255,1.00)&resultPaddingSize=1&shortcutFont=System
@kevinSuttle
kevinSuttle / Color-Schema.jsonld
Last active December 23, 2015 04:48
UITheme Schema Proposal
{
"@context": "http://schema.org",
"@type": "Color",
"hasCSScolorName": {
"value": "true",
"name": "cornflower_blue"
},
"@values": {
"hexTriplet": "#6495ed",
"hexQuadruplet": "#6495edff",