Rails 3.0 introduced support for routing constrained by subdomains.
A subdomain can be specified explicitly, like this:
match '/' => 'home#index', :constraints => { :subdomain => 'www' }
| FILE SPACING: | |
| # double space a file | |
| sed G | |
| # double space a file which already has blank lines in it. Output file | |
| # should contain no more than one blank line between lines of text. | |
| sed '/^$/d;G' |
As configured in my dotfiles.
start new:
tmux
start new with session name:
| /* Exercise: Loops and Functions #43 */ | |
| package main | |
| import ( | |
| "fmt" | |
| "math" | |
| ) | |
| func Sqrt(x float64) float64 { | |
| z := float64(2.) |
| require 'base64' | |
| require 'cgi' | |
| def show_session(cookie) | |
| Marshal.load(Base64.decode64(CGI.unescape(cookie.split("\n").join).split('--').first)) | |
| end |
I use tmux splits (panes). Inside one of these panes there's a Vim process, and it has its own splits (windows).
In Vim I have key bindings C-h/j/k/l set to switch windows in the given direction. (Vim default mappings for windows switching are the same, but prefixed with C-W.) I'd like to use the same keystrokes for switching tmux panes.
An extra goal that I've solved with a dirty hack is to toggle between last active panes with C-\.
Here's how it should work:
| FILE SPACING: | |
| # double space a file | |
| sed G | |
| # double space a file which already has blank lines in it. Output file | |
| # should contain no more than one blank line between lines of text. | |
| sed '/^$/d;G' |
| ;; Needs terminal-notifier (brew install terminal-notifier) | |
| (defun notify-osx (title message) | |
| (call-process "terminal-notifier" | |
| nil 0 nil | |
| "-group" "Emacs" | |
| "-title" title | |
| "-sender" "org.gnu.Emacs" | |
| "-message" message)) | |
| ;; org-pomodoro mode hooks |