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
sudo apt-get -y install git-core curl locate | |
git clone http://github.com/delinquentme/ghgvc.git | |
curl -L https://get.rvm.io | bash -s stable --ruby | |
## RVM reqs | |
sudo apt-get -y install build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison subversion | |
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
In [1]: import instruments.devices.Ocean_Optics.USB2000plus_x64 | |
ERROR:root:could not find library OmniDriver64.dll! | |
An exception has occurred, use %tb to see the full traceback. | |
SystemExit | |
To exit: use 'exit', 'quit', or Ctrl-D. | |
In [2]: %tb | |
--------------------------------------------------------------------------- | |
SystemExit Traceback (most recent call last) |
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
if [ ! -f /usr/lib/libjvm.so ] ; then | |
echo FAIL: Symbolic link /usr/lib/libjvm.so does not exist... | |
echo FAIL: You can make this link by issuing the following command as root: | |
echo FAIL: ln -s /path/to/jdk/jre/lib/386/client/libjvm.so /usr/lib/libjvm.so | |
echo FAIL: where /path/to/jdk is the path of your JDK installation | |
echo | |
else | |
echo PASS: Symbolic link /usr/lib/libjvm.so exists... | |
echo | |
fi |
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 | |
import logging, os | |
import cgi | |
import urllib2 | |
import numpy as np | |
import h5py | |
from time import sleep | |
from instruments.devices.Ocean_Optics.USB2000plus_x64 import USB2000plus |
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
#!/bin/bash | |
# GHGVC install script for rails application | |
# Written by Carl Crott <[email protected]> | |
sudo apt-get -y install git-core curl locate | |
git clone http://github.com/delinquentme/ghgvc.git | |
curl -L https://get.rvm.io | bash -s stable --ruby |
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
#!/bin/bash | |
# GHGVC install script for rails application | |
# Written by Carl Crott <[email protected]> | |
sudo apt-get install git-core | |
\curl -L https://get.rvm.io | bash -s stable --ruby | |
sudo adduser deploy |
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
(10L, datetime.datetime(2013, 4, 4, 15, 18, 8), 'Cholesterol and glucose serial dilution, test', 'Albert', 25L, 0, None, None, None) | |
(11L, datetime.datetime(2013, 4, 4, 15, 18, 8), 'more testing', 'DM', 22L, 0, None, None, None) | |
(12L, datetime.datetime(2013, 4, 4, 15, 18, 8), 'more testing', 'DM', 22L, 0, None, None, None) | |
(13L, datetime.datetime(2013, 4, 4, 15, 18, 8), 'Test the shit out of this interface', 'NS', 38L, 0, None, None, None) | |
(14L, datetime.datetime(2013, 4, 4, 15, 18, 8), 'Test the shit out of this interface', 'NS', 38L, 0, None, None, None) | |
(15L, datetime.datetime(2013, 4, 4, 15, 18, 8), 'test this out', 'dm', 38L, 0, None, None, None) | |
(16L, datetime.datetime(2013, 4, 4, 15, 18, 8), 'test it', 'dm', 38L, 0, None, None, None) | |
(17L, datetime.datetime(2013, 4, 4, 15, 18, 8), 'multi channel test', 'dm', 22L, 0, None, None, None) | |
(18L, datetime.datetime(2013, 4, 4, 15, 18, 8), 'Initial test run for 3 redboxes', 'NS', 38L, 0, None, None, None) | |
(19L, datetime.datetime(2013, 4, 4, 15, 18, 8), |
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/Rscript | |
library(ghgvcr) | |
config.xml <- "/home/thrive/rails_projects/ghgvcR/inst/multisite_config.xml" | |
config.list <- xmlToList(xmlParse(config.xml)) | |
x <- ghgvc2(config.list) | |
writeLines(x, "/home/thrive/rails_projects/ghgvcR/inst/extdata/output.json") |
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
function instantiateExperimentDataTableBindings() { | |
experimentTable = $("#experimentsListDiv").experimentList({ | |
url : 'experiment_list.py', | |
onbeforepost : function () { | |
$('#spinnercont').show(); | |
}, | |
onreload : function () {}, | |
onpostdone : function () { | |
$('#spinnercont').hide(); | |
}, |
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
$(this).find('tbody').find('tr').eq(0).find('td.cartridgeLabel').append( | |
"<input class='cartridgelabel-"+o.measID+"' value='"+o.measCartridgeLabel+"' type='textbox'>" | |
); | |
$(this).find('tbody').find('tr').eq(0).find('td.save').append( | |
'<button id="saveMeasurementEdits-'+o.measID+'" type="submit">Save</button>' | |
); |