Skip to content

Instantly share code, notes, and snippets.


Cullan Blumed

View GitHub Profile
Blumed /
Created Apr 24, 2018
Quickly print bootstrap 3 common grid numbers to terminal by running this script
echo "
$(tput bold)$(tput smul)Bootstrap $(tput setaf 6)V3.3.7$(tput sgr0)
$(tput setaf 7)$(tput bold)Grid$(tput sgr0)
$(tput setaf 7)\$$(tput setaf 5)screen-xs-min $(tput setaf 7)= $(tput setaf 6)0
$(tput setaf 7)\$$(tput setaf 5)screen-xs-max $(tput setaf 7)= $(tput setaf 6)767px
$(tput setaf 7)\$$(tput setaf 5)screen-sm-min $(tput setaf 7)= $(tput setaf 6)768px
Blumed /
Last active Nov 10, 2017 — forked from codeinthehole/
Script to install stuff I want on a new OSX machine
#!/usr/bin/env bash
# Bootstrap script for setting up a new OSX machine
# This should be idempotent so it can be run multiple times.
# Notes:
# - If installing full Xcode, it's better to install that first from the app
# store before running the bootstrap script. Otherwise, Homebrew can't access
Blumed / dynamicPreventDefault.js
Created Jun 22, 2017
Handy way to prevent default by adding logic to a click with # in href
View dynamicPreventDefault.js
$('a').on('click', function(e) {
if($(this).attr('href') === '#') {
Blumed / url-query-parser.js
Last active Apr 18, 2017
Create a query directory object out of a url.
View url-query-parser.js
let qd = {};
if (location.href) {
let re = /(\#|\&)/;
location.href.substr(1).split(re).forEach(item => {let [k,v] = item.split("="); v = v && decodeURIComponent(v).replace(/\+/g, " "); (qd[k] = qd[k] || []).push(v)})
//type qd into console to see all of the arrays created by script
Blumed / .inputrc
Created Apr 5, 2017
Script allows you to search history for a particular process or app instead of the entire line.
View .inputrc
"\e[A": history-search-backward
"\e[B": history-search-forward
set show-all-if-ambiguous on
set completion-ignore-case on
Blumed /
Last active Mar 26, 2017
A bash function that takes file extensions as arguments. You may pass as many as you want and output each file name matching your extension into a file so you can copy and past from it quickly or share your custom file list
filelist() {
if [ $# -gt 0 ]; then
shopt -s nullglob
for ext in "$@"; do
printf '%s\n' *.$ext
done | pbcopy
echo "copied listing for $@ files to clipboard"
shopt -s nullglob
Blumed / scss.json
Created Mar 6, 2017
Visual Studio Code Snippet - Bootstrap3 Media Query
View scss.json
"BS3 Media Query Snippet": {
"prefix": "bs-media",
"body": [
"@media ($minMax-width: \\$screen-$xsSmMdLg-$minMax) {\n\t$0\n}"
"description": "BS3 MediaQuery"
"BS3 Media Query Self Only Snippet ": {
"prefix": "bs-media-only",
"body": [
Blumed / snippets.dash
Last active Jan 29, 2017
Dash: Snippets
View snippets.dash
// Meeting formatting for Harvest
@cursor__JRIA TICKET/STORY NAME__ [bld]: __Development task as apart of your sprint__
@cursor__JRIA TICKET/STORY NAME__ [int]: __Development task required to support the backend team__

Keybase proof

I hereby claim:

  • I am blumed on github.
  • I am blumed ( on keybase.
  • I have a public key whose fingerprint is F011 8FBA F032 FCE8 3532 8EC6 5836 0366 9FCA 608F

To claim this, I am signing this object:

Blumed / 0_reuse_code.js
Created Aug 2, 2016
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
You can’t perform that action at this time.