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
| from matplotlib import pyplot as plt | |
| def vals(s): | |
| import re | |
| pids = re.findall(r'\([0-9]+\)', s) | |
| for i in xrange(len(pids)): | |
| pids[i] = int(re.sub(r'(\(|\))','',pids[i])) | |
| v = re.findall(r'[0-9]+\.[0-9]+',s) |
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
| curl -X DELETE "http://localhost:9200/venues" | |
| curl -X POST "http://localhost:9200/venues" | |
| curl -X POST "http://localhost:9200/venues/venue/_mapping" -d ' | |
| { | |
| "venue" : { | |
| "properties" : { | |
| "name" : { "type" : "string" }, | |
| "pin" : { | |
| "properties" : { |
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 ruby | |
| couchdb = "http://localhost:5984/" | |
| if ARGV[0] == 'admin' | |
| couchdb = couchdb + '_utils/index.html' | |
| exec 'open ' + couchdb | |
| elsif ARGV[0] == 'wipe' | |
| require 'couchrest' | |
| cr = CouchRest.new('http://localhost:5984') |
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
| diff --git a/buildout.cfg b/buildout.cfg | |
| index 4815d9d..33349b3 100644 | |
| --- a/buildout.cfg | |
| +++ b/buildout.cfg | |
| @@ -6,7 +6,6 @@ parts = | |
| pyzmq | |
| pyyaml | |
| gevent | |
| - numpy-install | |
| h5py |
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
| (sci)Lukes-ASA-Macbook:coi-services (dm_coverage +%) luke$ gcc -o /tmp/ss /tmp/short_circuit.c | |
| (sci)Lukes-ASA-Macbook:coi-services (dm_coverage +%) luke$ /tmp/ss | |
| End of program. |
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
| public class ShortCircuit | |
| { | |
| public static boolean do_something() | |
| { | |
| System.out.println("You shouldn't see this."); | |
| return true; | |
| } | |
| public static void main(String[] args) | |
| { |
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 | |
| class Document(object): | |
| pass | |
| class Library(Document): | |
| pass | |
| class LifeStage(Document): | |
| pass | |
| class Diel(Document): | |
| pass | |
| class Taxis(Document): |
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
| diff --git a/ion/processes/data/transforms/viz/google_dt.py b/ion/processes/data/transforms/viz/google_dt.py | |
| index ae75be0..1deb71d 100644 | |
| --- a/ion/processes/data/transforms/viz/google_dt.py | |
| +++ b/ion/processes/data/transforms/viz/google_dt.py | |
| @@ -6,7 +6,7 @@ | |
| ''' | |
| -from pyon.ion.transform import TransformFunction | |
| +from pyon.ion.transforma import TransformAlgorithm |
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
| from pyon.util.log import log | |
| from pyon.ion.stream import SimpleStreamSubscriber | |
| from pyon.core.exception import BadRequest | |
| import random | |
| import gevent | |
| class BastardSubscriber(object): | |
| def __init__(self, container, exchange_name='bastard'): |
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
| sample = [ | |
| { | |
| 'time' : [0,1,2,3], | |
| 'temp' : [0,1,2,3] | |
| }, | |
| { | |
| 'time' : [4,5,6,7], | |
| 'cond' : [4,5,6,7], | |
| }, | |
| { |