Is a tiny work around for the problem described here: http://stackoverflow.com/questions/18623351/phonegap-3-alert-that-if-i-click-ok-crashes-broswer/24974286#24974286
Put this into your js/consolebasednativeapi.js
#! /usr/bin/env python | |
# | |
""" | |
SQL-based storage of GC3pie objects. | |
""" | |
# Copyright (C) 2011-2012, 2015 S3IT, Zentrale Informatik, University of Zurich. All rights reserved. | |
# | |
# This program is free software; you can redistribute it and/or modify | |
# it under the terms of the GNU Lesser General Public License as published by | |
# the Free Software Foundation; either version 2 of the License, or |
import os | |
import sys | |
ROOT = os.path.dirname(os.path.abspath(__file__)) | |
TOKEN = 'No Response Detected' | |
NEWTOKEN = 'FISH01' | |
def rename_tiff_folder(tiff_path): |
#!/usr/bin/env bash | |
# | |
# Postgres-XC Configuration file for pgxc_ctl utility. | |
# | |
# Configuration file can be specified as -c option from pgxc_ctl command. Default is | |
# $PGXC_CTL_HOME/pgxc_ctl.org. | |
# | |
# This is bash script so you can make any addition for your convenience to configure | |
# your Postgres-XC cluster. | |
# |
''' | |
brainfuck `hello world` echo'er | |
test in here http://copy.sh/brainfuck/ | |
wbr, yy | |
''' | |
from brainfuck import evaluate | |
def pack(coordinates): | |
lines = list() |
Is a tiny work around for the problem described here: http://stackoverflow.com/questions/18623351/phonegap-3-alert-that-if-i-click-ok-crashes-broswer/24974286#24974286
Put this into your js/consolebasednativeapi.js
I've been using the Anaconda python package from continuum.io recently and found it to be a good way to get all the complex compiled libs you need for a scientific python environment. Even better, their conda tool lets you create environments much like virtualenv, but without having to re-compile stuff like numpy, which gets old very very quickly with virtualenv and can be a nightmare to get correctly set up on OSX.
The only thing missing was an easy way to switch environments - their docs suggest running python executables from the install folder, which I find a bit of a pain. Coincidentally I came across this article - Virtualenv's bin/activate is Doing It Wrong - which desribes a simple way to launch a sub-shell with certain environment variables set. Now simple was the key word for me since my bash-fu isn't very strong, but I managed to come up with the script below. Put this in a text file called conda-work
<?php | |
/** | |
* FuzzyDateParser is meerly a "convinience" wrapper around date_parse | |
* functionality from ext/date/lib/timelib code (which does all the | |
* scanning and other "fuzzy" guessing work). | |
* | |
* @see http://www.php.net/manual/en/function.date-parse.php | |
* @see http://stackoverflow.com/questions/15350309/heuristic-fuzzy-date-extraction-from-the-string | |
* | |
* by Yauhen Yakimovich, 2013 |
# MATLAB jsp syntax highlighting for Atlassian Fisheye/Crucible | |
# | |
# http://stackoverflow.com/questions/14916809/defining-custom-syntax-highlighting-for-atlassian-fisheye-crucible-matlab | |
syntaxdef matlab { | |
# whitespace | |
/\s+/m : ; | |
# comments | |
/%.*?$/m : { |