Skip to content

Instantly share code, notes, and snippets.

@galarant
galarant / gist:e8e667ee7b3442a4f8aa
Last active August 29, 2015 14:19
basic loom workflow

Workflow for Tickets:

  1. in JIRA, move your ticket to "In Progress"
  2. make sure your current branch is clean: git status
  3. checkout the latest release: git checkout [release_branch_name]
  4. pull the upstream changes on the latest release branch: git pull origin [release_branch_name]
  5. create and checkout a working branch off of the release: git checkout -b [working_branch_name]
  6. do your work on the branch
  7. when work is finished, stage your changes: git add .
  8. commit the staged changes: git commit -m 'descriptive commit message'
  9. make sure your branch is clean: git status
@madrobby
madrobby / gist:3202087
Created July 29, 2012 22:01
Fallback to PNG if SVG is not supported
<!-- example for the http://retinafy.me ebook -->
<style>
div.rss {
background: url(rss.svg);
width: 32px;
height: 32px;
}
body.no-svg div.rss {
@mbostock
mbostock / .block
Last active September 30, 2017 16:53
Smooth Scrolling
license: gpl-3.0
@jacine
jacine / .htaccess
Created December 1, 2011 23:10
My favorite Drupal trick for local theme development
# Find this line and insert the code below it (adapted to use your sitename/server).
# RewriteBase /
# Use files on the dev server instead of syncing them locally.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^sites/sitename/(files/.*)$ http://dev.whatever.com/sites/sitename/$1 [L,QSA]