As configured in my dotfiles.
start new:
tmux
start new with session name:
| #!/bin/bash | |
| # Encode a WAV to a finalized podcast MP3 with metadata, in the current directory | |
| # Requires lame | |
| # With Homebrew on Mac OS X: brew install lame | |
| SHOW_AUTHOR="ATP" | |
| EPISODE_NUMBER=104 | |
| EPISODE_TITLE="Minutiæ" |
| //## Moment.JS Holiday Plugin | |
| // | |
| //Usage: | |
| // Call .holiday() from any moment object. If date is a US Federal Holiday, name of the holiday will be returned. | |
| // Otherwise, return nothing. | |
| // | |
| // Example: | |
| // `moment('12/25/2013').holiday()` will return "Christmas Day" | |
| // | |
| //Holidays: |
| #! /usr/bin/python | |
| from sys import argv | |
| from os.path import exists | |
| from os import makedirs | |
| from os import symlink | |
| from os import system | |
| import getopt | |
| # |
| #! /usr/bin/python | |
| from sys import argv | |
| from os.path import exists | |
| from os import makedirs | |
| from os import symlink | |
| import getopt | |
| # | |
| # Show Usage, Output to STDERR |
| <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'; |
| <?php | |
| /* | |
| By Marco Arment <[email protected]>. | |
| This code is released in the public domain. | |
| THERE IS ABSOLUTELY NO WARRANTY. | |
| Usage example: | |
| // In a registration or password-change form: |
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 |
| #Newbie programmer | |
| def factorial(x): | |
| if x == 0: | |
| return 1 | |
| else: | |
| return x * factorial(x - 1) | |
| print factorial(6) | |
| #First year programmer, studied Pascal |
| // | |
| // MIXINS | |
| // | |
| // SHADOWS | |
| @mixin box-shadow ($string) { | |
| -webkit-box-shadow: $string; | |
| -moz-box-shadow: $string; | |
| box-shadow: $string; | |
| } |