As a freelancer, I build a lot of web sites. That's a lot of code changes to track. Thankfully, a Git-enabled workflow with proper branching makes short work of project tracking. I can easily see development features in branches as well as a snapshot of the sites' production code. A nice addition to that workflow is that ability to use Git to push updates to any of the various sites I work on while committing changes.
When [Markdown][markdown] appeared more than 10 years ago, it aimed to make it easier to express ideas in an easy-to-write plain text format. It offers a simple syntax that takes the writer focus away from the formatting, thus giving her time to focus on the actual content.
The market abunds of editors to be used for help with markdown. After a few attempts, I settled to Sublime and its browser preview plugin, which work great for me and have a small memory footprint to accomplish that. To pass the results around to other people, less technical, a markdown file and a bunch of images is not the best approach, so converting it to a more robust format like PDF seems like a much better choice.
[Pandoc][pandoc] is the swiss-army knife of converting documents between various formats. While being able to deal with heavy-weight formats like docx and epub, we will need it for the more lightweight markdown. To be able to generate PDF files, we need LaTeX. On OSX, the s
| /* | |
| * modified from http://www.voidware.com/moon_phase.htm | |
| */ | |
| function getMoonPhase(year, month, day) | |
| { | |
| var c = e = jd = b = 0; | |
| if (month < 3) { | |
| year--; |
| function custom_tax_init(){ | |
| //set some options for our new custom taxonomy | |
| $args = array( | |
| 'label' => __( 'My Custom Taxonomy' ), | |
| 'hierarchical' => true, | |
| 'capabilities' => array( | |
| // allow anyone editing posts to assign terms | |
| 'assign_terms' => 'edit_posts', | |
| /* but you probably don't want anyone |
| <?php | |
| /* | |
| Add employer, title, and department columns to the members list CSV export. | |
| Just add this code to your functions.php or a custom plugin. | |
| The first function here defines the column headers and a callback function for each column. | |
| */ | |
| function my_pmpro_members_list_csv_extra_columns($columns) | |
| { | |
| $columns["employer"] = "my_extra_column_employer"; |
| require 'fileutils' | |
| # An OS X System Service for quickly filing image files to a Jekyll blog folder, | |
| # putting Markdown links to the files on the clipboard. | |
| # Copyright Brett Terpstra 2013 | |
| # Config | |
| # ====== | |
| # Where to store the images | |
| base_path = '~/Sites/dev/octopress/source/uploads/' |
Requirements
- Install jq: http://stedolan.github.com/jq/download/
- I've tested this on a Mac, but it should work on any *nix that has bash and curl.
Get an Instagram access token
- The easiest way to get on may be making a request via the API console: http://instagram.com/developer/api-console/
- Under 'Authentication', choose OAuth 2 and follow the instructions.
| # United States Postal Service (USPS) abbreviations. | |
| abbreviations = [ | |
| # https://en.wikipedia.org/wiki/List_of_states_and_territories_of_the_United_States#States. | |
| "AK", "AL", "AR", "AZ", "CA", "CO", "CT", "DE", "FL", "GA", "HI", "IA", | |
| "ID", "IL", "IN", "KS", "KY", "LA", "MA", "MD", "ME", "MI", "MN", "MO", | |
| "MS", "MT", "NC", "ND", "NE", "NH", "NJ", "NM", "NV", "NY", "OH", "OK", | |
| "OR", "PA", "RI", "SC", "SD", "TN", "TX", "UT", "VA", "VT", "WA", "WI", | |
| "WV", "WY", | |
| # https://en.wikipedia.org/wiki/List_of_states_and_territories_of_the_United_States#Federal_district. | |
| "DC", |
| -- | |
| -- OCR all documents added to a folder | |
| -- | |
| on adding folder items to this_folder after receiving added_items | |
| try | |
| repeat with i from 1 to number of items in added_items | |
| set this_item to item i of added_items | |
| set appName to my getAppName() | |
| tell application appName | |
| activate |