Skip to content

Instantly share code, notes, and snippets.

View tnrich's full-sized avatar

Thomas Willheim tnrich

View GitHub Profile
@tnrich
tnrich / 0_reuse_code.js
Last active August 29, 2015 14:10
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@tnrich
tnrich / .profile
Created November 24, 2014 18:17
Useful git shell commands. Put them in ~/.profile
alias gc='git checkout'
alias gcam='git commit -am '
alias gcb='git checkout -b '
alias gpu='git push -u'
alias gs='git status -sb '
@tnrich
tnrich / gist:99fcf420a49340a9c61f
Created February 11, 2015 23:56
Create symlink to open folders in sublime
ln -s /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl /usr/bin/subl
@tnrich
tnrich / usefulAliases.sh
Created February 22, 2015 03:47
Useful git shell aliases. Put them in ~/.profile or ~/.bashrc or wherever you keep your aliases
#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
@tnrich
tnrich / .profile
Last active August 29, 2015 14:16
tnr's .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 / install gist command line
Last active August 29, 2015 14:16
install gist command line
#install command line gist on mac
gem install gist
/** @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 / uncommentedConsoleLogFinder
Last active August 29, 2015 14:26
find uncommented console logs
^\s+(console\.log.*)$
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 {
These are my atom settings!