Skip to content

Instantly share code, notes, and snippets.

Brandon Toone btoone

Block or report user

Report or block btoone

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
btoone / .vimrc
Last active Apr 9, 2019
Vimrc for use with iVim on iOS
View .vimrc
" Set leader to be spacebar
let mapleader=" "
set hlsearch
set incsearch
set laststatus=2
set ruler
set history=100
set autoindent
set backspace=indent,eol,start
btoone /
Created May 12, 2016
Script to pull data from MemberPress using the WordPress Rest API
import json
if input['desc'] == 'MP Test':
membership = 14
elif input['desc'] == 'MP Example':
membership = 99
return {'status': 'Invalid button'}
# Get member_id
View bnfs_webhook.php
add_action('supstr-process-signup', 'bnfs_webhook_process_signup', 10, 1);
function bnfs_webhook_process_signup($atts) {
$webhook_url = '';
$args = array(
'method' => 'POST',
'timeout' => 30,
'redirection' => 5,
'httpversion' => '1.1',
btoone /
Last active Aug 29, 2015
Attempt to get $resource and $http to hit mapmyrun api
curl '' \
-H 'Referer:'
btoone / Vagrantfile
Last active Aug 29, 2015
Setup VM and Install Docker
View Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Install
# Adapted from
$script = <<SCRIPT
echo "[SCRIPT] Running as: `whoami`"

Keybase proof

I hereby claim:

  • I am caspyin on github.
  • I am caspyin ( on keybase.
  • I have a public key whose fingerprint is 5708 1010 8836 C17B 7159 B919 F9DC 5371 F98B C2C9

To claim this, I am signing this object:

btoone / ng-demo.html
Created Mar 28, 2014
Demo of Angular all in a single file.
View ng-demo.html
<!DOCTYPE html>
<html lang="en">
<title>AngularJS Routing example</title>
<link href="" rel="stylesheet">
body {
padding-top: 10px;
background-color: #F5F5F5;
View index.html.erb
<% @images.each do |image| %>
<li><%= link_to product_image_url(image) %></li>
<% end %>
You can’t perform that action at this time.