See source code You will need maven to build (no other dependencies)
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 bash | |
# Bash Script to install PiCrate and dependencies on Raspbian Buster | |
# JAVA_PATH="/opt/jdk13" | |
# JAVA_PATH="/usr/lib/jvm/java-8-openjdk-armhf" | |
JAVA_PATH="/usr/lib/jvm/java-11-openjdk-armhf" | |
JRUBY_VERSION="9.0.0.0" | |
MRI="2.5.0" | |
JRUBY_PATH="/opt/jruby-${JRUBY_VERSION}" | |
GEM="${HOME}/.gem/ruby/${MRI}" | |
GEMRC="${HOME}/.gemrc" |
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 bash | |
# Bash Script to install PiCrate and dependencies on Raspbian Buster | |
JAVA_PATH="/usr/lib/jvm/java-11-openjdk-armhf" | |
JRUBY_VERSION="9.3.0.0 | |
MRI_RUBY="2.6.0" | |
JRUBY_PATH="/opt/jruby-${JRUBY_VERSION}" | |
GEM_RC="${HOME}/.gemrc" | |
GEM="${HOME}/.gem/ruby/${MRI_RUBY}" | |
JDK_PROFILE="/etc/profile.d/jdk_home.sh" | |
JDK_STRING="export JAVA_HOME=\$(readlink -f /usr/bin/javac | sed \"s:/bin/javac::\")" |
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 bash | |
# Bash Script to install PiCrate and dependencies on Raspbian Buster | |
# JAVA_PATH="/opt/jdk13" | |
JAVA_PATH="/usr/lib/jvm/java-11-openjdk-armhf" | |
# JAVA_PATH="/usr/lib/jvm/java-11-openjdk-armhf" | |
JRUBY_VERSION="9.2.19.0" | |
MRI_RUBY="2.5.0" | |
JRUBY_PATH="/opt/jruby-${JRUBY_VERSION}" | |
GEM="${HOME}/.gem/ruby/${MRI_RUBY}" |
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
java_import 'java.util.ArrayList' | |
java_import 'processing.core.PVector' | |
class VectorList | |
attr_reader :list | |
def initialize |
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
# frozen_string_literal: true | |
require 'picrate' | |
class DeJongAttractor < Processing::App | |
B = -2.3 | |
attr_reader :x, :y, :xn, :yn, :timer | |
def settings | |
size(450, 450) |
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
######################################################## | |
# stochastic_test.rb | |
# | |
# Lindenmayer System in ruby-processing by Martin Prout | |
######################################################## | |
require 'stochastic_plant' | |
class Stochastic_Test < Processing::App | |
attr_reader :stochastic, :stochastic1, :stochastic2 |
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
class TwoColorRule | |
attr_reader :rule, :colors | |
def initialize(number:, colors:) | |
@colors = colors | |
@rule = create_rule_from_int(number) | |
end | |
def apply_rule(input) | |
input.each_cons(3) do |triple| | |
left, center, right = *triple |
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 bash | |
# Bash Script to install PiCrate and dependencies on Manjaro Arm | |
# anticipating JRuby-9.3.0.0 which will match MRI ruby-2.6 | |
MRI_RUBY="2.6.0" | |
GEM_RC="${HOME}/.gemrc" | |
GEM="${HOME}/.gem/ruby/${MRI_RUBY}" | |
function gem_rc { | |
if [[ (-f ${GEM_RC}) ]] | |
then |
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
/** | |
* Modified to include ability to export as PovRAY mesh2 by Martin Prout 2012 | |
*/ | |
package wblut.hemesh.tools; | |
import java.io.FileNotFoundException; | |
import java.io.FileOutputStream; | |
import java.io.OutputStream; | |
import java.io.PrintWriter; | |
import java.nio.ByteBuffer; |
NewerOlder