Skip to content

Instantly share code, notes, and snippets.

View stepheneb's full-sized avatar

Stephen Bannasch stepheneb

View GitHub Profile

Update Worldwind Git Repo from Zip Distribution

Building MLVM version of OpenJDK (Java 1.8) on Mac OS X

Take a look at the comments and code in update.sh.

Requires a working version of Java 1.8.

I use create_tarball.sh to make a copy of the build to share.

OpenJDK 1.7 builds for Mac OS X:

# SproutCore development setup
#
# Setup a working directory for sproutcore development with the latest code.
# This setup is useful if you want to be able to easily view and/or edit the
# sproutcore libraries themselves while doing development.
#
# Stephen Bannasch, 2010 04 14
# file: sproutcore_dev_setup.sh
#
# source sproutcore_dev_setup.sh
require 'rubygems'
gem 'rack', '>= 1.1.0'
gem 'jnlp', '>= 0.6.2'
require 'rack'
require 'jnlp'
require 'fileutils'
require 'open-uri'
#
# file get-mdns.rb
#
# Create a local git repository in mdns-responder-git of
# Apple's mDNSResponder open source implementation of zeroconf
#
# See: http://opensource.apple.com/source/mDNSResponder/
#
# Each mDNSResponder archive located here:
# http://www.opensource.apple.com/tarballs/mDNSResponder/
echo "
*** generate the documentation for sproutcore and open in a browser:
cd $SPROUTCORE_DEV/sproutcore-git
sc-docs sproutcore
open tmp/docs/sproutcore/index.html
"
cd $SPROUTCORE_DEV/sproutcore-git

Building the BSD-port version of OpenJDK (Java 1.7) on Mac OS X

Take a look at the comments and code in update.sh.

$ source update.sh

I use update-usr-local.sh after a successful build to copy the new JVM into /usr/local.

I add pickjdk.sh into my ~/.bash_profile to allow easy switching between multiple JVMs.

# first recursive copy of external dir using rsync
$ rsync -avx --delete otto.concord.org:/web/xproject.dev.concord.org/current/public/system/attachments/ attachments
receiving file list ... done
created directory attachments
./
10/
10/original/
10/original/GenePool6.exe
13/
@stepheneb
stepheneb / README.md
Last active May 28, 2021 14:39
SVG path benchmark (2012)

SVG Path Benchmark

Note: January 7, 2020

This benchmark was written in 2012 and the performance measurements below are valid for browsers at that time. The attribute path_seglist has been removed from the SCG element on Chrome and Firefox and this older benchmark no long runs on those systems.

The benchmark does still run on Safari and now has performance equivalent to the Canvas benchmark.

This example benchmarks the time taken to draw an SVG path with 10000 line segments.