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
""" | |
Example application: | |
Finding synapse candidates with a threshold in a skeleton | |
annotation where each neuron is represented/reconstructed as one long tree | |
of many nodes placed reguarly along its axon/dendrite paths. | |
Method: | |
Load an NML file and consider all pairs of trees. | |
For each tree pair, find the node pairs that have a distance | |
lower than a given threshold. |
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 os | |
from functools import partial | |
from time import gmtime, strftime | |
import numpy as np | |
from skimage import feature | |
from skimage.future import TrainableSegmenter | |
import webknossos as wk |
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
from time import gmtime, strftime | |
import numpy as np | |
from skimage import data | |
import webknossos as wk | |
from webknossos.dataset import COLOR_CATEGORY | |
def main() -> None: |
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 numpy as np | |
import webknossos as wk | |
def main() -> None: | |
##################### | |
# Opening a dataset # | |
##################### |
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 python | |
import os | |
import argparse | |
from multiprocessing import Pool | |
# install through pip | |
import numpy as np | |
import matplotlib.image as mpimg | |
import matplotlib.mlab as mlab | |
import matplotlib.pyplot as plt |
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
Homebrew build logs for homebrew/science/opencv3 on Mac OS X 10.11.3 | |
Build date: 2016-04-05 21:45:55 |
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
reader: | |
CohortLock.acquire() | |
ReadIndr.arrive() | |
CohortLock.release() | |
<read-critical-section> | |
ReadIndr.depart() |
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
#include <ck_pr.h> | |
#include <ck_spinlock.h> | |
#include <ck_cohort.h> | |
#include <ck_rwcohort.h> | |
/* Create cohort methods with signatures that match the required signature */ | |
static void ck_spinlock_lock_with_context(ck_spinlock_t *lock, void *context){ | |
(void)context; | |
ck_spinlock_lock(lock); | |
return; |
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
# Copyright (c) 2013 Georgios Gousios | |
# MIT-licensed | |
create database stackoverflow DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci; | |
use stackoverflow; | |
create table badges ( | |
Id INT NOT NULL PRIMARY KEY, | |
UserId INT, |
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
Stopping b2g | |
adb shell stop b2g | |
adb shell rm -r /cache/* | |
rm failed for /cache/*, Permission denied | |
python build/install-gaia.py "adb" "/data/local" "profile" | |
push: profile/webapps/bluetooth.gaiamobile.org/manifest.webapp -> /data/local/webapps/bluetooth.gaiamobile.org/manifest.webapp | |
failed to copy 'profile/webapps/bluetooth.gaiamobile.org/manifest.webapp' to '/data/local/webapps/bluetooth.gaiamobile.org/manifest.webapp': Permission denied | |
Traceback (most recent call last): | |
File "build/install-gaia.py", line 188, in <module> | |
install_gaia() |
NewerOlder