Skip to content

Instantly share code, notes, and snippets.

View aaronpk's full-sized avatar

Aaron Parecki aaronpk

View GitHub Profile
<div class="h-entry">
<a href="http://aaronparecki.com" class="u-author h-card">Aaron Parecki</a>
updated <a href="http://aaronparecki.com" class="u-edit-of">his</a> profile photo
<div class="p-update h-card"><img src="http://example.com/photo2.jpg" class="u-photo"></div>
at <time datetime="2015-05-27T13:37-0700">13:37</time>
</div>

Creating a Post

Creating a post, specifying properties from the microformats2 vocab. The type and properties map to the output of the Microformats 2 parsed result.

Form-encoded requests have a property h=* which specifies the type of object being created. All other properties are considered properties of the object being created.

h=entry&
content=hello+moon&
category[]=indieweb&amp;
@aaronpk
aaronpk / _howto.md
Last active May 2, 2024 01:11
How to compile and install spatialite on iOS

Spatialite for iOS

Install compiler dependencies

brew install automake autoconf libtool libxml2 pkg-config
brew link libxml2

Build libspatialite

dataset = DB['INSERT INTO foo (bar) VALUES ?', :$bar]
dataset.prepare(:insert, :run_insert)
DB.call :run_insert, :bar => 100
<tbody class="h-entry">
<tr class="athing">
<td align="right" valign="top" class="title">
<span class="rank">19.</span>
</td>
<td>
<center><a id="up_9443241" onclick="return vote(this)" href="vote?for=9443241&amp;dir=up&amp;auth=4f617c803a44687927291cd133ac825ca9e61c4b&amp;goto=news"><div class="votearrow" title="upvote"></div></a></center>
</td>
<td class="title">
<span class="deadmark"></span>
[
{
"x": 0,
"Foo": 12,
"Bar": 3
},
{
"x": 1,
"Foo": 24,
"Bar": 9
items:
- type:
- h-entry
properties:
author:
- type:
- h-card
properties:
name:
- Aaron Parecki
@aaronpk
aaronpk / init-script
Created March 20, 2015 19:36
adjust paths appropriately
# This file goes in something like
# /etc/init/service-name
start on runlevel [2345]
stop on runlevel [016]
respawn
exec sudo -u www /full/path/to/start.sh >> /var/log/worker.log 2>&1
@aaronpk
aaronpk / parsed.json
Created February 24, 2015 16:23
Adding some microformats2 classes to an RSS 2.0 feed: http://scripting.com/rss.xml
{
"items": [
{
"type": [
"h-feed"
],
"properties": {
"name": [
"Scripting News"
{
"type": [
"h-entry"
],
"properties": {
"bookmark": [
{
"type": [
"h-cite"
],