This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* An empty Dabblet | |
*/ | |
background: #f06; | |
background: linear-gradient(45deg, #f06, yellow); | |
min-height: 100%; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Multiple borders | |
*/ | |
div { | |
width: 100px; | |
height: 60px; | |
margin: 25px; | |
background: yellowgreen; | |
border: 5px solid red; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pygame | |
import random | |
BLACK = (0,0,0) | |
pygame.init() | |
WIDTH = 450 | |
HEIGHT = 600 | |
screen = pygame.display.set_mode([WIDTH, HEIGHT]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pygame | |
import random | |
BLACK = (0,0,0) | |
pygame.init() | |
WIDTH = 450 | |
HEIGHT = 600 | |
screen = pygame.display.set_mode([WIDTH, HEIGHT]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pygame | |
import random | |
BLACK = (0,0,0) | |
pygame.init() | |
WIDTH = 450 | |
HEIGHT = 600 | |
screen = pygame.display.set_mode([WIDTH, HEIGHT]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |