This file contains 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
# Warning: The contents of the database defined as "test" will be erased and | |
# re-generated from your development database when you run "rake". | |
# Do not set this db to the same as development or production. | |
test: | |
adapter: mysql2 | |
username: <username> | |
password: | |
database: publiclab_test | |
encoding: utf8 | |
pool: 5 |
This file contains 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
> exiftool Downloads/Picture_143402113447.jpg | |
ExifTool Version Number : 9.28 | |
File Name : Picture_143402113447.jpg | |
Directory : Downloads | |
File Size : 1768 kB | |
File Modification Date/Time : 2014:03:05 11:01:53-05:00 | |
File Access Date/Time : 2014:03:05 11:01:52-05:00 | |
File Inode Change Date/Time : 2014:03:05 11:01:56-05:00 | |
File Permissions : rw-r--r-- |
This file contains 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
-- execute("ALTER TABLE content_field_bbox ENGINE = InnoDB") | |
-> 2.4616s | |
-- execute("ALTER TABLE content_field_image_gallery ENGINE = InnoDB") | |
-> 3.0838s | |
-- execute("ALTER TABLE content_field_main_image ENGINE = InnoDB") | |
-> 2.8453s | |
-- execute("ALTER TABLE content_field_map_editor ENGINE = InnoDB") | |
-> 0.4688s | |
-- execute("ALTER TABLE content_field_mappers ENGINE = InnoDB") | |
-> 0.4575s |
This file contains 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
arren@spectralwb:~$ gem list | |
*** LOCAL GEMS *** | |
actionmailer (3.2.13, 2.3.15) | |
actionpack (3.2.13, 2.3.15) | |
activemodel (3.2.13, 3.2.11) | |
activerecord (3.2.13, 2.3.15) | |
activeresource (3.2.13, 2.3.15) | |
activesupport (3.2.13, 3.2.11, 2.3.15) |
This file contains 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
setup: function() { | |
// code to run on startup | |
// assume the same # of datapoints for now | |
// (this could be a poor assumption but we could bin them) | |
$.each($W.data,function(index,spectrum){ | |
var sum = 0 | |
$.each(spectrum.data,function(i,v){ |
This file contains 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
<form action="/warper/create" enctype="multipart/form-data" id="warpable_upload_form" method="post"> | |
<input name="authenticity_token" type="hidden" value="otjpq17Z9OVnJQcs8Kwr04P50IQUNC93VLRCTaQABKo=" /> | |
<label for="warpable">Choose a file from your computer (10mb max):</label> | |
<input id="warpable_uploaded_data" name="warpable[uploaded_data]" size="30" type="file" /> | |
<input id="warpable_map_id" name="map_id" type="hidden" value="5942" /> | |
<input name="commit" type="submit" value="Upload" /> | |
</form> |
This file contains 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
// Creates a PublicLab.org research note draft based on the selected text. | |
//Bookmarklet: javascript:(function(){document.body.appendChild(document.createElement('script')).src='http://publiclab.org/research-notify.js';})() | |
//Nice tips on jquery inclusion etc here: http://www.smashingmagazine.com/2010/05/23/make-your-own-bookmarklets-with-jquery/ | |
/* | |
To-do: | |
* make it check if there's already text selected |
This file contains 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
setup: function() { | |
// code to run on startup | |
flotoptions.yaxis.max = null | |
$.plot($("#graph"),$W.data,flotoptions); | |
}, | |
draw: function() { | |
// code to run every frame | |
} |
This file contains 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
warren$ exiftool /Users/warren/Desktop/IMG_20140420_180322.jpg | |
ExifTool Version Number : 9.28 | |
File Name : IMG_20140420_180322.jpg | |
Directory : /Users/warren/Desktop | |
File Size : 1384 kB | |
File Modification Date/Time : 2014:04:20 19:03:23-04:00 | |
File Access Date/Time : 2014:08:18 15:35:53-04:00 | |
File Inode Change Date/Time : 2014:08:04 15:21:19-04:00 | |
File Permissions : rwxr----- | |
File Type : JPEG |
This file contains 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
setup: function() { | |
// code to run on startup | |
// assume the same # of datapoints for now | |
// (this could be a poor assumption but we could bin them) | |
// go through each spectrum | |
$.each($W.data,function(index,spectrum){ | |
// determine highest y-height | |
var highest = 0 | |
$.each(spectrum.data,function(i,v){ |
OlderNewer