Skip to content

Instantly share code, notes, and snippets.

Devon Campbell raddevon

Block or report user

Report or block raddevon

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
raddevon / gist:67935d320ee9b726d19d
Created Jan 17, 2016
Adobe tries to strong-arm me into keeping Creative Cloud
View gist:67935d320ee9b726d19d
Chaitra: Hello! Welcome to Adobe Customer Service.
Me: Hello
Chaitra: Hi Devon
Chaitra: I understand that you wish to cancel your subscription, let me help you with that.
Chaitra: May I know the reason for cancellation please?
Me: I'm not using the software enough to justify the cost.
Chaitra: Thank you for the information.
Me: No problem!
Chaitra: I have checked and see that you have Creative Cloud membership (one-year) subscription, which was purchased on 18 Jun 2013.
Chaitra: Before you decide to cancel your subscription, let me give you an offer.
raddevon / modal-focus.js
Created Oct 19, 2015 — forked from anonymous/modal-focus.js
Focus first text input on Bootstrap modal show
View modal-focus.js
(function ($) {
var _original = $;
function trigger(target, name, relatedTarget) {
target.trigger($.Event(name, { relatedTarget: relatedTarget }));
$.extend($.fn.modal.Constructor.prototype, {
show: function (_relatedTarget) {
var thisModal = this;
raddevon / gist:7e4dff70a200077ea922
Last active Aug 29, 2015
Shell script to install Vim plugins for spf13 users
View gist:7e4dff70a200077ea922
function vimp() {
for plugin
if grep -q "$plugin" ~/.vimrc.bundles*
echo "$plugin already installed"
echo "Adding $plugin to bundles config"
echo Bundle \"$plugin\" >> ~/.vimrc.bundles.local
raddevon / gulpfile.js
Created May 19, 2014
Sample gulpfile from a recent project
View gulpfile.js
var gulp = require('gulp');
// Using this plugin, you won't manually have to require each plugin you add. This does the work for you.
// Just remember you'll have to prepend 'plugins' to your plugin function when you build your tasks.
var gulpLoadPlugins = require('gulp-load-plugins');
// Turn lazy loading of plugins off to make the connect plugin work
var plugins = gulpLoadPlugins({lazy: false});
// Check out the autoprefixer docs to see how to build settings for gulp-autoprefixer
var prefixerSetting = ['last 1 versions', '> 1%'];
raddevon / openAnchorAccordion.js
Last active Oct 15, 2018
Open a Bootstrap accordion control if its anchor is target on page load
View openAnchorAccordion.js
// Opens accordion automatically if an accordion target is accessed from another page
// Assumes the accordion-group is the target linked to
function openAnchorAccordion() {
if (window.location.hash) {
var $target = $('body').find(window.location.hash);
if ($target.hasClass('accordion-group')) {
var $targetAccordion = $target.find('.collapse');
raddevon / anchorScrollOffset.js
Last active Jul 15, 2016
Anchor target fix for fixed navbar. Based on but with additions to avoid colliding with Bootstrap's JS widgets.
View anchorScrollOffset.js
// Creates an attribute pseudo-selector allowing for wildcards
jQuery.expr.pseudos.attr = $.expr.createPseudo(function(arg) {
var regexp = new RegExp(arg);
return function(elem) {
for(var i = 0; i < elem.attributes.length; i++) {
var attr = elem.attributes[i];
if(regexp.test( {
return true;
raddevon / gist:6424026
Created Sep 3, 2013
Makes a new directory and changes to it
View gist:6424026
function mcd() {
mkdir "$@" && cd "$@"
if [ ! -f "$RECEIPT_FILE" ]
echo "Command Line Tools not installed."
exit 1
echo "Command Line Tools installed, removing ..."
raddevon / headline_script.rb
Created Jun 26, 2013
Ruby script to flesh out the OnionOrNot headlines JSON file
View headline_script.rb
require 'net/http'
require 'uri'
require 'xmlsimple'
require 'json'
require 'pry'
def get_rss(url)
# Fetches an RSS feed from the URL
# Returns it as a Ruby object
uri = URI.parse(url)
raddevon / Gruntfile.js
Created Jun 21, 2013
Gruntfile for my personal site
View Gruntfile.js
var scripts = ['js/jquery-1.9.1.js', 'js/jquery.animate-enhanced.min.js','jquery.easing.min.js', 'js/**/*.js', '!js/scripts.js'];
module.exports = function (grunt) {
// Project configuration.
pkg: grunt.file.readJSON('package.json'),
jshint: {
options: {
You can’t perform that action at this time.