Skip to content

Instantly share code, notes, and snippets.

View sampottinger's full-sized avatar

A Samuel Pottinger sampottinger

View GitHub Profile
# Setup a new VM (like gitpod) for building Processing-java
# Released under MIT license
yes | sudo apt-get install rsync
cd /tmp
wget https://dlcdn.apache.org//ant/binaries/apache-ant-1.10.12-bin.zip
unzip apache-ant-1.10.12-bin.zip
wget https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.5%2B8/OpenJDK17U-jdk_x64_linux_hotspot_17.0.5_8.tar.gz
tar -xvf OpenJDK17U-jdk_x64_linux_hotspot_17.0.5_8.tar.gz
mv jdk-17.0.5+8/ ~

Works Cited

  1. O'Neill, Brian T. “Failure Rates for Analytics, AI, and Big Data Projects = 85% – Yikes!” Designing for Analytics (Brian T. O'Neill), 23 July 2019, https://designingforanalytics.com/resources/failure-rates-for-analytics-bi-iot-and-big-data-projects-85-yikes/.
  2. “Why Do 87% of Data Science Projects Never Make It into Production?” The Machine: Making Sense of AI, VentureBeat, 19 July 2019, https://venturebeat.com/ai/why-do-87-of-data-science-projects-never-make-it-into-production/.
  3. Bean, Randy. “Decade of Investment in Big Data and AI Yield Mixed Results.” CIO Network, Forbes Magazine, 3 Jan. 2021, https://www.forbes.com/sites/randybean/2021/01/03/decade-of-investment-in-big-data-and-ai-yield-mixed-results/?sh=926c94409e9b.
  4. Votava, Adam. “Why Is Data Science Failing to Solve the Right Problems?” Medium, Towards Data Science, 12 Nov. 2020, https://towardsdatascience.com/why-is-data-science-failing-to-solve-the-right-problems-7b5b6121e3b4.
  5. “Chaos Report 2015.” Sample Res
PGraphics pg;
void settings() {
size(100, 100, FX2D);
pixelDensity(2);
}
void setup() {
pg = createGraphics(40, 40);
println(displayDensity());
/* -*- mode: java; c-basic-offset: 2; indent-tabs-mode: nil -*- */
// Copied from https://github.com/processing/processing-android/blob/03c2efe45a06f7e32f9e89ba63479f28935e0f8f/mode/src/processing/mode/android/AndroidPreprocessor.java
/*
Part of the Processing project - http://processing.org
Copyright (c) 2012-17 The Processing Foundation
Copyright (c) 2009-12 Ben Fry and Casey Reas
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License version 2
/**
* Demonstration of Java 8 language features within Processing IDE.
*
* Sketch to demonstrate Java 8 language features within the Processing development environment
* including type inference and lambdas.
*/
import java.util.*;
List<ColoredCircle> circles = new ArrayList<>(); // Type inference
@sampottinger
sampottinger / processing_build.md
Last active July 23, 2020 12:55
Processing build instructions

Building Processing

Processing's ant-based build chain can create executables natively runnable for Linux, Mac, and Windows. Before continuing, please be aware that you are agreeing to the license terms and that the developers do not make any guarantee or warranty (implicit or express) for any purpose.



Pre-Requisites

Although Processing will download and use its own copy of OpenJDK and OpenJFX, the build chain itself requires Java 11+ and Ant in addition to getting a copy of the Processing source code.

@sampottinger
sampottinger / issue10.diff
Created June 10, 2014 03:29
Issue #10 for papel_editor diff
3c3
< "openDate": "2013-11-26",
---
> "openDate": "2014-01-26",
5c5
< "closeDate": "2013-2-18",
---
> "closeDate": "2013-04-18",
13c13,14
< "name": "First Name",
@sampottinger
sampottinger / dict.js
Created April 30, 2014 02:12
Domenic dict for your browser.
"use strict";
var hasOwnProperty = Object.prototype.hasOwnProperty;
var MANGLE_STRING = "~";
function mangle(key) {
return MANGLE_STRING + key;
}
function unmangle(key) {

Any chance anyone else is having issues?

Have tried:

commands:
    01_enable_rootaccess:
        command: echo Defaults:root \!requiretty >> /etc/sudoers
    02_no-cert:
        command: sudo /opt/elasticbeanstalk/node-install/node-v0.10.10-linux-x86/lib/node_modules/npm config set ca ""
@sampottinger
sampottinger / config.yaml
Created February 25, 2014 19:55
test ljjoy configuration
mappings:
- deviceRegister: AIN0
joystickOutputChannel: axis:0
outputStrategy:
name: linear
minDeviceVal: 0
maxDeviceVal: 5
minJoystickVal: 0
maxJoystickVal: 2147483647
- deviceRegister: FIO0