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
<blockquote> | |
<p>The is a quote from the linked page. <a href="www.example.com">§</a></p> | |
</blockquote> | |
<p>This is my comment on the link.</p> | |
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 | |
cnt = 1 | |
cmd = ARGV[0] | |
file = ARGV[1] | |
begin | |
if cmd == "unzip" | |
system "unzip", "-q", file | |
ARGV.replace ["OPS/toc.ncx"] | |
elsif cmd == "zip" |
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 | |
toc = "# Table of Contents\n" | |
newmd = "" | |
ARGF.each_line do |line| | |
newmd << line | |
next if !line.start_with?("#") | |
heading = line.gsub("#", "").strip |
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 | |
table = "~~\n~~ <table>\n" | |
ARGF.each_line do |line| | |
table << "~~ <tr>\n" | |
row = table =~ /th/ ? "td" : "th" | |
line.chomp.split('|').each {|cell| table << "~~ <#{row}>#{cell}</#{row}>\n" } | |
table << "~~ </tr>\n" | |
end |
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 | |
require 'xmlrpc/client' | |
wordpress = XMLRPC::Client.new_from_hash( | |
{ "host" => "yourblogname", | |
"user" => "yourWPusername", | |
"password" => "yourWPpassword", | |
"use_ssl" => nil, #change to true if hosted on SSL | |
#-------------------------------------------------------# |
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
require 'xmlrpc/client' | |
wordpress = XMLRPC::Client.new_from_hash( | |
{ "host" => "yourblogurl", | |
"user" => "yourWPusername", | |
"password" => "yourWPpassword", | |
"use_ssl" => nil, #change to true if hosted on SSL | |
#-------------------------------------------------------# | |
"path" => "/xmlrpc.php" | |
}) |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>local.ulysses-backup</string> | |
<key>ProcessType</key> | |
<string>Adaptive</string> | |
<key>ProgramArguments</key> | |
<array> |
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
[ | |
{ | |
"name": "Minnow-KB", | |
"author": "Jennifer Mack", | |
"background": { | |
"name": "Bamboo", | |
"style": "background-image: url('/bg/wood/bamboo.jpg');" | |
}, | |
"radii": "5px", | |
"switchMount": "cherry", |
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
// Redirecting (http => https) server, will finish request before shutting down. | |
// All-in-one file for example purposes | |
// Everything below main would normally go into a `server.go` file to reduce clutter. | |
// Redirection is normally on, and can be disabled with `-redir=false` on the command line. | |
// Use with dummy certs for testing. | |
package main | |
import ( | |
"context" |
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
package main | |
import ( | |
"bytes" | |
"flag" | |
"fmt" | |
"text/tabwriter" | |
"time" | |
) |