This file contains 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/env python3 | |
import csv | |
mpix_header = ( | |
"First Name", | |
"Last Name", | |
"Family Name", | |
"Address Line 1", | |
"Address Line 2", |
This file contains 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 net.imglib2.* | |
import net.imglib2.img.Img | |
import net.imglib2.img.array.ArrayImgs | |
interface _A | |
interface _B | |
interface _AB: _A, _B | |
interface _BA: _B, _A |
This file contains 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
const val BEST = "PAH" | |
val String?.better: String | |
get() = BEST | |
fun main(vararg args: String) { | |
val name = args.firstOrNull() | |
println("Hello, ${name.better}!") | |
} |
This file contains 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 mido | |
import sys | |
for idx, track in enumerate(mido.MidiFile(sys.argv[1]).tracks): | |
print(f'Track {idx}: {track.name}') | |
for msg in track: | |
print(f' {msg}') |
This file contains 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/env kscript | |
@file:DependsOn("com.drewnoakes:metadata-extractor:2.13.0") | |
@file:DependsOn("org.apache.commons:commons-lang3:3.10") | |
@file:DependsOn("info.picocli:picocli:4.2.0") | |
import java.io.File | |
import java.nio.file.CopyOption | |
import java.nio.file.StandardCopyOption | |
import java.nio.file.Files |
This file contains 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/env kscript | |
@file:MavenRepository("imagej.public", "https://maven.imagej.net/content/groups/public") | |
@file:DependsOn("org.janelia.saalfeldlab:n5:2.1.0") | |
@file:DependsOn("info.picocli:picocli:4.2.0") | |
@file:DependsOn("ch.qos.logback:logback-classic:1.3.0-alpha5") | |
import java.util.concurrent.Callable | |
import org.janelia.saalfeldlab.n5.N5FSReader |
This file contains 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/env bash | |
ROOT_DIR="$HOME/workspace/paintera/paintera" | |
JAVA_SRC="$ROOT_DIR/src/main/java" | |
KOTLIN_SRC="$ROOT_DIR/src/main/kotlin" | |
cd $JAVA_SRC | |
FILES=$(find . -type f -name '*kt') |
This file contains 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/env kscript | |
@file:MavenRepository("scijava.public", "https://maven.scijava.org/content/groups/public") | |
@file:DependsOn("sc.fiji:bigdataviewer-vistools:1.0.0-beta-11") | |
import kotlin.math.pow | |
import bdv.util.BdvFunctions | |
import bdv.util.volatiles.VolatileViews | |
import net.imglib2.Localizable |
This file contains 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
Traceback (most recent call last): | |
File "jnius/jnius_proxy.pxi", line 156, in jnius.invoke0 | |
Access is null, returning! | |
File "jnius/jnius_proxy.pxi", line 124, in jnius.py_invoke0 | |
AttributeError: 'dict' object has no attribute 'invoke' | |
Traceback (most recent call last): | |
Access is null, returning! | |
File "jnius/jnius_proxy.pxi", line 156, in jnius.invoke0 | |
File "jnius/jnius_proxy.pxi", line 124, in jnius.py_invoke0 | |
AttributeError: 'dict' object has no attribute 'invoke' |
This file contains 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 time | |
def main(): | |
import threading | |
ij = [None] | |
def start_qt_and_ij(): | |
from PyQt5 import QtCore, QtWidgets | |
app = QtWidgets.QApplication([]) |