Gradient descent on 2d Perlin noise. Inspired by and forked from d2fn
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 | |
# -*- coding: utf-8 -*- | |
knuckles = u""" | |
|⌒|⌒|⌒|⌒|╲ /|⌒|⌒|⌒|⌒| | |
|%s|%s|%s|%s|ノ \|%s|%s|%s|%s) | |
\⠀⠀⠀⠀⠀⠀⠀/⠀⠀ \⠀⠀⠀⠀⠀⠀⠀/ | |
⠀\⠀⠀⠀⠀╱⠀⠀⠀⠀ ╲⠀⠀⠀⠀/ | |
⠀ |⠀⠀⠀|⠀⠀⠀⠀⠀⠀⠀ |⠀⠀| | |
""" |
Pixel-by-pixel contour lines over perlin noise.
I hereby claim:
- I am blinsay on github.
- I am blinsay (https://keybase.io/blinsay) on keybase.
- I have a public key whose fingerprint is 6066 FDC0 57CC 4EE8 1E17 65B3 5996 68DD 8B3D 4830
To claim this, I am signing this object:
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
Do you really want to exit ([y]/n)? y | |
^CError in atexit._run_exitfuncs: | |
Traceback (most recent call last): | |
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/atexit.py", line 24, in _run_exitfuncs | |
func(*targs, **kargs) | |
File "/Library/Python/2.6/site-packages/IPython/core/history.py", line 498, in stop | |
self.join() | |
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/threading.py", line 634, in join | |
self.__block.wait() | |
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/threading.py", line 237, in wait |
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
$ ant | |
Buildfile: /Users/benl/Projects/python/pycascading/java/build.xml | |
init: | |
[mkdir] Created dir: /Users/benl/Projects/python/pycascading/build/classes | |
compile: | |
[echo] Cascading version: ${cascading.release.major}.${cascading.release.minor} | |
[javac] /Users/benl/Projects/python/pycascading/java/build.xml:64: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds | |
[javac] Compiling 19 source files to /Users/benl/Projects/python/pycascading/build/classes |
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
$ ant -Dcascading.release.major=2.0 -Dcascading.release.minor=0 | |
Buildfile: /Users/benl/Projects/python/pycascading/java/build.xml | |
init: | |
compile: | |
[echo] Cascading version: 2.0.0 | |
[javac] /Users/benl/Projects/python/pycascading/java/build.xml:64: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds | |
[javac] Compiling 15 source files to /Users/benl/Projects/python/pycascading/build/classes | |
[javac] /Users/benl/Projects/python/pycascading/java/src/com/twitter/pycascading/MetaScheme.java:45: com.twitter.pycascading.MetaScheme is not abstract and does not override abstract method sink(cascading.flow.FlowProcess,cascading.scheme.SinkCall) in cascading.scheme.Scheme |
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
$ git diff build.xml | |
diff --git a/java/build.xml b/java/build.xml | |
index 8aed339..519a84f 100644 | |
--- a/java/build.xml | |
+++ b/java/build.xml | |
@@ -38,7 +38,7 @@ | |
<path id="java.classpath"> | |
<pathelement location="${build.classes}"/> | |
<path> | |
- <fileset dir="${cascading.home}" includes="cascading-core-*.jar" /> |
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
$ ../local_run.sh word_count.py | |
*** this cp: ['/Users/benl/Projects/python/pycascading/python/pycascading', '/Users/benl/Projects/python/pycascading/python', '/usr/local/Cellar/jython/2.5.2/libexec/Lib', '__classpath__', '__pyclasspath__/', '/usr/local/Cellar/jython/2.5.2/libexec/Lib/site-packages', u'/usr/local/cascading-2.0.0-wip-262-hadoop-0.20.2+/cascading-core-2.0.0-wip-262.jar', u'/usr/local/cascading-2.0.0-wip-262-hadoop-0.20.2+/cascading-hadoop-2.0.0-wip-262.jar', '.', u'/usr/local', u'/usr/local/python', u'/usr/local/python/Lib'] | |
Traceback (most recent call last): | |
File "../python/pycascading/bootstrap.py", line 83, in <module> | |
m = imp.load_source('main', sys.argv[2]) | |
File "word_count.py", line 22, in <module> | |
from pycascading.helpers import * | |
File "/Users/benl/Projects/python/pycascading/python/pycascading/helpers.py", line 32, in <module> | |
from pycascading.decorators import * | |
File "/Users/benl/Projects/python/pycascading/python/pycascading/decorators.py", line 57, in <module> |
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 java.io.IOException; | |
import org.junit.Test; | |
import cascading.PlatformTestCase; | |
import cascading.flow.Flow; | |
import cascading.flow.FlowDef; | |
import cascading.pipe.HashJoin; | |
import cascading.pipe.Merge; | |
import cascading.pipe.Pipe; |
OlderNewer