This file contains 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
#!/usr/bin/python | |
import os | |
import SimpleHTTPServer | |
import BaseHTTPServer | |
from optparse import OptionParser, make_option as opt | |
# these are the defaults for server settings | |
DEFAULT_PORT = 8000 |
This file contains 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
KEYFRAME_RATE = 200 | |
HORIZONTAL_DELTA = 2 | |
VERTICAL_DELTA = 4 | |
EASING_FUNCTION = "linear" | |
TOTAL_SNOWFLAKES = 50 | |
EXCLUDE_MOBILE = true | |
CANVAS_WIDTH_FN = () -> $('#all').width() | |
CANVAS_HEIGHT_FN = () -> 125 | |
# by_probability will return val1 prob% of the time, val2 otherwise |
This file contains 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
.noPointerEvents #hd, .noPointerEvents #glob{ | |
position:relative; | |
z-index: 1337 !important; | |
} | |
.pointerEvents #snow{ | |
z-index:1337; | |
} | |
body, html, #all, #all::before{ |
This file contains 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 os | |
# this little trick lets us use relative paths | |
here = lambda x: os.path.join(os.path.abspath(os.path.dirname(__file__)), x) | |
DEBUG = True | |
TEMPLATE_DEBUG = DEBUG | |
ADMINS = ( | |
# ('Your Name', 'your_email@example.com'), |
This file contains 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
/* | |
* ColorExtractor | |
* | |
* Usage: | |
* | |
* extractor = new ColorExtractor("/path/to/image.jpg"); | |
* extractor.ready(function (data) { | |
* document.body.styles.backgroundColor = data['edge_color'].hex_for_css(); | |
* }); | |
* |
This file contains 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
$(document.body).on('click', '[data-smooth-scroll]', function(e){ | |
e.preventDefault(); | |
$('html,body').animate({scrollTop:$(this.hash).offset().top}, 500); | |
if (Modernizr.history) window.history.pushState({}, this.hash, this.hash); | |
}); |
This file contains 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
Abd al-Kuri Sparrow | |
Abyssinian Nightjar | |
Abyssinian Oriole | |
Acadian Flycatcher | |
Acorn Woodpecker | |
Adelie Penguin | |
Afghan Snowfinch | |
African Barred Owlet | |
African Black-headed Oriole | |
African Broadbill |
This file contains 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
#!/usr/bin/env python | |
import signal | |
import sys | |
import time | |
from RPi import GPIO | |
LIGHT_ORDER = (7, 12, 16, 18, 22, 11,) # The number of the GPIO pins in the order lights are wired to them | |
DELAY = .05 |
This file contains 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
# EditorConfig for Little Weaver Web Collective Style | |
# http://editorconfig.org/ http://littleweaverweb.com/ | |
root = true | |
[*] | |
end_of_line = lf | |
trim_trailing_whitespace = true | |
insert_final_newline = true |
OlderNewer