Skip to content

Instantly share code, notes, and snippets.

View JuggoPop's full-sized avatar

Brian C. Smith JuggoPop

View GitHub Profile
@JuggoPop
JuggoPop / SassMeister-input.scss
Created May 2, 2014 04:32
Generated by SassMeister.com.
// ----
// Sass (v3.3.6)
// Compass (v)
// ----
@import "compass";
@import "breakpoint";
// Dynamically check from 300 to/though 800 at every 99
// At every 99, write out a breakpoint.
@JuggoPop
JuggoPop / Git branch bash autocomplete *with aliases*
Created April 15, 2014 06:23
Git branch bash autocomplete *with aliases* (add to .bash_profile)
# To Setup:
# 1) Save the .git-completion.bash file found here:
# https://github.com/git/git/blob/master/contrib/completion/git-completion.bash
# 2) Add the following lines to your .bash_profile, be sure to reload (for example: source ~/.bash_profile) for the changes to take effect:
# Git branch bash completion
if [ -f ~/.git-completion.bash ]; then
. ~/.git-completion.bash
# Add git completion to aliases
@JuggoPop
JuggoPop / breakpoint.sublime-snippet
Created April 15, 2014 06:22
Sublime Text snippet to insert opening Sass Breakpoint
<!-- Use with custom keyboard shortcut and save 21 keystrokes: https://gist.github.com/lrobeson/9943119 -->
<snippet>
<content><![CDATA[
@include breakpoint() {
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>breakpoint</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.python</scope> -->
@JuggoPop
JuggoPop / script.js
Created February 18, 2014 18:35
Responsive JS --Run other JS on page load and on resize
function resizeStuff() {
// stuff you want to run on page load and resizes goes here
}
// Runs above function once on page load
// and again after window resize.
var TO = false;
$(window).resize(function () {
if (TO !== false) {
@JuggoPop
JuggoPop / settings.php
Created February 18, 2014 18:32
Set useful Drupal development environment variables in settings.php
/*
Set some useful development environment variables
*/
# change site name
$conf['site_name'] = 'SITENAME LOCAL';
# turn off caching & aggregation
$conf['cache'] = FALSE;
$conf['block_cache'] = FALSE;
@JuggoPop
JuggoPop / 0_reuse_code.js
Created February 5, 2014 23:07
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console