Skip to content

Instantly share code, notes, and snippets.

View bryceroney's full-sized avatar

Bryce Roney bryceroney

View GitHub Profile
@media(max-width:768px){ /* this means the code only shows on mobile screens */
p { /* set this to appropriate element */
font-size: 0.5em; /* set this to font size */
}
}
@bryceroney
bryceroney / nb_hook
Created December 2, 2015 05:55
nb_hook_lambda.js
exports.handler = function( event, context ) {
var request = require('request');
var url = "https://beta.campaigncentral.org.au/api/Import/?m=eyJPSUQiOjM4NzAsIlMiOnsiTmFtZSI6IlByZWZpbGwiLCJNYXAiOnsiTGFzdE5hbWUiOiJRMSIsIkZpcnN0TmFtZSI6IlEyIiwiU3VidXJiIjoiUTQiLCJQb3N0Y29kZSI6IlEzIiwiSGFuZGxlIjoiUTUiLCJNb2JpbGUiOiJRNiJ9LCJJIjpbeyJUUEMiOiJRNyIsIkQiOiIiLCJUQUciOiJROCIsIkRBVCI6IiIsIkRVRSI6IiIsIlMiOiJROSIsIk1TIjoiUTEwIn1dLCJBY3Rpdml0aWVzIjpbeyJJZCI6MX0seyJJZCI6Mn0seyJJZCI6M30seyJJZCI6NH0seyJJZCI6NX0seyJJZCI6Nn0seyJJZCI6N30seyJJZCI6OH0seyJJZCI6OX0seyJJZCI6MTB9LHsiSWQiOjExfSx7IklkIjoxMn0seyJJZCI6MTN9LHsiSWQiOjI5fSx7IklkIjozMH0seyJJZCI6MzF9LHsiSWQiOjMyfSx7IklkIjozM30seyJJZCI6MzR9LHsiSWQiOjM1fSx7IklkIjozNn0seyJJZCI6Mzd9LHsiSWQiOjM4fSx7IklkIjozOX0seyJJZCI6NDB9LHsiSWQiOjQxfSx7IklkIjo0Mn0seyJJZCI6NDN9LHsiSWQiOjQ0fSx7IklkIjo0NX0seyJJZCI6NDZ9LHsiSWQiOjQ3fSx7IklkIjo0OH0seyJJZCI6NDl9LHsiSWQiOjUwfSx7IklkIjo1MX0seyJJZCI6NTJ9LHsiSWQiOjUzfSx7IklkIjo1NH0seyJJZCI6NTV9LHsiSWQiOjU2fSx7IklkIjo1N30seyJJZCI6NTh9XSwiSGFuZGxlUHJvdmlkZ
@bryceroney
bryceroney / Gulpfile.js
Created February 29, 2016 23:19
Template Gulpfile
var gulp = require('gulp'),
wiredep = require('wiredep').stream,
sass = require('gulp-sass'),
nano = require('gulp-cssnano'),
uncss = require('gulp-uncss'),
server = require('gulp-server-livereload')
gulp.task('bower', function() {
gulp.src('./app/*.html')
//
google.load('visualization', '1', { 'packages': ['corechart', 'table', 'geomap'] });
var FusionTableID = '1WFNhmPPyOFAkXZ0TmdFrSOQUlpvubquE2BN8jFXM';
var map;
var geocoder;
var infowindow;
var marker;
// Load the Google Geocoding API
<?php
/*
Plugin Name: Ninja Forms - Content Type Header
*/
add_filter( 'nf_remote_post_args', 'nf_add_content_type_headers' );
function nf_add_content_type_headers( $args ){
$headers = array(
@bryceroney
bryceroney / gist:acca5fd15b6bcd26d731851cd6f21040
Created March 10, 2017 02:42 — forked from douglasjarquin/gist:2208690
Amazon RDS Performance Tuning Settings
rds-modify-db-parameter-group {param-group-name} \
--parameters="name=character_set_server, value=utf8, method=pending-reboot" \
--parameters="name=collation_server, value=utf8_general_ci, method=pending-reboot" \
--parameters="name=tmp_table_size, value={DBInstanceClassMemory/16}, method=pending-reboot" \
--parameters="name=max_heap_table_size, value={DBInstanceClassMemory/16}, method=pending-reboot" \
--parameters="name=query_cache_type, value=1, method=pending-reboot" \
--parameters="name=query_cache_size, value=131072, method=pending-reboot" \
--parameters="name=table_open_cache, value=2500, method=pending-reboot" \
--parameters="name=join_buffer_size, value={DBInstanceClassMemory/64}, method=pending-reboot" \
--parameters="name=thread_cache_size, value={DBInstanceClassMemory/12582880}, method=pending-reboot" \
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2016-09-27 11:25:31> Program: Starting Squirrel Updater: --install .
2016-09-27 11:25:31> Program: Starting install, writing to C:\Users\bryce\AppData\Local\SquirrelTemp
2016-09-27 11:25:31> Program: About to install to: C:\Users\bryce\AppData\Local\slack
2016-09-27 11:25:31> CheckForUpdateImpl: Couldn't write out staging user ID, this user probably shouldn't get beta anything: System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\bryce\AppData\Local\slack\packages\.betaId'.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromPro
<?xml version="1.0" encoding="utf-8" ?>
<kml xmlns="http://www.opengis.net/kml/2.2">
<Document id="root_doc">
<Folder><name>general2</name>
<Placemark>
<name>Upper Harbour</name>
<Style><LineStyle><color>ff0000ff</color></LineStyle><PolyStyle><fill>0</fill></PolyStyle></Style>
<Polygon><altitudeMode>clampToGround</altitudeMode><outerBoundaryIs><LinearRing><altitudeMode>clampToGround</altitudeMode><coordinates>174.74275,-36.77183 174.73555,-36.77629 174.73373,-36.78036 174.71879,-36.77737 174.7077,-36.78466 174.70287,-36.78508 174.69552,-36.78102 174.68345,-36.78526 174.6761,-36.79172 174.6746,-36.81468 174.65205,-36.81945 174.64133,-36.82562 174.64078,-36.83179 174.63188,-36.83893 174.62899,-36.8468 174.61856,-36.85498 174.60602,-36.85572 174.60208,-36.85057 174.60485,-36.84637 174.5945,-36.84186 174.60158,-36.83658 174.60779,-36.82845 174.60744,-36.82152 174.61456,-36.8185 174.61332,-36.81304 174.62561,-36.806 174.65215,-36.79267 174.65052,-36.78564 174.66345,-36.78152 174.66259,-36.76963 174.67315
This file has been truncated, but you can view the full file.
<?xml version="1.0" encoding="utf-8" ?>
<kml xmlns="http://www.opengis.net/kml/2.2">
<Document id="root_doc">
<Folder><name>maori</name>
<Placemark>
<name>Te Tai Tokerau</name>
<Style><LineStyle><color>ff0000ff</color></LineStyle><PolyStyle><fill>0</fill></PolyStyle></Style>
<MultiGeometry><Polygon><altitudeMode>clampToGround</altitudeMode><outerBoundaryIs><LinearRing><altitudeMode>clampToGround</altitudeMode><coordinates>175.9033,-36.258285,0 175.628116,-36.385033,0 175.544525,-36.383057,0 175.543519,-36.383033,0 175.446388,-36.380661,0 175.416921,-36.379889,0 175.251019,-36.399724,0 175.18066,-36.499979,0 175.163084,-36.523934,0 175.203887,-36.594935,0 175.010545,-36.732433,0 174.955309,-36.775106,0 174.927724,-36.793699,0 174.927466,-36.793878,0 174.927207,-36.794058,0 174.926949,-36.794237,0 174.926691,-36.794418,0 174.926434,-36.794598,0 174.926177,-36.794779,0 174.925921,-36.794961,0 174.925666,-36.795143,0 174.925412,-36.795326,0 174.925159,-36.79551,0 174.924908,-36.795694,0 174.924658,-36.7