Skip to content

Instantly share code, notes, and snippets.

View scullygroup's full-sized avatar

Scully Group scullygroup

View GitHub Profile
@scullygroup
scullygroup / states.sql
Created January 2, 2009 15:59
US States SQL INSERT
CREATE TABLE IF NOT EXISTS `states` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`abbr` varchar(2) NOT NULL,
`name` varchar(250) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=52 ;
INSERT INTO `states` (`id`, `abbr`, `name`) VALUES
(1, 'AL', 'Alabama'),
(2, 'AK', 'Alaska'),
@scullygroup
scullygroup / gist:42543
Created January 2, 2009 14:40
sIFR snippet
<script type="text/javascript" charset="utf-8">
if(typeof sIFR == "function"){
sIFR.replaceElement(named({sSelector:"h1", sFlashSrc:"<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/swf/sifr.swf", sColor:"#404e1c", sWmode:"transparent"}));
sIFR.replaceElement(named({sSelector:"h2.contentheading, #content h2, #content h3", sFlashSrc:"<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/swf/sifr.swf", sColor:"#404e1c", sWmode:"transparent"}));
};
</script>
@scullygroup
scullygroup / swfobject embed code
Created December 19, 2008 20:12
swfobject embed code
var flashvars = {};
var params = {
menu: "false",
wmode: "transparent"
};
var attributes = {};
swfobject.embedSWF("swf/slideshow.swf", "flash-header", "1000", "317","9.0.0", "", flashvars, params, attributes);
@scullygroup
scullygroup / gist:37571
Created December 18, 2008 17:43
jQuery nav hover class
$('#main-nav ul li').each(function() {
$(this).hover(function() {
$(this).addClass('nav-on');
}, function() {
$(this).removeClass('nav-on');
});
});