http://guides.rubyonrails.org/migrations.html
- add_column
- add_index
- change_column
- change_table
- create_table
- drop_table
#!/usr/bin/env bash | |
# script: watch | |
# author: Mike Smullin <[email protected]> | |
# license: GPLv3 | |
# description: | |
# watches the given path for changes | |
# and executes a given command when changes occur | |
# usage: | |
# watch <path> <cmd...> | |
# |
# MySQL. Versions 4.1 and 5.0 are recommended. | |
# | |
# Install the MySQL driver: | |
# gem install mysql2 | |
# | |
# And be sure to use new-style password hashing: | |
# http://dev.mysql.com/doc/refman/5.0/en/old-client.html | |
development: | |
adapter: mysql2 | |
encoding: utf8 |
//GRobotronics 29/3/2014 | |
unsigned char i; | |
unsigned char j; | |
/*Port Definitions*/ | |
int Max7219_pinCLK = 2; | |
int Max7219_pinCS = 1; | |
int Max7219_pinDIN = 0; |
http://guides.rubyonrails.org/migrations.html
alias g='git' | |
alias ga='git add' | |
alias gaa='git add --all' | |
alias gapa='git add --patch' | |
alias gb='git branch' | |
alias gba='git branch -a' | |
alias gbda='git branch --merged | command grep -vE "^(\*|\s*master\s*$)" | command xargs -n 1 git branch -d' | |
alias gbl='git blame -b -w' |
function randomColor(backgroundFlag) { | |
var gradients = [ | |
['#19B6C1','#03599A','#0E88AE'], //great | |
['#27C4B9','#27C495', '#27C4A7'], | |
['#97437E','#DC245B','#B9336C'], | |
['#136a8a','#267871','#1C717D'], //not sure | |
['#6441A5','#2a0845','#472475'], //might be redundant of one below | |
// ['#1A1023','#53346D','#362248'], //great, dark mysterious | |
['#7C8E8D','#2F3950','#56646F'], |
<!-- Button trigger modal --> | |
<button class="btn btn-primary btn-lg" data-toggle="modal" data-target="#myModal">Launch demo modal</button> | |
<!-- Modal --> | |
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> | |
<div class="modal-dialog"> | |
<div class="modal-content"> | |
<div class="modal-header"> | |
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> | |
<h4 class="modal-title" id="myModalLabel">Modal title</h4> |
function getZoomCompensatedBoundingRect(fabricObject){ | |
//fabricObject is the object you want to get the boundingRect from | |
fabricObject.setCoords(); | |
var boundingRect = fabricObject.getBoundingRect(); | |
var zoom = canvas.getZoom(); | |
var viewportMatrix = canvas.viewportTransform; | |
//there is a bug in fabric that causes bounding rects to not be transformed by viewport matrix | |
//this code should compensate for the bug for now |
ctrl-ww = cycle though all windows | |
gt = next tab | |
gT = previous tab | |
t = Open the selected file in a new tab | |
i = Open the selected file in a horizontal split window | |
s = Open the selected file in a vertical split window | |
o = open directory | |
h = left | |
j = arrow down |
( zcat $( ls -tr /var/log/apt/history.log*.gz ) ; cat /var/log/apt/history.log ) | egrep '^(Start-Date:|Commandline:)' | grep -v aptdaemon | egrep '^Commandline:' |