This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ;; This can be added to your init.el file or included as a require. It requires | |
| ;; Pandoc to be installed and available on your $PATH (and for Emacs to be able | |
| ;; to see your path!). This only works on MacOS, although it could be adapted | |
| ;; for Linux with replacements for pbcopy and textutil (if necessary). | |
| ;; get region or beginning of buffer | |
| (defun wm/begin () | |
| (if (region-active-p) | |
| (region-beginning) | |
| (point-min))) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env ruby | |
| if ARGV.empty? | |
| puts "Usage: #{__FILE__} filename [directory]\n\n" | |
| puts "The file 'filename' will be split at each Markdown h1 ('# ') header. If" | |
| puts "'directory' is specified, it will be used as the output directory." | |
| puts "Otherwise files will be written to the current directory.\n\n" | |
| exit(2) | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| format=${1:-markdown_github} | |
| exec pandoc -f $format -t ~/bin/bbcode.lua |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Capistrano Laravel 4 Deployment Tasks | |
| # Watts Martin (layotl at gmail com) | |
| # https://gist.github.com/chipotle/5506641 | |
| # updated 14-Aug-2013 | |
| # Assumptions: | |
| # | |
| # - You are using a .gitignore similar to Laravel's default, so your | |
| # vendor directory and composer(.phar) are *not* under version control | |
| # - Composer is installed as an executable at /usr/local/bin/composer |