Just trying
Move mouse pointer over the doodles.
Image source: me.
This is not a true Demers cartogram; it lacks links between adjacent features. Instead of trying to preserve connectedness, this pseudo-cartogram tries to preserve locality, putting each square as close as possible to its origin without overlapping.
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 re | |
rle='''43b3o3b3o$42bo2bo3bo2bo$23b4o18bo3bo18b4o$23bo3bo17bo3bo17bo3bo$23bo8b | |
o12bo3bo12bo8bo$24bo2bo2b2o2bo25bo2b2o2bo2bo$29bo5bo7b3o3b3o7bo5bo$29b | |
o5bo8bo5bo8bo5bo$29bo5bo8b7o8bo5bo$24bo2bo2b2o2bo2b2o4bo7bo4b2o2bo2b2o | |
2bo2bo$23bo8bo3b2o4b11o4b2o3bo8bo$23bo3bo9b2o17b2o9bo3bo$23b4o11b19o | |
11b4o$39bobo11bobo$42b11o$42bo9bo$43b9o$47bo$43b3o3b3o$45bo3bo2$44b3ob | |
3o$44b3ob3o$43bob2ob2obo$43b3o3b3o$44bo5bo35$3o$2bo$bo!''' | |
rle='''2$7bo$7bo$7bo$7bo$7bo$6bo5b6o$b11o6bo$6bo$6bo$6bo$6bo$6bo$6bo$6bo! | |
''' |
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 pyaudio | |
import wave | |
import sys | |
import pyglet | |
CHUNK = 1024 | |
FORMAT = pyaudio.paInt16 | |
CHANNELS = 2 | |
RATE = 44100 |
Prototype of Tripno visualisation. Based on force-directed layout example by Mike Bostock
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8" /> | |
<meta name="creator" content="Procoding" /> | |
<meta name="apple-mobile-web-app-capable" content="yes" /> | |
<meta name="viewport" id="viewport" content="width=device-width initial-scale=1 maximum-scale=1 user-scalable=no" /> | |
<title>aa-ekoan.pro</title> <!-- displayName --> |
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
/******************************************************************************** | |
Procoding.js | |
Copyright (c) 2013 by Michael Markert | |
http://procoding.audiocommander.de | |
version 0.3 | |
built June 2013 | |
*****************************************/ |
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
from scene import * | |
from random import random | |
from math import sin, cos, pi | |
class zScene (Scene): | |
def setup(self): | |
# This will be called before the first frame is drawn. | |
# Set up the root layer and one other layer: | |
self.root_layer = Layer(self.bounds) | |
OlderNewer