Skip to content

Instantly share code, notes, and snippets.

View jonathanolson's full-sized avatar

Jonathan Olson jonathanolson

View GitHub Profile
@jonathanolson
jonathanolson / examples.wgsl
Last active November 8, 2023 06:17
Generated shader examples
// Bicyclic Semigroup reduce. Normal (blocked, raked) load order (somewhat inefficient), normal reduce.
// workgroup 256, grain 8
// duplicated expression stored in local variables.
// Generated from https://github.com/phetsims/alpenglow/blob/75588781b29e906cef7944a0a2011f78ee51fbfe/js/webgpu/ExampleTests.ts#L69-L90
@group(0) @binding(0)
var<storage> input: array<u32>;
@group(0) @binding(1)
var<storage, read_write> output: array<u32>;
var<workgroup> scratch: array<u32, 256>;
@compute @workgroup_size(256)
@jonathanolson
jonathanolson / reduce_raked_striped_blocked.wgsl
Created October 21, 2023 02:47
reduce_raked_striped_blocked example
@group(0) @binding(0)
var<storage> input: array<f32>;
@group(0) @binding(1)
var<storage, read_write> output: array<f32>;
var<workgroup> scratch: array<f32, 256>;
@compute @workgroup_size(256)
fn main(
@builtin(global_invocation_id) global_id: vec3u,
@jonathanolson
jonathanolson / reduce_simple.wgsl
Created October 21, 2023 02:46
reduce_simple snapshot
@group(0) @binding(0)
var<storage> input: array<f32>;
@group(0) @binding(1)
var<storage, read_write> output: array<f32>;
var<workgroup> scratch: array<f32, 256>;
@compute @workgroup_size(256)
fn main(
@builtin(global_invocation_id) global_id: vec3u,
Index: scenery/js/util/scenerySerialize.ts
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/scenery/js/util/scenerySerialize.ts b/scenery/js/util/scenerySerialize.ts
new file mode 100644
--- /dev/null (date 1637742963715)
+++ b/scenery/js/util/scenerySerialize.ts (date 1637742963715)
@@ -0,0 +1,386 @@

Snapshot of steps done for a maintenance release

Preparation

Most commands are run from the grunt maintenance REPL under perennial. It opens up a REPL where commands can be typed, with a maintenance> prompt. I've included the prompt in any commands that I run in there.

There's also the ability to verbose = false or verbose = true (with the default being false). If it's true, all winston.info logging statements will be included, which includes basically every command that's executing. It's usually a bit much, but helpful for debugging.

I ran the following to see whether there are currently any issues with release branches. I expect to see a lot of warnings about potential changes, since I recently applied commits on some release branches that updates their READMEs to the "production" variety. This takes at least a few minutes.

@jonathanolson
jonathanolson / gist:d89294421639001322699d39e68f1626
Created August 10, 2018 01:19
Maintenance.checkBranchStatus()
Checking acid-base-solutions 1.2
[acid-base-solutions 1.2] Potential changes (dependency is not previous commit)
[acid-base-solutions 1.2] f53124982815b74f99567be834846bc8a1354364 fe00721f0a8a818a84969c298a91c5a6877bd1d6 9dc4b45dcb25933ff2200cf7f9d5bbd115211398
Checking area-builder 1.1
[area-builder 1.1] Potential changes (dependency is not previous commit)
[area-builder 1.1] 35435e6e12aeca8c7e168ee385afce3ad2fed350 4de280d2340e991c249fd4619865b90678f98563 0b0289b9837f24944cf66281d5717ce2e50b6c6e
Checking area-model-algebra 1.0
[area-model-algebra 1.0] Potential changes (dependency is not previous commit)
[area-model-algebra 1.0] 69be4951c02029431a3cf9226577100cf95bed9e d1244b2d05150441fd693a3b298b685c57f217d1 67afaa46fb307452c89dcb2d8397b44e26918e6b
Checking area-model-decimals 1.0
[email protected] /Users/jon/phet/git/chipper
├─┬ [email protected]
│ ├─┬ [email protected]
│ │ ├─┬ [email protected]
│ │ │ ├── [email protected]
│ │ │ ├── [email protected] deduped
│ │ │ ├── [email protected] deduped
│ │ │ ├── [email protected] deduped
│ │ │ └── [email protected]
│ │ ├── [email protected] deduped
[email protected] C:\Users\olson\phet\git\chipper
+-- [email protected] invalid
| +-- [email protected]
| | +-- [email protected] deduped
| | +-- [email protected] deduped
| | `-- [email protected]
| +-- [email protected] extraneous
| +-- [email protected] extraneous
| +-- [email protected]
| | `-- [email protected] deduped
@jonathanolson
jonathanolson / Make a Ten challenges
Created October 17, 2016 22:30
Make a Ten Challenges
Level 1: "Add single digit numbers to gets sums of 10 and under."
(1,1), (1,2), (1,3), (1,4), (1,5), (1,6), (1,7), (1,8), (1,9), (2,1), (2,2), (2,3), (2,4), (2,5), (2,6), (2,7), (2,8), (3,1), (3,2), (3,3), (3,4), (3,5), (3,6), (3,7), (4,1), (4,2), (4,3), (4,4), (4,5), (4,6), (5,1), (5,2), (5,3), (5,4), (5,5), (6,1), (6,2), (6,3), (6,4), (7,1), (7,2), (7,3), (8,1), (8,2), (9,1)
Level 2: "Add 9 to a single digit number to get sums between 10 and 20."
Even: (9,2), (9,3), (9,4), (9,5), (9,6), (9,7), (9,8), (9,9)
Odd: (2,9), (3,9), (4,9), (5,9), (6,9), (7,9), (8,9), (9,9)
Level 3: "Add single digit numbers to get sums between 10 and 20."
(9,2), (2,9), (9,3), (3,9), (9,4), (4,9), (9,5), (5,9), (9,6), (6,9), (9,7), (7,9), (9,8), (8,9), (9,9), (8,3), (3,8), (8,4), (4,8), (8,5), (5,8), (8,6), (6,8), (8,7), (7,8), (8,8), (7,4), (4,7), (7,5), (5,7), (7,6), (6,7), (7,7), (6,5), (5,6), (6,6)
@jonathanolson
jonathanolson / PropertiesToRequireJSI18n.java
Created May 23, 2015 02:48
PropertiesToRequireJSI18n.java (trunk/simulations-html/build-tools/src/edu/colorado/phet/buildtools/html5/)
package edu.colorado.phet.buildtools.html5;
import java.io.File;
import java.io.FileInputStream;
import java.io.FilenameFilter;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Properties;
import java.util.Set;