If multiple input files are given, pandoc will concatenate them all (with blank lines between them) before parsing. -- from Pandoc website
Pandoc command:
pandoc -s input1.md input2.md input3.md -o output.html
| <?php | |
| /** | |
| * mb_str_pad | |
| * | |
| * @param string $input | |
| * @param int $pad_length | |
| * @param string $pad_string | |
| * @param int $pad_type | |
| * @return string |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8" /> | |
| <title>Single and Double Click</title> | |
| <link rel="stylesheet" type="text/css" href="style.css"> | |
| </head> | |
| <body> | |
| <div id="the_div"></div> | |
| <span>Double click the block</span> |
| #!/bin/bash | |
| if [ "$1" = "-h" -o "$1" = "--help" -o -z "$1" ]; then cat <<EOF | |
| appify v3.0.1 for Mac OS X - http://mths.be/appify | |
| Creates the simplest possible Mac app from a shell script. | |
| Appify takes a shell script as its first argument: | |
| `basename "$0"` my-script.sh |
| <?php | |
| function combos($data, &$all = array(), $group = array(), $val = null, $i = 0) { | |
| if (isset($val)) { | |
| array_push($group, $val); | |
| } | |
| if ($i >= count($data)) { | |
| array_push($all, $group); | |
| } else { | |
| foreach ($data[$i] as $v) { |
| #!/usr/bin/env ruby | |
| # List all keys stored in memcache. | |
| # Credit to Graham King at http://www.darkcoding.net/software/memcached-list-all-keys/ for the original article on how to get the data from memcache in the first place. | |
| require 'net/telnet' | |
| headings = %w(id expires bytes cache_key) | |
| rows = [] |
| <?php | |
| # Nginx don't have PATH_INFO | |
| if (!isset($_SERVER['PATH_INFO'])) { | |
| $_SERVER['PATH_INFO'] = substr($_SERVER["ORIG_SCRIPT_FILENAME"], strlen($_SERVER["SCRIPT_FILENAME"])); | |
| } | |
| $request = substr($_SERVER['PATH_INFO'], 1); | |
| $file = $request; | |
| $fp = @fopen($file, 'rb'); |
| <?php | |
| //This part would be included in the controller itself like so: | |
| class Articles_Controller extends Controller { | |
| public function __construct() { | |
| parent::__construct(); | |
| $this->filter('before', 'csrf')->on('post'); | |
| $this->filter('before', 'ajax')->only(array('index', 'show', 'update')); | |
| } |
| #!/usr/bin/python | |
| # | |
| # (originally entered at https://gist.github.com/1035399) | |
| # | |
| # License: GPLv3 | |
| # | |
| # To download the AFINN word list do: | |
| # wget http://www2.imm.dtu.dk/pubdb/views/edoc_download.php/6010/zip/imm6010.zip | |
| # unzip imm6010.zip | |
| # |
| <?php | |
| function get_combinations($arrays) { | |
| $result = array(array()); | |
| foreach ($arrays as $property => $property_values) { | |
| $tmp = array(); | |
| foreach ($result as $result_item) { | |
| foreach ($property_values as $property_value) { | |
| $tmp[] = array_merge($result_item, array($property => $property_value)); | |
| } |
If multiple input files are given, pandoc will concatenate them all (with blank lines between them) before parsing. -- from Pandoc website
Pandoc command:
pandoc -s input1.md input2.md input3.md -o output.html