Skip to content

Instantly share code, notes, and snippets.

View davetayls's full-sized avatar

Dave Taylor davetayls

View GitHub Profile
@davetayls
davetayls / dabblet.css
Created February 17, 2012 13:50
Move in a circle without wrapper elements
/**
* Move in a circle without wrapper elements
* Idea by Aryeh Gregor, simplified by Lea Verou
*/
@keyframes rot {
from {
transform: rotate(0deg)
translate(-150px)
rotate(0deg);
@davetayls
davetayls / changetogreen.css
Created January 4, 2012 15:40
test for @import multiple times
h1 { color: green; }
/*
concertina
---------------------------------------------*/
.concertina {
clear: both;
margin: 12px 0 30px 0;
padding:0;
border-bottom:1px solid #d9d9d9;
}
.concertina:after {
/*
Lighweight Concertina Plugin
<ul class="concertina">
<li>
<h2>header</h2>
<div>content</div>
</li>
<li>
<h2>header</h2>
<div>content</div>
@davetayls
davetayls / jquery.serializeObject.js
Created November 17, 2011 11:40
jQuery.serializeObject
/**
jQuery.serializeObject
http://stackoverflow.com/questions/1184624/serialize-form-to-json-with-jquery/1186309#1186309
*/
/*jslint browser: true, vars: true, white: true, forin: true */
/*global define,require */
(function($){
'use strict';
$.fn.serializeObject = function()
@davetayls
davetayls / flickr.js
Created November 7, 2011 12:50
Flickr AMD Module
/*
* Flickr AMD Module
*/
/*jslint browser: true, vars: true, white: true, forin: true, indent: 4 */
/*global define,require */
define(
['jquery'],
function($){
'use strict';
@davetayls
davetayls / twitter.js
Created November 4, 2011 15:15
Twitter AMD Module
/**
* Twitter AMD Module
*/
/*jslint browser: true, vars: true, white: true, forin: true, indent: 4 */
/*global define,require */
define(
['jquery/core'],
function($){
'use strict';
@davetayls
davetayls / debug.js
Created October 31, 2011 11:13
Basic debug module
/**
* Basic debug AMD module
* usage: debug.log('inside coolFunc',this,arguments);
*/
/*jslint browser: true, vars: true, white: true, forin: true */
/*global define, require */
(function(){
'use strict';
var debug = {
@davetayls
davetayls / tracking.js
Created October 12, 2011 15:02
Google tracking for static files
/*
* Google tracking for static files
*/
/*jslint browser: true, vars: true, white: true, forin: true, nomen: true */
/*global window, jQuery, _gaq */
(function ($) {
"use strict";
var init_tracking = function () {
@davetayls
davetayls / cookie.js
Created October 3, 2011 19:48
Cookie module for requirejs