Skip to content

Instantly share code, notes, and snippets.

@musicalbigfoot
musicalbigfoot / gist:4424517
Created January 1, 2013 01:19
HTML: Starting Template
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
</head>
<body>
<h1>Test Update</h1>
@musicalbigfoot
musicalbigfoot / gist:4428947
Last active December 10, 2015 11:38
JavaScript: jQuery .post to ajax controller
var postdata = {varname:varvalue};
$.post("/ajax/", postdata, function(data) {
console.log(data);
return false;
},'json');
@musicalbigfoot
musicalbigfoot / gist:4496049
Created January 9, 2013 19:26
Foundation: Button Group
<ul class="button-group two-up radius">
<li><a href="#" class="button radius">Button 1</a></li>
<li><a href="#" class="button radius">Button 2</a></li>
</ul>
@musicalbigfoot
musicalbigfoot / gist:4577366
Created January 20, 2013 08:56
CSS: Transition All
-webkit-transition: all .5s ease-in-out;
-moz-transition: all .5s ease-in-out;
-ms-transition: all .5s ease-in-out;
-o-transition: all .5s ease-in-out;
transition: all .5s ease-in-out;
@musicalbigfoot
musicalbigfoot / gist:4637456
Created January 25, 2013 20:14
CSS: Outline Text Shadow
text-shadow: -1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, 1px 1px 0 #000;
@musicalbigfoot
musicalbigfoot / gist:4667005
Created January 29, 2013 19:37
PHP: NOC2 Employees List
$employees = ORM::factory('user')
->where('type','=','employee')
->and_where('active','=',TRUE)
->find_all();
$locs = ORM::factory('location')
->where('active','=',TRUE)
->order_by('location','asc')
->find_all();
@musicalbigfoot
musicalbigfoot / gist:4680644
Created January 31, 2013 05:59
JavaScript: jQuery Animate - Basic
thing.animate({
opacity : '0.5',
left : '+=50'
}, 800);
/*------------------------------------------------*/
/*-----------------[RESET]------------------------*/
/*------------------------------------------------*/
/* http://meyerweb.com/eric/tools/css/reset/ */
/* v1.0 | 20080212 */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
@musicalbigfoot
musicalbigfoot / gist:5602951
Created May 18, 2013 01:58
CSS: Rotate Element
transform:rotate(-6deg);
-o-transform:rotate(-6deg);
-ms-transform:rotate(-6deg);
-moz-transform:rotate(-6deg);
-webkit-transform:rotate(-6deg);
@musicalbigfoot
musicalbigfoot / gist:5605976
Created May 18, 2013 22:32
XML: Holo Colors
<resources>
<color name="Tombstone">#4C4C4C</color>
<color name="Charcoal">#3C3C3D</color>
<color name="AlmostBlack">#303030</color>
<color name="BlueLight">#33b5e5</color>
<color name="BlueDark">#0099cc</color>
<color name="BlueBright">#00ddff</color>
<color name="PurpleLight">#AA66CC</color>