As configured in my dotfiles.
start new:
tmux
start new with session name:
| <html> | |
| <head> | |
| <title>S3 POST Form</title> | |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |
| <script> | |
| var bucketName = 'MY_BUCKET_NAME'; | |
| var AWSKeyId = 'MY_AWS_KEY_ID'; | |
| var policy = 'MY_POLICY'; | |
| var signature = 'MY_SIGNATURE'; |
| def no_widows(arg) | |
| if arg.strip.count(" ") >= 2 | |
| arg.split[0...-1].join(" ") + " #{arg.split[-1]}" | |
| else | |
| arg | |
| end | |
| end | |
| #Example usage: |
| <?php | |
| /* | |
| By Marco Arment <me@marco.org>. | |
| This code is released in the public domain. | |
| THERE IS ABSOLUTELY NO WARRANTY. | |
| Usage example: | |
| // In a registration or password-change form: |
| <script src="http://ajax.aspnetcdn.com/ajax/jquery/jquery-2.0.0.min.js"></script> | |
| <script> | |
| if (typeof jQuery == 'undefined') { | |
| document.write(unescape("%3Cscript src='/js/jquery-2.0.0.min.js' type='text/javascript'%3E%3C/script%3E")); | |
| } | |
| </script> |
As configured in my dotfiles.
start new:
tmux
start new with session name:
| # Set prefix command to Ctrl-a | |
| set -g prefix C-a | |
| unbind C-b | |
| # Reduce tmux delay for more responsiveness | |
| set -sg escape-time 1 | |
| # Window and pane index count starts in 1 rather tan 0 | |
| set -g base-index 1 | |
| setw -g pane-base-index 1 |
| -- Preview the currently active iA Writer document using Marked. | |
| tell application "iA Writer" | |
| activate | |
| -- Ask iA Writer for it's active document. | |
| set the_document to document 1 | |
| -- Save the document or prompt if not previously saved. | |
| save the_document | |
| <?xml version="1.0"?> | |
| <root> | |
| <item> | |
| <name>Swap OPTION_L and COMMAND_L</name> | |
| <identifier>private.swap_OPTION_L_and_COMMAND_L</identifier> | |
| <autogen>--KeyToKey-- KeyCode::OPTION_L, KeyCode::COMMAND_L</autogen> | |
| <autogen>--KeyToKey-- KeyCode::COMMAND_L, KeyCode::OPTION_L</autogen> | |
| </item> | |
| <item> |
| { | |
| "auto_complete": true, | |
| "auto_indent": true, | |
| "auto_match_enabled": true, | |
| "bold_folder_labels": true, | |
| "caret_style": "smooth", | |
| "close_windows_when_empty": false, | |
| "color_scheme": "Packages/Color Scheme - Default/Twilight.tmTheme", | |
| "default_encoding": "UTF-8", | |
| "default_line_ending": "unix", |
| #bash | |
| . ~/.bash_profile | |
| #zsh | |
| . ~/.zshrc |