Skip to content

Instantly share code, notes, and snippets.

View greylabel's full-sized avatar

Grant Gaudet greylabel

View GitHub Profile
@LeCoupa
LeCoupa / bash-cheatsheet.sh
Last active April 19, 2025 04:38
Bash CheatSheet for UNIX Systems --> UPDATED VERSION --> https://github.com/LeCoupa/awesome-cheatsheets
#!/bin/bash
#####################################################
# Name: Bash CheatSheet for Mac OSX
#
# A little overlook of the Bash basics
#
# Usage:
#
# Author: J. Le Coupanec
# Date: 2014/11/04
@cthos
cthos / gist:f241e181fba10501b8aa
Created August 12, 2014 14:04
Git Push to all Remotes
function git-push-all() {
for i in `git remote`; do
echo "Pushing to $i"
git push $i $1
done
}
@davereid
davereid / gist:5be00cb29c509ee3e64e
Created July 1, 2014 20:06
Getting Acquia to load the /drush/drushrc.php for site checkouts.
<?php
// ~/.drush/drushrc.php
if ($root = drush_get_option('root')) {
$drush_dir = str_replace('/docroot', '/drush', $root);
if (is_file($drush_dir . '/drushrc.php')) {
$options['config'] = $drush_dir . '/drushrc.php';
}
}
@JohnAlbin
JohnAlbin / _init.scss
Last active May 17, 2024 04:32
Handing IE8 and lower with Breakpoint + compass/support
// Initialize the Sass variables and partials used in this project.
// Set the legacy IE support variables. We override the default values set by
// the compass/support partial, but let styles-ie8.scss override these values.
$legacy-support-for-ie6 : false !default;
$legacy-support-for-ie7 : false !default; // Note the use of !default.
$legacy-support-for-ie8 : false !default;
// Partials to be shared with all .scss files.
import json
import urllib
import urllib2
import time
""" Nike plus activity log
https://developer.nike.com
Output:
-- May --
@becw
becw / example.install.php
Last active March 26, 2019 06:53
Enable/revert a feature in a Drupal update hook #drupal7
/**
* EXAMPLE FEATURE UPDATE
* Enable and revert the my_new_feature_name feature.
*/
function example_update_7001() {
// An array of new or changed features; the array keys are feature names,
// values are an array of exportable types as seen in a feature's .info file:
// features[field][] = node-page-body
$features = array(
'my_new_feature_name' => array('field', 'variable'),
@jacine
jacine / retina.md
Created October 17, 2012 18:36
Automated Retina Sprites with Compass

Automated Retina Sprites with Compass

I asked the following on Twitter the other day:

Thoughts, anyone? "Seems like there are a million ways to do retina sprites with Compass. What's the best way? #sass #compass" tweet

Specifically, what I wanted to do was to reference an icon once, like so:

.selector {
  @include the-sprite('once');
@webbj74
webbj74 / CHEATSHEET.md
Created September 26, 2012 14:54
Generic Git Cheatsheet

Git Cheatsheet

Add an upstream remote repo

git remote add <name> <url>
git remote add upstream [email protected]:central-github-repo-username/sitename.git
@eaton
eaton / gist:3768758
Created September 23, 2012 03:40 — forked from saetia/gist:1623487
Clean Install – Mountain Lion OS X 10.8
@kenwoodworth
kenwoodworth / BlendedButtons.scss
Created August 22, 2012 12:25
An example of a button style that adapts to a base color using the overlay blend-mode to adjust colors for effects.
$button-color: #ff6600;
%button-base {
@include adjust-font-size-to(14px, 1.5);
@include inline-block;
@include border-radius(6px);
font-weight: bold;
padding: 3px 30px;
position: relative;
text-decoration: none;