Skip to content

Instantly share code, notes, and snippets.

Ryan Brodie brod-ie

Block or report user

Report or block brod-ie

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
brod-ie / .aliases
Created Feb 10, 2014
Alias for easy `` use with GulpJS
View .aliases
alias gulp='gulp $1 --require coffee-script/register'
brod-ie / .osx
Created Apr 8, 2014
OS X: Save to disk (not to iCloud) by default
View .osx
# Ask for the administrator password upfront
sudo -v
# Save to disk (not to iCloud) by default
defaults write NSGlobalDomain NSDocumentSaveNewDocumentsToCloud -bool false
# Kill finder
killall "Finder" > /dev/null 2>&1
View HiddenSFViewController.m
#import "SafariServices/SafariServices.h"
// Init SFViewController with webpage that'll use the
// app's URL scheme to send result back to app
NSURL *url = [NSURL URLWithString:@""];
SFSafariViewController *sfvc = [[SFSafariViewController alloc] initWithURL:url];
// Configure to be hidden over existing VC
sfvc.view.hidden = YES;
sfvc.modalPresentationStyle = UIModalPresentationOverCurrentContext;
brod-ie / Asynchronous PHP cURL
Last active Dec 20, 2015
This is the best method I've found for single asynchronous cURL's in PHP (great for calling external API's once your own has finished handling the request).
View Asynchronous PHP cURL
function acURL($url, $fields = array(), $method = 'POST')
# Set method
$cmd = "curl -X ".$method;
# Build fields
foreach ($fields as $key => $value) {
$cmd .= " -F '".$key."'='".$value."'";
brod-ie / Slim.php
Last active Dec 20, 2015
`\Slim\View` class extension for use with the Mustache templating engine.
View Slim.php
class Mustache extends \Slim\View
public function render($template)
$mustache = new \Mustache_Engine(
'loader' => new Mustache_Loader_FilesystemLoader(__DIR__.'/'),
// ...
brod-ie / compiled.css
Last active Dec 22, 2015
CSS cursor property helper
View compiled.css {
cursor: auto !important;
.cursor.crosshair {
cursor: crosshair !important;
.cursor.default {
cursor: default !important;
brod-ie / PulsingCTA.html
Created Jan 12, 2016
Pulsing Call To Action Tap Target
View PulsingCTA.html
<!DOCTYPE html>
<html lang="en">
<meta charset="utf-8">
<style type="text/css">
body, html {
height: 100%;
background: #fff;
brod-ie /
Created Feb 8, 2016
Stop the maddening OS X dock's autohide delay
defaults write autohide-time-modifier -int 0
defaults write autohide-delay -float 0
killall Dock
brod-ie / example.sass
Created Aug 19, 2013
respond-to() SASS mixin for Bootstrap 3 grid system.
View example.sass
.profile-pic {
float: left;
width: 250px;
@include respond-to(xs) {
width: 100%;
@include respond-to(sm) {
width: 125px;
You can’t perform that action at this time.