Skip to content

Instantly share code, notes, and snippets.

<?php
/**
* A Hack to generate mock WP Post objects from any arbitrary array
* A possible use case is to render a list of taxonomy terms using Oxygen Builder's repeater element,
* as the repeater allows only WP_Query as a source of data
*
* @author: Gagan S Goraya
* @link: https://gagangoraya.com
*
@oneyoung
oneyoung / export_nook_notes.py
Created April 24, 2014 03:59
Script to export Nook Reader's annotations
#!/usr/bin/env python2
import os
import tempfile
import sqlite3
class DBExportor(object):
def __init__(self, db=None):
if not db:
db = self.pullDB()