Skip to content

Instantly share code, notes, and snippets.

View iterm profile key shortcuts
{ "Ansi 7 Color" : { "Blue Component" : 0.7333333492279053, "Green Component" : 0.7333333492279053, "Red Component" : 0.7333333492279053 }, "Tags" : [ ], "Ansi 12 Color" : { "Blue Component" : 1, "Green Component" : 0.3333333432674408, "Red Component" : 0.3333333432674408 }, "Ansi 8 Color" : { "Blue Component" : 0.3333333432674408, "Green Component" : 0.3333333432674408, "Red Component" : 0.3333333432674408 }, "Ansi 9 Color" : { "Blue Component" : 0.3333333432674408, "Green Component" : 0.3333333432674408, "Red Component" : 1 }, "Bold Color" : { "Blue Component" : 1, "Green Component" : 1, "Red Component" : 1 }, "Horizontal Spacing" : 1, "Ansi 6 Color" : { "Blue Component" : 0.7333333492279053, "Green Component" : 0.7333333492279053, "Red Component" : 0 }, "Rows" : 25, "Default Bookmark" : "No", "Non-ASCII Anti Aliased" : true, "Use Bright Bold" : true, "Ansi 10 Color" : { "Blue Component" : 0.3333333432674408, "Green Component" : 1, "Red Component" : 0.3333333432674408 }, "Ambiguous Double Width" : false, "J
@tnrich
tnrich / index.js
Created Oct 28, 2016
requirebin sketch
View index.js
// Welcome! require() some modules from npm (like you were using browserify)
// and then hit Run Code to run your code on the right side.
// Modules get downloaded from browserify-cdn and bundled in your browser.
require('inert-polyfill')
View Color%20Highlighter%2Fthemes%2FMonokai%20%28SL%29.tmTheme
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>name</key>
<string>Monokai</string>
<key>settings</key>
<array>
<dict>
<key>name</key>
View React Redux HoverHelper.js
import deepEqual from 'deep-equal';
import onlyUpdateForKeys from 'recompose/onlyUpdateForKeys';
import {mouseAware} from 'react-mouse-aware';
// import './style';
import * as hoveredAnnotationActions from '../redux/hoveredAnnotation';
import {connect} from 'react-redux';
import React from 'react';
import lruMemoize from 'lru-memoize';
class HoverHelper extends React.Component {
@tnrich
tnrich / uncommentedConsoleLogFinder
Last active Aug 29, 2015
find uncommented console logs
View MoustrapMixin.js
/** @jsx React.DOM */
// NOTE: This file is formatted for React.js + Browserify
// You might need to make some changes to use it without Browserify
var MousetrapMixin,
Mousetrap = require('mousetrap');
MousetrapMixin = {
@tnrich
tnrich / install gist command line
Last active Aug 29, 2015
install gist command line
View install gist command line
#install command line gist on mac
gem install gist
@tnrich
tnrich / .profile
Last active Aug 29, 2015
tnr's .profile
View .profile
#update this gist here: https://gist.github.com/tnrich/91deea34c648fb38f537
#note this command isn't working for me
if [ -f ~/.git-completion.bash ]; then
. ~/.git-completion.bash
fi
#VE specific commands
alias gpuo='git push -u origin'
alias gpod='git pull origin dev'
@tnrich
tnrich / usefulAliases.sh
Created Feb 22, 2015
Useful git shell aliases. Put them in ~/.profile or ~/.bashrc or wherever you keep your aliases
View usefulAliases.sh
#lists your last 20 branches in the order that you last commited to them
alias gbh='git for-each-ref --count=20 --sort=-committerdate refs/heads/ --format='\''%(refname:short)'\'''
alias gc='git checkout'
alias gcam='git commit -am '
alias gcb='git checkout -b '
alias gpuo='git push -u origin'
alias gs='git status -sb '
#need to npm install -g node-inspector and nodemon before using this one