Skip to content

Instantly share code, notes, and snippets.

Cullan Blumed

Block or report user

Report or block Blumed

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
@Blumed
Blumed / bs-breaks.sh
Created Apr 24, 2018
Quickly print bootstrap 3 common grid numbers to terminal by running this script
View bs-breaks.sh
#!/bin/bash
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
Blumed / osx_bootstrap.sh
Last active Nov 10, 2017 — forked from codeinthehole/osx_bootstrap.sh
Script to install stuff I want on a new OSX machine
View osx_bootstrap.sh
#!/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
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') === '#') {
e.preventDefault();
}
});
@Blumed
Blumed / url-query-parser.js
Last active Apr 18, 2017
Create a query directory object out of a url.
View url-query-parser.js
//https://stackoverflow.com/questions/901115/how-can-i-get-query-string-values-in-javascript?page=1&tab=active#tab-top
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
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
Blumed / filelist.sh
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
View filelist.sh
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"
else
shopt -s nullglob
@Blumed
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
Blumed / snippets.dash
Last active Jan 29, 2017
Dash: Snippets
View snippets.dash
//-------------------------------
// Meeting formatting for Harvest
//-------------------------------
bld`
@cursor__JRIA TICKET/STORY NAME__ [bld]: __Development task as apart of your sprint__
int`
@cursor__JRIA TICKET/STORY NAME__ [int]: __Development task required to support the backend team__
View keybase.md

Keybase proof

I hereby claim:

  • I am blumed on github.
  • I am blumed (https://keybase.io/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
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.