This file contains 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 | |
# Input: WordPress XML export file. | |
# Outputs: a series of Textile files ready to be included in a Jekyll site, | |
# and comments.yml which contains all approved comments with metadata which | |
# can be used for a Disqus import. | |
# Changes from the original gist: http://gist.github.com/268428 | |
# 1. Handles titles containing special characters. Those have to be YAML escaped | |
# 2. Use the original permalinks in wordpress. |
This file contains 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
$statuses = array( | |
'open' => array( | |
'id' => 1, | |
'name' => 'Open', | |
'type' => 'open', | |
'filteronly' => false, | |
'sql' => 'issues.status = 0' | |
), | |
'unassigned' => array( | |
'id' => -1, |
This file contains 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<script type="text/javascript" src="jquery-1.4.min.js"></script> | |
<script type="text/javascript" src="jquery.compat-1.3.js"></script> | |
<script type="text/javascript"> | |
$(document).ready(function() { | |
$('#admin .block.button').click(function() { | |
alert('Hello world!'); |
NewerOlder