Skip to content

Instantly share code, notes, and snippets.

Johannes Schindelin dscho

Block or report user

Report or block dscho

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:7551374
http://loci.wisc.edu/software/interfacing-non-java-code
@dscho
dscho / unique-jenkins-nickname.sh
Created Jul 26, 2013
This script finds unique, new nicknames for Jenkins to be used in commit messages.
View unique-jenkins-nickname.sh
#!/bin/sh
# Finds a unique nick name for Jenkins in the current Git history
# List from http://www.zelo.com/firstnames/alphabet/namesj.asp
names='
jaantje
jaap
jabari
jabbar
View gist:5483376
diff --git a/eclipse-bytecode.txt b/oracle-bytecode.txt
index 287569f..c8af853 100644
--- a/eclipse-bytecode.txt
+++ b/oracle-bytecode.txt
@@ -3,41 +3,41 @@ public class net.imglib2.ops.sandbox.Expressions extends java.lang.Object{
public net.imglib2.ops.sandbox.Expressions();
Code:
0: aload_0
- 1: invokespecial #8; //Method java/lang/Object."<init>":()V
+ 1: invokespecial #1; //Method java/lang/Object."<init>":()V
View gist:5286408
;; Command_Launcher.clj starts here
(import '(java.awt Color)
'(java.awt.event TextListener)
'(ij.gui GenericDialog)
'(ij IJ)
'(ij Menus))
(let [commands (keys (. Menus getCommands))
gd (GenericDialog. "Command Launcher")]
(.addStringField gd "Command: " "")
View gist:5161715
imp = IJ.createImage("Example", "8-bit", 256, 256, 10);
imp.show();
Thread.sleep(1000);
imp.getStack().deleteSlice(1);
imp.updateAndDraw();
imp.getWindow().repaint();
View gist:4566069
image = IJ.getImage();
ip = image.getProcessor();
ip = ip.duplicate();
dx = +10;
dy = -21;
ip.translate(dx, dy);
new ImagePlus("translated " + dx + ", " + dy, ip).show();
View gist:3829022
c = ij.IJ.class;
c = imagej.util.AppUtils.class;
path = "/" + c.getName().replace('.', '/') + ".class";
url = c.getResource(path).toString();
manifestURL = url.substring(0, url.length() - path.length()) + "/META-INF/MANIFEST.MF";
print(manifestURL);
import fiji.build.minimaven.BuildEnvironment;
BuildEnvironment.copy(new URL(manifestURL).openStream(), System.err, false);
View gist:3762927
[testng] "main" prio=10 tid=0x00007f8958008000 nid=0x6424 runnable [0x00007f8960288000]
[testng] java.lang.Thread.State: RUNNABLE
[testng] at java.util.zip.ZipFile.getEntry(Native Method)
[testng] at java.util.zip.ZipFile.getEntry(ZipFile.java:166)
[testng] - locked <0x0000000705e4d150> (a java.util.jar.JarFile)
[testng] at java.util.jar.JarFile.getEntry(JarFile.java:223)
[testng] at java.util.jar.JarFile.getJarEntry(JarFile.java:206)
[testng] at sun.misc.URLClassPath$JarLoader.getResource(URLClassPath.java:771)
[testng] at sun.misc.URLClassPath$JarLoader.findResource(URLClassPath.java:749)
[testng] at sun.misc.URLClassPath$1.next(URLClassPath.java:212)
@dscho
dscho / gist:2999084
Created Jun 26, 2012
ImageJ2 scripting & plugin workshop
View gist:2999084
ImageJ2 has a powerful Scripting framework, based on Fiji's scripting support.
We will introduce the participants into the basic concepts of ImageJ2 necessary
to interact with data and plugins in ImageJ2. After a brief overview how to
write scripts, we will illustrate what ImageJ2 plugins look like and develop a
simple plugin that will run in ImageJ2, CellProfiler and KNIME. This will be a
hands-on workshop; we encourage participants to bring their own computers and
install ImageJ2 beforehand.
Keywords: ImageJ2, scripting, plugin development, workshop
You can’t perform that action at this time.