Skip to content

Instantly share code, notes, and snippets.

View stovak's full-sized avatar
😀

Tom Stovall stovak

😀
View GitHub Profile
@somecolor = #ff4300;
h1 {
background: transparent url("data:image/svg+xml;utf8,<svg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' width='21.038px' height='8.001px' viewBox='89.624 95.333 21.038 8.001' enable-background='new 89.624 95.333 21.038 8.001' xml:space='preserve'><polygon fill='@{somecolor}' points='110.662,95.333 100.144,103.334 89.624,95.333 '/></svg>") no-repeat 0px 50px;
a { background: transparent @logoimage no-repeat -3px center; }
}
@stovak
stovak / gist:1380472
Created November 20, 2011 16:50
RightScript to install LAMP/drush/Drush make
#!/bin/bash -ex
logger -t RightScale "\n\nStarting Script..."
/usr/bin/apt-get update
logger -t RightScale "\n\nApt-Get Update..."
/usr/bin/apt-get -y -q upgrade
logger -t RightScale "\n\nAutoremove/Autoclean..."
/usr/bin/apt-get autoremove
@stovak
stovak / gist:1343996
Created November 7, 2011 01:48
Touch events for jQuery Cycle
Drupal.settings.isTouchDevice = function() {
return "ontouchstart" in window;
}
if ( Drupal.settings.isTouchDevice() ) {
Drupal.behaviors.jQueryMobileSlideShowTouchAdvance = {
attach: function(context, settings) {
self = Drupal.behaviors.jQueryMobileSlideShowTouchAdvance;
jQuery.each(jQuery(".views_slideshow_cycle_main.viewsSlideshowCycle-processed"), function(idx, value) {
value.addEventListener("touchstart", self.handleTouchStart);