Skip to content

Instantly share code, notes, and snippets.

$${x}^{2}$$
<canvas width="200" height="200"></canvas>
<script src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_SVG.js"></script>
@ahdezm
ahdezm / gist:9431918
Created March 8, 2014 15:07
Flatten Object to Array
var flatten = function(obj){
return Array.prototype.concat.apply([],Object.keys(obj).map(function(self){
return obj[self];
}));
};
@ahdezm
ahdezm / dabblet.css
Last active May 17, 2021 11:31
CSS Animated Repeating Gradient
/**
* CSS Animated Repeating Gradient
*/
body {
background: repeating-linear-gradient(-45deg,red,red 20px,blue 20px,blue 40px);
background-size:56px 56px;/* This is unique for this background, need to find a pattern and develop a formula */
background-position-x:0%;
-webkit-animation:'slide' 20s infinite linear forwards;
}
@ahdezm
ahdezm / dabblet.css
Created March 24, 2012 17:30
CSS: Flip Clock
/**
* CSS: Flip Clock
*/
html,body {
margin:0;
height:100%;
}
body {
@ahdezm
ahdezm / dabblet.css
Created March 10, 2012 19:24
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
body {
margin:0;
background:rgb(0,0,20);
}
#light {
position:relative;
width:0;
@ahdezm
ahdezm / dabblet.css
Created March 9, 2012 22:28
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
body {
background:hsl(0,0%,6%);
}
.badge {
width:200px;
height:200px;
border-radius:50%;
@ahdezm
ahdezm / style.css
Created February 26, 2012 20:52
CSS: Notebook Background
/**
* Notebook Background
*/
/*Recomended font for text: @import url("http://fonts.googleapis.com/css?family=The+Girl+Next+Door"); */
html,body {
height:100%;
width:100%;
}
@ahdezm
ahdezm / style.css
Created February 26, 2012 19:40
CSS: Cloud
/**
* CSS Cloud
*/
body {
background:radial-gradient(center,circle,#0A253D,#051C29);
}
#cloud {
margin:100px auto;
width:210px;
height:90px;
@ahdezm
ahdezm / Twitter.css
Created February 18, 2012 21:30
CSS: Twitter Button
/**
* Twitter Button
*/
.twitter {
display: inline-block;
padding: 15px;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;