See how a minor change to your commit message style can make you a better programmer.
Format: <type>(<scope>): <subject>
<scope>
is optional
/* | |
* This file contains JS modules for a React app using react-router and redux. | |
* Each module should be in its own separate file, but for the purposes of | |
* this gist, I've inlined them all. | |
*/ | |
/* app/index.js */ | |
import React from 'react' | |
import { Router, browserHistory } from 'react-router' |
Update: https://www.cyanhall.com/posts/notes/7.homebrew-cheatsheet/#java
on El Capitan, after installing the brew...
$ brew update
$ brew tap caskroom/cask
$ brew install Caskroom/cask/java
And Java 8 will be installed at /Library/Java/JavaVirtualMachines/jdk1.8.xxx.jdk/
#!/bin/bash | |
# Remove subtitles from MKVs | |
# If no directory is given, work in local dir | |
if [ "$1" = "" ]; then | |
DIR="." | |
else | |
DIR="$1" | |
fi |
var MARGIN = 28; | |
// Fullscreen | |
slate.bind('f:cmd,alt', function(win) { | |
// ±4 to account for hidden Dock on left of screen. | |
win.doOperation(S.op('move', { | |
'x': 'screenOriginX - 4 + ' + MARGIN, | |
'y': 'screenOriginY + ' + MARGIN, |
import code; code.interact(local=dict(globals(), **locals())) |
<?xml version="1.0" encoding="utf-8"?> | |
<resources> | |
<color name="red_50">#fde0dc</color> | |
<color name="red_100">#f9bdbb</color> | |
<color name="red_200">#f69988</color> | |
<color name="red_300">#f36c60</color> | |
<color name="red_400">#e84e40</color> | |
<color name="red_500">#e51c23</color> | |
<color name="red_600">#dd191d</color> | |
<color name="red_700">#d01716</color> |
If you find that vagrant box list
somehow does not contain a box you previously had, you can sometimes add the box back if you still have the sources for it in ~/.vagrant.d/boxes
.
$ cd ~/.vagrant.d/boxes/precise64/0/virtualbox/
$ tar czf ~/precise64.box .
$ vagrant box add precise64 ~/precise64.box
Downloading box from URL: file:/Users/ryanuber/precise64.box
Extracting box...te: 417M/s, Estimated time remaining: --:--:--)
Successfully added box 'precise64' with provider 'virtualbox'!
namespace :figaro do | |
desc "SCP transfer figaro configuration to the shared folder" | |
task :setup do | |
transfer :up, "config/application.yml", "#{shared_path}/application.yml", via: :scp | |
end | |
desc "Symlink application.yml to the release path" | |
task :symlink do | |
run "ln -sf #{shared_path}/application.yml #{latest_release}/config/application.yml" | |
end |