- may need to create the
/data/dbfolder - run
mongodorservice mongod startto get it started- may need to
sudothose so that it gets permissions
- may need to
- run
mongoto get into an interactive shell
install pymongo somehow
| (ns whatever.core) | |
| (defn success | |
| "create a successful monadic value" | |
| [value] | |
| {:status "success" :value value}) | |
| (defn failure | |
| "create a failing monadic value" |
| [ | |
| { | |
| "problem": "ambiguity: multiple matching sequential SS", | |
| "resolution": [ | |
| [ | |
| 79, | |
| { | |
| "51": { | |
| "residueid": 20 | |
| }, |
| 'use strict'; | |
| var genhtml = require('genhtml-js'), | |
| h = genhtml.html, | |
| s = genhtml.serialize, | |
| types = require('function-js').types; | |
| // extend Array | |
| function ArrayExt() {} | |
| ArrayExt.prototype = [1, 2, 3]; |
| use strict; | |
| use warnings; | |
| local $/; # set slurp mode so that entire file is read at once (instead of a single line) | |
| my $content = <STDIN>; | |
| my %refs = (); | |
| foreach my $key ($content =~ m/\\ref\{([\w_]+)\}/g) { |
| # pack a file | |
| gzip -c workflows.tar > workflows.gzip | |
| # unpack a file | |
| gzip -c -d workflows.gzip > unzipped.tar |
| import subprocess | |
| import re | |
| import sys | |
| if len(sys.argv) != 3: | |
| print "incorrect args" | |
| print sys.argv | |
| sys.exit(1) |
| asb |
| { | |
| "name": "X", | |
| "fields": [ | |
| ["a", "Int"], | |
| ["b", "String?"] | |
| ] | |
| } |