This file contains hidden or 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
// | |
// SolidColors.java | |
// | |
// An example of stepwise color tables with VisAD. | |
import java.awt.Color; | |
import java.awt.Component; | |
import java.rmi.RemoteException; |
This file contains hidden or 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
$ mvn versions:display-plugin-updates | |
[INFO] Scanning for projects... | |
[INFO] | |
[INFO] ------------------------------------------------------------------------ | |
[INFO] Building test 1.0 | |
[INFO] ------------------------------------------------------------------------ | |
[INFO] | |
[INFO] --- versions-maven-plugin:1.3.1:display-plugin-updates (default-cli) @ test --- | |
[INFO] | |
[INFO] The following plugin updates are available: |
This file contains hidden or 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
import java.io.BufferedReader; | |
import java.io.InputStreamReader; | |
IJ.log("Executing command"); | |
Process p = Runtime.getRuntime().exec("pwd"); | |
p.waitFor(); | |
IJ.log("Execution complete."); | |
BufferedReader in = new BufferedReader(new InputStreamReader(p.getInputStream())); | |
String line = in.readLine(); | |
in.close(); | |
IJ.log("Output: " + line); |
This file contains hidden or 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/perl | |
# | |
# maven-cp.pl | |
# | |
# A script to output a Java classpath for the given Maven GAVs, | |
# including their dependencies. | |
# Requires command line mvn to be installed. |
This file contains hidden or 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
import imagej.ImageJ; | |
import imagej.core.commands.app.AboutImageJ; | |
import imagej.module.ModuleInfo; | |
import imagej.module.ModuleItem; | |
import imagej.module.ModulePreprocessor; | |
import imagej.plugin.InitPreprocessor; | |
import imagej.plugin.ServicePreprocessor; | |
import imagej.plugin.ValidityPreprocessor; | |
import java.util.ArrayList; |
This file contains hidden or 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
IJ=/Applications/Science/Fiji.app/Contents/MacOS/ImageJ-macosx | |
PATH=/Users/curtis/Desktop | |
$IJ -macro $PATH/macro1.ijm | |
read -n1 -r -p "Press any key to continue..." key | |
$IJ -macro $PATH/macro2.ijm |
This file contains hidden or 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/perl | |
use strict; | |
# github-pr-comments.pl: Proof of concept for listing recent | |
# comments for open PRs of a given repo. | |
# NB: Remember to authenticate first before running, or else you will | |
# quickly hit the API rate limit of 60 unauthenticated requests per hour. |
This file contains hidden or 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
import imagej.ImageJ; | |
import imagej.display.Display; | |
import imagej.display.event.DisplayCreatedEvent; | |
import imagej.event.EventHandler; | |
public class KeepDataStructureInSyncWithCurrentState { | |
private ImageJ ij; | |
public KeepDataStructureInSyncWithCurrentState(final ImageJ ij) { |

This file contains hidden or 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
ROI #1: x=139 y=43 c=0 z=2 t=0 | |
ROI #2: x=37 y=152 c=0 z=4 t=0 |