Skip to content

Instantly share code, notes, and snippets.

View AndyNovo's full-sized avatar

Andy Novocin AndyNovo

View GitHub Profile
@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 / 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 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;
# 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:
import pygame
import random
BLACK = (0,0,0)
pygame.init()
WIDTH = 450
HEIGHT = 600
screen = pygame.display.set_mode([WIDTH, HEIGHT])
import pygame
import random
from math import sin, cos, tan, asin, acos, atan, degrees
from math import radians as rad
pygame.init()
resolution = (800, 600)
screen = pygame.display.set_mode(resolution)
mousepos = [0, 0]
import pygame
import random
BLACK = (0,0,0)
pygame.init()
WIDTH = 450
HEIGHT = 600
screen = pygame.display.set_mode([WIDTH, HEIGHT])
import pygame
import random
BLACK = (0,0,0)
RED = (255, 0, 0) #These tuples are RGB by the way
WHITE = (255, 255, 255)
pygame.init()
WIDTH = 450
HEIGHT = 600
import pygame
import random
BLACK = (0,0,0)
pygame.init()
WIDTH = 450
HEIGHT = 600
screen = pygame.display.set_mode([WIDTH, HEIGHT])
import pygame
import random
BLACK = (0,0,0)
RED = (255, 0, 0) #These tuples are RGB by the way
WHITE = (255, 255, 255)
pygame.init()
WIDTH = 450
HEIGHT = 600