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
JSON.Join = function(jsons) { | |
var retJson = {}; | |
for (var j1 in jsons) { for (var j2 in jsons[j1]) { retJson[j2] = jsons[j1][j2]; } } | |
return retJson; | |
}; |
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
package main | |
import ( | |
"github.com/bmizerany/pat" | |
"log" | |
"net/http" | |
"os" | |
) | |
func main() { |
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
/** | |
* Function that checks whether the command line input is valid. This | |
* method can handle input with spaces that are escaped inside | |
* quotation marks (either " or '). However this method will throw | |
* an Exception when either the input is empty or when the input | |
* is malformed. | |
* | |
* Malformed input occurs when there are an odd number of quotation | |
* marks in the input string, but only if there are more than one. | |
* |
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
<?php | |
/** | |
* PDF exporter for Mediawiki. This will load a specified content page and | |
* will append a seperate, specified cover page to the returning document. | |
* | |
* Requirements: | |
* - PHP 5.1+ | |
* - wkhtmltox (wkhtmltopdf) 0.12+ (http://www.wkhtmltopdf.org) | |
* - KnpLabs Snappy (https://github.com/KnpLabs/snappy/) | |
* - PDF Merger for PHP (http://pdfmerger.codeplex.com/) |
NewerOlder