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
# Python Mandelbrot set for PiCymru | |
# This version uses the Python Imaging Library AND NumPy | |
from PIL import Image | |
import numpy | |
WIDTH = 512 | |
HEIGHT = 512 | |
MAX_ITER = 25 # How many iterations to perform z=z2+c |
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
# A little program for the PiHut 3D RGB Xmas Tree by Dave Christian | |
# Assumes tree library code has been setup (see https://github.com/ThePiHut/rgbxmastree#getting-started) | |
# Provide colours from colorzero library as parameters ie "python tree_random.py red green" | |
from tree import RGBXmasTree | |
from colorzero import Color | |
import random | |
import sys | |
tree = RGBXmasTree() |
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
# Simple script to get the Urban Dictionary Word of the Day via RSS | |
# Code is released under MIT license. Please see http://opensource.org/licenses/MIT for full license | |
import feedparser # 3rd party: https://code.google.com/p/feedparser/ | |
from HTMLParser import HTMLParser # Python stdlib | |
import os | |
class HTMLStripper(HTMLParser, object): | |
def __init__(self): | |
HTMLParser.__init__(self) | |
self.html = '' |
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 | |
# Source is released under the MIT License | |
# See 'http://opensource.org/licenses/MIT' for more info | |
# Please be careful with this script! I take no responsibility | |
# for the accidental deletion of files resulting from use of it :) | |
import os | |
import sys |
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
<?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?> | |
<glsl_hacker> | |
<window name="win3d01" title="Mandelbrot Demo for PiCymru (OpenGL ES 2.0)" | |
width="1920" height="1080" | |
gl_version_major="2" gl_version_minor="2" | |
build_opengl_extensions_list="0" /> | |