Skip to content

Instantly share code, notes, and snippets.

@beOn
beOn / gist:6665660
Created September 23, 2013 01:57
An interface that gathers all of the files you pass it into a single directory using hard links.
import os
from nipype.interfaces.base import BaseInterface, InputMultiPath,\
OutputMultiPath, BaseInterfaceInputSpec, traits, File, TraitedSpec
class CCPGatherFilesInputSpec(BaseInterfaceInputSpec):
files = InputMultiPath(
traits.Either(traits.List(File(exists=True)),File(exists=True)),
mandatory=True,
desc='a list of files you would like to gather into one directory with symlinks',
copyfile=False)
{
"metadata": {
"name": "TestAnalysis"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
@beOn
beOn / gist:4970435
Created February 17, 2013 06:21
installing Shapely without geos_c
# This is what happens when I `sudo pip install Shapely`.
# (Shapely is best if you have libgeos_c, but you can install without it.)
---------------------------------------------
$> sudo pip install Shapely
...
( yada yada yada, setup.py egg_info -> setup.py install for Shapely )
( then after installation, we get this message: )
...
clang: warning: argument unused during compilation: '-mno-fused-madd'
@beOn
beOn / GDFeed.js
Last active December 10, 2015 01:28
// Copyright 2012 Ben Acland
// See License.txt for details.
//
// Mode d'emploi...
//
// for testing:
// var g = new GDFeed(testData, successCallback, errorCallback)
// g.fetchData()
//
// for reals: