Skip to content

Instantly share code, notes, and snippets.

View goldenapples's full-sized avatar

Nathaniel Taintor goldenapples

  • Human Made
  • Philadelphia, PA
View GitHub Profile
@goldenapples
goldenapples / calc.html
Created March 30, 2012 13:04
simple online earnings calculator
<html>
<head>
</head>
<body>
<form>
<p>
<label for="earnings">Earnings</label>
<input type="number" id="earnings" />
</p>
<p>
@goldenapples
goldenapples / gravityforms-richeditors.php
Created May 26, 2012 20:19
Rich text editors for Gravity Forms
<?php
/*
Plugin Name: Rich Text editors for Gravity Forms
Description: Converts the textarea fields in Gravity Forms to WordPress rich text editors
Author: Nathaniel Taintor
Author URI: http://goldenapplesdesign.com
Version: 1.0
License: GPLv2
*/
@goldenapples
goldenapples / flatfile.php
Created August 24, 2012 01:22
Flat file export, first pass...
<?php
/*
Plugin Name: Flat File Database
Description: Exports WP data into a series of flat files. Hence the name.
Author: goldenapples
Author URI: http://goldenapplesdesign.com
Version: 0.1
License: GPLv2
*/
@goldenapples
goldenapples / deploy.sh
Created September 21, 2012 17:55
BASH script for deploying WordPress content changes from staging to production
#!/bin/bash
# A BASH script for deploying WordPress content changes
# from staging to production. Note: this works for me because both my
# staging and production share the same plugins folder, and I have permissions
# on all the appropriate directories to allow the user running the script to
# perform all the actions in here. May need tweaking for other setups.
STAGING_DIR="/var/www/staging-wpsite"
PRODUCTION_DIR="/var/www/wpsite"
STAGING_DB="staging_wpsite"
PRODUCTION_DB="wpsite"

Keybase proof

I hereby claim:

  • I am goldenapples on github.
  • I am goldenapples (https://keybase.io/goldenapples) on keybase.
  • I have a public key whose fingerprint is BD90 5A03 201A 2D18 C45D E759 2D1A 5757 81B4 F009

To claim this, I am signing this object:

@goldenapples
goldenapples / gist:52b3b7e4542d4554dac7
Created May 15, 2015 19:42
Speed Bumps API concept
// This should be all a theme has to do to register a speed bump and get it inserted
register_speed_bump(
'polar', // speedbump ID, just a hook in case it needs to be disabled on case-by-case basis anywhere else
10, // priority. WP uses priority integers like this a lot to look
// through arrays. The $_speed_bumps array would be sorted by
// priority and looped through, so that the speed bumps with the
// lowest priority get inserted first.
array(
// $args array. See http://codex.wordpress.org/wp_parse_args for an
1,30c1,25
< var $ = require('jquery');
<
< /**
< * Makes tables wider that the viewport "responsive" by setting their first
< * column as fixed position and allowing the remaining columns to be scrollable
< * horizontally.
< *
< * Based off code from http://zurb.com/playground/responsive-tables
< * Modified to be usable in our browserify system, and also to check the table
diff --git a/Users/nathaniel.taintor/Downloads/zurb-responsive-tables-0d34bc6/responsive-tables.js b/assets/js/src/responsive-tables.js
old mode 100755
new mode 100644
index 1a862f1..28c5595
--- a/Users/nathaniel.taintor/Downloads/zurb-responsive-tables-0d34bc6/responsive-tables.js
+++ b/assets/js/src/responsive-tables.js
@@ -1,67 +1,77 @@
-$(document).ready(function() {
- var switched = false;
- var updateTables = function() {
It was four in the afternoon,
and the fast little night animals
were turning around in the dark places.
The song making flying animals
were easily hurt
and the little green round animals from home yelled
Watch out for the scare-you animal, my son!
Its mouth that bites, its hands that catch.
meta_id post_id meta_key meta_value
733568 164786 bitly_url http://fus.in/1KV8p14
733569 164786 fusion_first_author 74055225
733570 164786 _edit_lock 1436563229:74055225
733571 164786 _edit_last 74055225
733576 164786 geo_public 0
733577 164786 fusion_production a:4:{s:14:"featured_media";a:4:{s:19:"featured_media_type";s:5:"image";s:14:"featured_video";N;s:18:"featured_rich_text";s:0:"";s:24:"image_vertical_alignment";s:6:"center";}s:13:"layout_design";a:1:{s:8:"subtitle";s:0:"";}s:3:"ads";a:5:{s:7:"ad_flag";s:0:"";s:13:"freewheel_tag";s:0:"";s:16:"freewheel_status";s:7:"enabled";s:12:"polar_status";s:7:"enabled";s:12:"teads_status";s:7:"enabled";}s:13:"recirculation";a:1:{s:17:"speed_bump_recirc";s:7:"enabled";}}
733578 164786 fusion_distribution a:5:{s:8:"facebook";a:3:{s:5:"title";s:0:"";s:11:"description";s:0:"";s:5:"image";i:164882;}s:7:"twitter";a:4:{s:10:"share_text";s:0:"";s:5:"title";s:0:"";s:11:"description";s:0:"";s:5:"image";i:164882;}s:9:"pinterest";a:2:{s:11:"description";s:0:"";s:5:"image";N;}