Skip to content

Commit 287ae01

Browse files
committed
some tidy up
1 parent 2632267 commit 287ae01

File tree

25 files changed

+87
-107
lines changed

25 files changed

+87
-107
lines changed

examples/WOVNS/data/random.png

-183 KB
Binary file not shown.

nature-of-code/xor/.mvn/extensions.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
<extension>
44
<groupId>io.takari.polyglot</groupId>
55
<artifactId>polyglot-ruby</artifactId>
6-
<version>0.1.19</version>
6+
<version>0.4.3</version>
77
</extension>
88
</extensions>

nature-of-code/xor/Rakefile

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,18 @@
1-
task default: [:compile, :run]
1+
desc 'Default'
2+
task :default => [:compile, :install, :run]
23

34
desc 'Compile'
45
task :compile do
56
sh 'mvn package'
67
end
78

9+
desc 'Move xor jar'
10+
task :install do
11+
sh 'mkdir -p library/xor' unless File.exist?('./library/xor')
12+
sh 'mv target/xor-1.0-SNAPSHOT.jar library/xor/xor.jar'
13+
end
14+
815
desc 'Run'
916
task :run do
10-
sh 'jruby xor.rb'
17+
exec 'jruby xor.rb'
1118
end

nature-of-code/xor/landscape.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def render
3838
# (clean this part up)
3939
no_stroke
4040
push_matrix
41-
begin_shape(QUADS)
41+
begin_shape(Processing::QUADS)
4242
translate(x * scl - w * 0.5, y * scl - h * 0.5, 0)
4343
fill(z[x][y] + 127, 220)
4444
vertex(0, 0, z[x][y])

nature-of-code/xor/pom.rb

Lines changed: 0 additions & 31 deletions
This file was deleted.

nature-of-code/xor/pom.xml

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,34 +13,28 @@ DO NOT MODIFIY - GENERATED CODE
1313
<artifactId>xor</artifactId>
1414
<version>1.0-SNAPSHOT</version>
1515
<name>xor</name>
16-
<description>neural net library for xor</description>
16+
<description>Neural Net Library for xor</description>
1717
<developers>
1818
<developer>
1919
<id>shiffman</id>
20-
<name>DanShiffman</name>
20+
<name>Dan Shiffman</name>
2121
<roles>
2222
<role>developer</role>
2323
</roles>
2424
</developer>
2525
</developers>
2626
<properties>
27+
<maven.compiler.release>11</maven.compiler.release>
2728
<polyglot.dump.pom>pom.xml</polyglot.dump.pom>
28-
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
29-
<maven.compiler.source>1.8</maven.compiler.source>
30-
<maven.compiler.target>1.8</maven.compiler.target>
31-
<xor.basedir>${project.basedir}</xor.basedir>
3229
</properties>
3330
<build>
34-
<sourceDirectory>src</sourceDirectory>
35-
<defaultGoal>package</defaultGoal>
36-
<finalName>xor</finalName>
3731
<pluginManagement>
3832
<plugins>
3933
<plugin>
40-
<artifactId>maven-jar-plugin</artifactId>
41-
<version>2.3.2</version>
34+
<artifactId>maven-compiler-plugin</artifactId>
35+
<version>3.8.1</version>
4236
<configuration>
43-
<outputDirectory>${xor.basedir}/library/xor</outputDirectory>
37+
<encoding>UTF-8</encoding>
4438
</configuration>
4539
</plugin>
4640
</plugins>

0 commit comments

Comments
 (0)