Skip to content

Instantly share code, notes, and snippets.

View oobleck's full-sized avatar
⌨️
clickety-click-click

Spencer R. oobleck

⌨️
clickety-click-click
View GitHub Profile
@oobleck
oobleck / resume.json
Last active November 12, 2024 05:18
JSONResume
{
"basics": {
"name": "Spencer Rhodes",
"label": "User Interface Developer",
"image": "https://avatars.githubusercontent.com/u/440719?v=4",
"email": "[email protected]",
"phone": "",
"url": "https://spencerrhodes.dev",
"summary": "I'm a front-end web developer with a passion for creating visually stunning and user-friendly applications and websites. My background in art and design also gives me a unique perspective in my work, and my diverse interests in science, technology, and music, always drive me to learn something new. I am a curious and inquisitive person who is dedicated to always improving my skills and abilities.",
"profiles": [
@oobleck
oobleck / _mat-palette.scss
Created July 14, 2022 18:36
Material palette generator
// Material palette generator
// Taken from https://sparagino.it/2020/06/09/sass-only-material-angular-palette-generator/
@use 'sass:math';
@use 'sass:map';
$values: (50, 100, 200, 300, 400, 500, 600, 700, 800, 900, A100, A200, A400, A700);
@function create-palette($color) {
$white: #fff;
$black: #000;
@oobleck
oobleck / bb-long-polling.js
Last active August 29, 2015 14:16
Backbone long polling module
/**
* Long Polling module for Backbone.
*
* @requires jQuery >= 1.7
* @param {Library} $ jQuery
* @param {Library} Backbone Backbone
* @demo http://codepen.io/oobleck/pen/dPjYXo?editors=101
* @example
* // Assuming we're in a Backbone.View:
* this.longPoll(opts)
@oobleck
oobleck / insecticide.js
Last active August 29, 2015 14:12
Tiny pesticide clone from Addy Osmani and friends. It outlines every unique tag type in a color for DOM visualization.
// Gathered & compiled from https://gist.github.com/addyosmani/fd3999ea7fce242756b1
for(i=0;A=$$("html /deep/ *")[i++];)A.style.outline="solid hsl("+parseInt(A.tagName,36)+",99%,50%)1px"
// Or the no color onion layer version
for(i=0;A=$$("*")[i++];)A.style.backgroundColor="rgba(0,0,0,0.01)"
@oobleck
oobleck / newMac.sh
Last active August 29, 2015 14:06
Homebrew + Cask quick install for new mac bootstrapping
#!/bin/sh
function main () {
export base_casks=('google-chrome' 'firefox' 'alfred' 'textwrangler' 'dropbox' 'google-drive' 'controlplane' 'slimbatterymonitor' 'cyberduck' 'monolingual' 'transmission')
export utils_casks=('quicklook-csv' 'betterzipql')
export dev_casks=('brackets' 'sublime-text' 'filezilla' 'sourcetree' 'quicklook-json' 'prepros')
export viz_casks=('gimp' 'inkscape' 'picasa')
export cli_casks=('wget' 'node' 'git' 'htop')
export cask_path=`which brew`
// ==UserScript==
// @name JIRA Enhancements
// @namespace https://github.com/oobleck
// @version 0.0.01
// @updateURL https://gist.github.com/oobleck/c3dafe79c7acb8fbebd5
// @downloadURL https://gist.github.com/oobleck/c3dafe79c7acb8fbebd5/raw/bugzilla-enhancements.user.js
// @description Enhances bugzilla. Several fixes that were sadly lost when Userscripts.org went belly up.
// @include http://jira-jira.host.beaconama.net*
// @run-at document-end
// @copyright 2014+, Spencer Rhodes
@oobleck
oobleck / bmi-helper.user.js
Last active August 29, 2015 14:02
BMI Helper UserScript
// ==UserScript==
// @name Beacon Environment Hilighter
// @namespace https://beaconama.net/
// @version 0.0.3
// @description Make it more obvious which environment you're looking at
// @match *://beaconama.net/*
// @match *://*.beaconama.net/*
// @copyright 2014+, You
// ==/UserScript==
@oobleck
oobleck / bugzilla-enhancements.user.js
Last active August 29, 2015 14:02
Bugzilla enhancements
// ==UserScript==
// @name Bugzilla Enhancements
// @namespace https://github.com/oobleck
// @version 0.0.4
// @updateURL https://gist.github.com/oobleck/c3dafe79c7acb8fbebd5
// @downloadURL https://gist.github.com/oobleck/c3dafe79c7acb8fbebd5/raw/bugzilla-enhancements.user.js
// @description Enhances bugzilla. Several fixes that were sadly lost when Userscripts.org went belly up.
// @match *://*/bugzilla/*
// @copyright 2014+, Spencer Rhodes
// @require http://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js
@oobleck
oobleck / jquery.debounce.js
Created March 9, 2014 03:02
jQuery: Debounce method in jQ namespace. See comments for original script
// Source: http://stackoverflow.com/a/4298672/2573965
;(function($) {
// http://en.wikipedia.org/wiki/Debounce#Contact_bounce
// Runs func after the calling event trigger completes. Useful for window resizes, etc.
$.fn.debounce = function debouncer( func , timeout ) {
var timeoutID , timeout = timeout || 200;
return function () {
var scope = this , args = arguments;
clearTimeout( timeoutID );
timeoutID = setTimeout( function () {
@oobleck
oobleck / jquery.equal-height.js
Created March 9, 2014 03:00
jQuery: My element height equalizing plugin.
/**
* jQuery plugin to equalize the dimensions of elements within a parent container.
* Author: Spencer Rhodes <spencer at spencer dash rhods dot com>
* License: MIT
*
* opts.method = ['height', 'outerHeight', 'innerHeight', 'width', 'outerWidth', 'innerWidth'].
* Defaults to 'outerHeight'.
* opts.children = selector for elements to equalize. Defaults to immediate children.
* opts.adjust = integer to adjust the final max value by. Defaults to 0
* opts.reset = not used