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
#!/bin/bash | |
D=$(dirname $(readlink -nf $BASH_SOURCE)) | |
SD=$(readlink -nf $D/../httpdocs) | |
# The js-beautify directory. (It can be cloned from | |
# https://github.com/einars/js-beautify .) | |
JSB=~/js-beautify/ | |
if [ ! -e "$JSB/beautify-cl.js" ] |
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/env python | |
# This script takes the output of Stephan Preibisch's stitching plugins | |
# for 3D stacks and outputs tab separated data suitable for loading | |
# into TrakEM2. What TrakEM2 expects is described here: | |
# | |
# http://www.ini.uzh.ch/~acardona/trakem2_manual.html#importing_list | |
import sys, re |
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/python | |
import re, csv, sys, urllib, urllib2, time, cgi | |
from collections import defaultdict | |
spreadsheet_url = 'https://docs.google.com/spreadsheet/ccc?key=0Am9Hd8ELMkEsdDg4QVd6d0JGeS1WQ0VpTnNBSm5xS2c&output=csv' | |
season_output = defaultdict(list) | |
decision_data = { |
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
#!/bin/sh | |
set -e | |
cd "$(git rev-parse --show-cdup)" | |
# Find all the objects that are in packs: | |
for p in .git/objects/pack/pack-*.idx | |
do |
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/ruby -w | |
require 'statistics2' | |
class Numeric | |
def to_percent | |
"#{(self * 100).round}%" | |
end | |
end |
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
#!/bin/sh | |
set -e | |
CURRENT_BRANCH="$(git symbolic-ref HEAD)" | |
CURRENT_BRANCH_UPSTREAM="$(git rev-parse --symbolic-full-name @{u} 2> /dev/null)" | |
# Update the remote-tracking branches for every remote for which | |
# remote.<name>.skipDefaultUpdate is not true: | |
git remote update default |
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 os | |
import re | |
from tracing import PathAndFillManager | |
# An example script showing how to convert all the .traces | |
# files in a directory to SWC files. (The .traces format | |
# is the native file format of Simple Neurite Tracer.) | |
def run(): | |
d = IJ.getDirectory("Choose your directory of .traces files...") |
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
#!/bin/bash | |
# A script that squashes your entire current branch down to a single commit, | |
# if this repository has a single root commit. This will change the object | |
# name of the root commit. This is for an answer to the Stack Overflow | |
# question: http://stackoverflow.com/questions/5266340/ | |
if [ -n "$(git status --porcelain)" ] | |
then | |
echo "git status wasn't clean - refusing to run..." |
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 re | |
import os | |
from java.awt import Color | |
from ij3d import Image3DUniverse | |
univ = Image3DUniverse(512, 512) | |
univ.show() | |
# d = '/home/mark/painting-demo/static/data' |
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
Checking prerequisites of (fiji.build.SubFake) jars/weka.jar <- fiji jars/Fiji.jar ... | |
Building (fiji.build.SubFake) jars/weka.jar <- fiji jars/Fiji.jar ... | |
Building in modules/weka/ | |
Checking prerequisites of (fiji.build.ExecuteProgram) weka.jar <- weka/dist/weka.jar | |
Checking prerequisites of (fiji.build.ExecuteProgram) weka/dist/weka.jar <- | |
Building (fiji.build.ExecuteProgram) weka/dist/weka.jar <- | |
Executing: '../../fiji' '--ant' '-f' 'weka/build.xml' 'exejar' | |
Found that JAVA_HOME was: '/usr/lib/jvm/java-6-openjdk/' | |
Buildfile: weka/build.xml |