Skip to content

Instantly share code, notes, and snippets.

@danielcaires
danielcaires / dragon.py
Created November 25, 2016 13:19 — forked from fogleman/dragon.py
Dragon Curve with Turtle Graphics (Python)
import turtle
def turn(i):
left = (((i & -i) << 1) & i) != 0
return 'L' if left else 'R'
def curve(iteration):
return ''.join([turn(i + 1) for i in range(2 ** iteration - 1)])
if __name__ == '__main__':
@danielcaires
danielcaires / fb.css
Created June 27, 2017 16:15 — forked from nicksheffield/fb.css
Facebook custom styles (stylebot)
#blueBar {
background: -webkit-linear-gradient(#444, #111);
border-bottom: 1px solid #000;
border-top: 1px solid black;
box-shadow: 0 0 30px rgba(0,0,0,0.8) ;
height: auto;
position: fixed;
}
#blueBar a:hover {