Skip to content

Instantly share code, notes, and snippets.

View AndyNovo's full-sized avatar

Andy Novocin AndyNovo

View GitHub Profile
# in this happy fairy land of pseudo code:
# all non-existent nodes don't throw seg faults and instead have color BLACK!
def fixup(red_node):
while red_node.parent.color == RED:
parent = red_node.parent
grandpa = red_node.parent.parent
if parent == grandpa.left:
uncle = grandparent.right
if uncle.color == RED:
@AndyNovo
AndyNovo / dabblet.css
Created December 24, 2015 21:41 — forked from csssecrets/dabblet.css
Multiple borders
/**
* Multiple borders
*/
div {
width: 100px;
height: 60px;
margin: 25px;
background: yellowgreen;
border: 5px solid red;
@AndyNovo
AndyNovo / dabblet.css
Last active January 3, 2016 23:40
Blue Help Box
@import url(https://fonts.googleapis.com/css?family=Signika:400,600,700);
/**
* Blue Help Box
*/
body {
background: lightskyblue;
color: darkblue;
font-family: 'Signika', sans-serif;
}
@AndyNovo
AndyNovo / dabblet.css
Created January 4, 2016 01:48
An empty Dabblet
/**
* An empty Dabblet
*/
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;
@AndyNovo
AndyNovo / index.html
Created January 4, 2016 02:33
Basic HTML file
<!doctype html>
<html>
<head>
<title>Title Here</title>
</head>
<body>
Content Here
</body>
</html>
@AndyNovo
AndyNovo / dabblet.css
Created January 4, 2016 03:01
Gettysburg Address
/**
* Gettysburg Address
*/
@AndyNovo
AndyNovo / dabblet.css
Created January 4, 2016 04:57
Basic CSS Selectors
/**
* Basic CSS Selectors
*/
p {
background-color: #aaa;
}
.cool {
color: blue;
@AndyNovo
AndyNovo / dabblet.css
Last active January 5, 2016 05:25
Things you can color
/**
* Things you can color
*/
body {
column-count: 3;
column-gap: 2em;
column-rule: 2px solid salmon;
}
@AndyNovo
AndyNovo / link.html
Created January 5, 2016 20:38
3 ways to link CSS
@AndyNovo
AndyNovo / dabblet.css
Created January 5, 2016 21:49
box model basics
/* box model basics */
div {
background-color: #aaa;
display: block;
outline: 5px dashed white;
margin: 50px;
border: 30px solid hsla(2000,100%,50%, .4);
padding: 10px;
background-clip: padding-box;
}