Skip to content

Instantly share code, notes, and snippets.

@stugoo
stugoo / css
Created October 2, 2012 11:33
Stacked photo css only
.blocky_hold{
height: 101px;
width: 135px;
position: relative;
display: block;
}
.blocky{ border: 1px solid #fff;
height: 101px;
width: 135px;
display: block;
@stugoo
stugoo / html
Created July 4, 2012 10:23
datetime ticker
<article class="clock">
<ul>
<li class="time">
<h1>time</h1>
<time>
<span class="hours"></span>
<span class="minutes"></span>
<span class="seconds"></span>
</time>
@stugoo
stugoo / git clean up
Created June 24, 2012 16:53
cleanup deleted files in git
git add . -A
@stugoo
stugoo / checker.js
Created May 24, 2012 11:02
array builder for nesting arrays, checking categories and flange
var items = [];
// We're emulating indexOf, but for objects in the array.
// The function returns an integer (>=0), to the object that matched.
function in_property_array(property, value, arr) {
var i, max = arr.length, current;
for (i = 0; i < max; i++) {
if (arr[i][property] === value) {
return i;
@stugoo
stugoo / gist:2711536
Created May 16, 2012 15:54
session / local storage switcher
shortlistings = {
storeInSession: true,
killFunctions : function() {
// kill the functions
}
setStorage : function(type,store) {
var JSON_str = '';
JSON_str = JSON.stringify(store);