Skip to content

Instantly share code, notes, and snippets.

View travisperson's full-sized avatar
🏠
Working from home

Travis Person travisperson

🏠
Working from home
View GitHub Profile
@travisperson
travisperson / i3-shell.sh
Created June 16, 2017 17:59 — forked from viking/i3-shell.sh
Bash script for i3 to run a terminal in the same working directory as the current focused application
#!/bin/bash
# i3 thread: https://faq.i3wm.org/question/150/how-to-launch-a-terminal-from-here/?answer=152#post-id-152
CMD=xterm
CWD=''
# Get window ID
ID=$(xdpyinfo | grep focus | cut -f4 -d " ")
# Get PID of process whose window this is

Keybase proof

I hereby claim:

  • I am travisperson on github.
  • I am travisperson (https://keybase.io/travisperson) on keybase.
  • I have a public key ASCLccnZr88ntr2CK3_KYzO2_t7ONrO5yGeVDPVfUTIUiAo

To claim this, I am signing this object:

@travisperson
travisperson / Enhance.js
Created October 17, 2016 22:23 — forked from sebmarkbage/Enhance.js
Higher-order Components
import { Component } from "React";
export var Enhance = ComposedComponent => class extends Component {
constructor() {
this.state = { data: null };
}
componentDidMount() {
this.setState({ data: 'Hello' });
}
render() {
var fs = require('fs')
var pkg = require('./package.json')
var deps = Object.keys(pkg.dependencies)
deps.forEach((dep) => {
console.log(dep + '=> '+ require.resolve(dep))
})
! special
*.foreground: #c5c8c6
*.background: #1d1f21
*.cursorColor: #c5c8c6
! black
*.color0: #282a2e
*.color8: #373b41
! red
Commit Bugs Status CR Keywords
Tables Are Cool
col 1 is left-aligned $1600
col 2 is centered $12
col 3 is right-aligned $1
~/s/g/t/beervintory (gui) $ ls
beervintory/ requirements.txt
~/s/g/t/beervintory (gui) $ virtualenv-2.7 venv
Using base prefix '/usr'
New python executable in /home/travis/src/github.com/travisperson/beervintory/venv/bin/python
Installing setuptools, pip, wheel...done.
~/s/g/t/beervintory (gui) $ ls
beervintory/ requirements.txt venv/
~/s/g/t/beervintory (gui) $ bash
[travis@holmes beervintory]$ source venv/bin/activate
40020 silly gunzTarPerm modified mode [ 'request.js', 436, 420 ]
40021 silly gunzTarPerm extractEntry .travis.yml
40022 silly gunzTarPerm modified mode [ '.travis.yml', 436, 420 ]
40023 verbose afterAdd /home/travis/.npm/inherits/1.0.2/package/package.json written
40024 silly gunzTarPerm extractEntry lang/isEmpty.js
40025 silly gunzTarPerm extractEntry .travis.yml
40026 silly gunzTarPerm extractEntry test/parse.js
40027 silly cache add parsed spec Result {
40027 silly cache add raw: 'babel-runtime@https://registry.npmjs.org/babel-runtime/-/babel-runtime-5.8.34.tgz',
40027 silly cache add scope: null,
if(n === 'a') {
foo()
boo()
} else if (n === 'b') {
boo()
} else if (n === 'c') {
woo()
shoo()
} else {
shoo()