As configured in my dotfiles.
start new:
tmux
start new with session name:
// Good this will only be called again once findFoo has completed. | |
;(function main() { | |
findFoo(); | |
setTimeout(main, 100); | |
})(); |
PGPASSWORD='secret' /usr/bin/pg_dump --username='username' --host='localhost' --port='5432' -xc -E=utf8 database >> dump.sql |
heroku pgbackups:restore HEROKU_POSTGRESQL_RED_URL `heroku pgbackups:url --remote heroku` --remote staging |
class Object | |
def _mm | |
case self.class | |
when Class | |
self.public_methods.sort - Object.public_methods | |
when Module | |
self.public_methods.sort - Module.public_methods | |
else | |
self.public_methods.sort - Object.new.public_methods | |
end |
begin | |
require 'hirb' | |
rescue LoadError | |
# Missing goodies, bummer | |
end | |
if defined? Hirb | |
# Slightly dirty hack to fully support in-session Hirb.disable/enable toggling | |
Hirb::View.instance_eval do | |
def enable_output_method |
/* clearfix */ | |
.group:before, | |
.group:after { | |
content: ""; | |
display: table; | |
} | |
.group:after { | |
clear: both; | |
} |
As configured in my dotfiles.
start new:
tmux
start new with session name:
<html ng-app="PomoDo" > | |
<head> | |
<title>NG</title> | |
</head> | |
<body> | |
<div id="done" ng-controller="TaskController"> | |
<form> | |
<label> | |
Task Titlte (<span>{{tasks.length}}</span>) | |
</label> |
I had some headaches yesterday while trying to upgrade to VMWare Fusion with Vagrant.
The steps that work are:
#!/usr/bin/env ruby | |
require 'gosu' # gem install gosu --no-document | |
include Gosu | |
$dimension, $splits = 200, 20 | |
$size = $dimension.to_f / $splits.to_f | |
class Worm | |
attr_writer :dir | |
def initialize() reset end |