Skip to content

Instantly share code, notes, and snippets.

Avatar

Daniel Eden daneden

View GitHub Profile
@daneden
daneden / animate.js
Created Dec 6, 2011
A function to apply animate.css classes dynamically
View animate.js
// Use the animate.css animations
function animate(element, effect, delay, callback) {
// Set a delay if needed
var animation = setTimeout(function () {
// Add the animation effect with classes
$(element).addClass('animate ' + effect);
// Check if the elemenr has been hidden to start with to prevent FOUC
if ($(element).css('visibility') == 'hidden') {
// If it has, show it (after the class has been added)
@daneden
daneden / dabblet.css
Created Mar 22, 2012 — forked from anonymous/dabblet.css
Transition aliasing bug
View dabblet.css
/* Transition aliasing bug */
body {
font-family: Helvetica, Helvetica Neue, Arial, sans-serif;
font-weight: 700;
}
div {
width: 100px;
height: 100px;
View dabblet.css
/* Reset */
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,font,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td { margin:0; padding:0; border:0; outline:0; font-weight:inherit; font-style:inherit; font-size:100%; font-family:inherit; vertical-align:baseline; }
:focus { outline:0; }
a:active { outline:none; }
body { line-height:1; color:black; background:white; }
ol,ul { list-style:none; }
table { border-collapse:separate; border-spacing:0; }
caption,th,td { text-align:left; font-weight:normal; }
blockquote:before,blockquote:after,q:before,q:after { content:""; }
View index.html
<!DOCTYPE html>
<html>
<head>
<!-- Meta -->
<meta charset="utf-8">
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Toast.css Nested Divs</title>
<!-- /Meta -->
@daneden
daneden / README.md
Last active Mar 19, 2017 — forked from agnoster/README.md
Custom fork of the Agnoster theme
View README.md

agnoster.zsh-theme

A ZSH theme optimized for people who use:

  • Solarized
  • Git
  • Unicode-compatible fonts and terminals (I use iTerm2 + Menlo)

For Mac users, I highly recommend iTerm 2 + Solarized Dark

@daneden
daneden / .block
Last active Aug 3, 2017 — forked from mbostock/.block
Circle Packing
View .block
license: gpl-3.0
height: 960
border: no