Skip to content

Instantly share code, notes, and snippets.

<?php
/*
Using WordPress as a REST API endpoint (vs AJAX Admin)
-- with caching using the Transient API --
forked from: Pete Nelson @GunGeekATX
1) Create a page called API in WordPres
2) Create a file called page-api.php in your theme directory
3) Build custom endpoints
/**************************************************************************
Perlin Noise
from https://gist.github.com/banksean/304522, in angular wrapper
**************************************************************************/
(function(window, angular, undefined){ 'use strict';
@iainmcampbell
iainmcampbell / gist-backup.py
Last active February 7, 2016 18:51 — forked from joneskoo/gist-backup.py
gist backup
#!/usr/bin/env python
# Git clone all my gists
import json
import urllib
from urllib import urlopen
from subprocess import call
import os