Skip to content

Instantly share code, notes, and snippets.

View awbauer's full-sized avatar

Andrew Bauer awbauer

View GitHub Profile

Keybase proof

I hereby claim:

  • I am awbauer on github.
  • I am awbauer (https://keybase.io/awbauer) on keybase.
  • I have a public key whose fingerprint is 004B A83E 4500 18E4 529C B37A 89B5 3E0F 8F55 A85E

To claim this, I am signing this object:

@awbauer
awbauer / time_increment_1.txt
Created June 12, 2017 19:01
FB API: time_increment @ 1 vs "monthly"
=== Query
curl -i -X GET \
"https://graph.facebook.com/v2.9/act_xxxxxxxxx/insights?pretty=0&fields=reach&date_preset=last_month&time_increment=1&limit=50"
=== Parameters
- Query Parameters
{
"pretty": "0",
"fields": "reach",
@awbauer
awbauer / style.css
Last active April 25, 2016 13:50
Responsive tables
/* Snippet from http://www.bu.edu/law/wp-content/themes/r-law/style.css 04-25-2016 */
/* Theme by Interactive Design @ Boston University */
.scroll {
overflow: auto;
}
.scroll table {
width: 100%;
overflow: scroll;
@awbauer
awbauer / gist:dedc25ece327e2ae07d4
Created February 9, 2016 15:24
GravityForms Submission by CURL
curl 'http://www.bu.edu/wpmu/' \
-H 'Pragma: no-cache' \
-H 'Origin: http://www.bu.edu' \
-H 'Accept-Encoding: gzip, deflate' \
-H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.97 Safari/537.36' \
-H 'Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryAqAKELAIMMjKz5Gr' \
-H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8' \
-H 'Referer: http://www.bu.edu/' \
-H 'Connection: keep-alive' \
--data-binary $'------WebKitFormBoundaryAqAKELAIMMjKz5Gr\r\nContent-Disposition: form-data; name="input_1"\r\n\r\ntest\r\n------WebKitFormBoundaryAqAKELAIMMjKz5Gr\r\nContent-Disposition: form-data; name="is_submit_5"\r\n\r\n1\r\n------WebKitFormBoundaryAqAKELAIMMjKz5Gr\r\nContent-Disposition: form-data; name="gform_submit"\r\n\r\n5\r\n------WebKitFormBoundaryAqAKELAIMMjKz5Gr\r\nContent-Disposition: form-data; name="gform_unique_id"\r\n\r\n\r\n------WebKitFormBoundaryAqAKELAIMMjKz5Gr\r\nContent-Dis
@awbauer
awbauer / heartbeat-api-demo.php
Created October 11, 2015 01:50 — forked from strangerstudios/heartbeat-api-demo.php
Minimal example demonstrating the WordPress Heartbeat API being added in WP version 3.6.
<?php
/*
Plugin Name: Heartbeat API Demo
Plugin URI: http://www.strangerstudios.com/wp/heartbeat-api-demo
Description: Minimal example demonstrating the WordPress Heartbeat API being added in WP version 3.6.
Version: .1
Author: strangerstudios
If logged in as a user and viewing the frontend of your website,
every 15 seconds you should see the following in your Javascript console:
@awbauer
awbauer / preview.css
Created July 24, 2015 20:50
Google Books API Test
.hide {
display:none;
}
#image_preview{
display: block;
}
input[type="text"]{
width:100%;
}
@awbauer
awbauer / gist:0d42148ce46d4d67db93
Created July 20, 2015 14:19
iPhone test checklist

Confirmed:

  • iPhone 6 / iOS8
  • iPhone 6+ / iOS8
  • iPhone 5 / iOS8
  • iPhone 4 / iOS8
@awbauer
awbauer / app.js
Last active September 15, 2016 09:00
Slideshow in React JS https://jsfiddle.net/awbauer/s8vfe59L/
var _slideshow = {
"meta" : {
"name" : "Test Slideshow 1234",
"template" : "test-template"
},
"slides" : [
{
"order" : 0,
"name" : "Slide One2",
"image" : "//pbs.twimg.com/profile_images/591705916392759296/WNiT3izn.jpg"
@awbauer
awbauer / ga-dashboard-widget.css
Last active August 29, 2015 14:17
Google Analytics Dashboard widget for WordPress
/*
* Google
*/
.gapi-analytics-auth-styles-signinbutton :hover{
cursor: pointer;
}
/*
* Dash Widget
*/
(function ($) {
function trackBoxClick(link, box) {
var args;
try {
args = {
category: "CAS homepage",
action: "box click: "+box,
label: link
};
bu_ga_track_event(args);