Skip to content

Instantly share code, notes, and snippets.

View tmp-debian-helper.sh
#!/bin/sh
cd /usr/lib/fiji
url=http://pacific.mpi-cbg.de/update
curl $url/current.txt |
while read package date has
do
case $package in
View fiji dpkg output
rc fiji 20090513 The Fiji image processing suite (based on ImageJ)
ii fiji-base 20100818203510 Core components of Fiji
ii fiji-bunwarpj 20100818203510 [FIXME: please write a description for this Fiji packag
ii fiji-edu-mines-jtk 20100818203510 [FIXME: please write a description for this Fiji packag
ii fiji-imagej 20100818203510 [FIXME: please write a description for this Fiji packag
ii fiji-imglib 20100818203510 [FIXME: please write a description for this Fiji packag
ii fiji-jai 20100818203510 [FIXME: please write a description for this Fiji packa
View postgresql-Fakefile.patch
diff --git a/Fakefile b/Fakefile
index 0eac65f..ae2854e 100644
--- a/Fakefile
+++ b/Fakefile
@@ -85,6 +85,9 @@ ENVOVERRIDES(JAVA_HOME)=true
FIJI_JAVA_EXT=$FIJI_JAVA_HOME/lib/ext
FIJI_JAVA_EXT(macosx)=$FIJI_JAVA_HOME/Home/lib/ext
JAVA3D_JARS=$FIJI_JAVA_EXT/j3dcore.jar:$FIJI_JAVA_EXT/j3dutils.jar:$FIJI_JAVA_EXT/vecmath.jar
+ENVOVERRIDES(JAVA3D_JARS)=true
+POSTGRESQL_JAR=jars/postgresql-8.2-506.jdbc3.jar
View gist:560796
import ij.IJ;
import ij.ImagePlus;
import ij.io.FileInfo;
import ij.io.OpenDialog;
import ij.plugin.PlugIn;
import ij.process.ByteProcessor;
View gist:890246
newImage("Untitled", "16-bit Ramp", 256, 256, 1);
run("Merge Channels...", "red=Untitled green=*None* blue=Untitled gray=*None* create");
View gist:1084529
http://fiji.sc/cgi-bin/gitweb.cgi?p=fiji.git;a=tree;f=src-plugins/Updater_Fix/fiji/updater;h=46f264238c64c98671410928a59bc6c46ab702b0;hb=28b8c7f37356276f46526c6e7b567fa8dbb4dc0f
View gist:1434511
java.lang.NullPointerException
at imagej.legacy.translate.LegacyUtils.dimensionsIJ1Compatible(LegacyUtils.java:121)
at imagej.legacy.plugin.LegacyPlugin.isLegacyCompatible(LegacyPlugin.java:306)
at imagej.legacy.plugin.LegacyPlugin.run(LegacyPlugin.java:106)
at imagej.ext.plugin.PluginModule.run(PluginModule.java:148)
at imagej.ext.module.ModuleRunner.run(ModuleRunner.java:148)
at imagej.ext.module.ModuleRunner.call(ModuleRunner.java:118)
at imagej.ext.module.ModuleRunner.call(ModuleRunner.java:65)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
@dscho
dscho / gist:1854723
Created Feb 17, 2012
Initial .git/config for accelerated git-svn clones of ImageJ2's source code repository
View gist:1854723
# 1) git init
# 2) overwrite .git/config with this file
# 3) git fetch
# This step takes some time:
# 4) git svn fetch
# 5) git checkout -b master -t trunk
[core]
repositoryformatversion = 0
filemode = true
bare = false
View gist:2024565
diff --git a/ij/process/ColorProcessor.java b/ij/process/ColorProcessor.java
index a036cf4..f35f06c 100644
--- a/ij/process/ColorProcessor.java
+++ b/ij/process/ColorProcessor.java
@@ -303,17 +303,9 @@ public class ColorProcessor extends ImageProcessor {
}
public final float getf(int index) {
- int c = pixels[index];
- int r = (c&0xff0000)>>16;
View gist:2990484
// take a list and return a newArray(...) command
function join(list) {
result = "newArray(";
for (i = 0; i < list.length; i++) {
if (i > 0)
result = result + ", ";
result = result + list[i];
}
result = result + ")";
return result;
You can’t perform that action at this time.