Create a Meteor app and put the client_/server_ files in a client/server directories. Also, create a public dir to save the uploaded files.
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
set :application, 'foo' | |
set :repository, '_site' | |
set :scm, :none | |
set :deploy_via, :copy | |
set :copy_compression, :gzip | |
set :use_sudo, false | |
set :host, '127.0.0.1' | |
role :web, host | |
role :app, host |
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
/* | |
* L.SingleTile uses L.ImageOverlay to display a single-tile WMS layer. | |
* url parameter must accept WMS-style width, height and bbox. | |
*/ | |
L.SingleTile = L.ImageOverlay.extend({ | |
defaultWmsParams: { | |
service: 'WMS', | |
request: 'GetMap', | |
version: '1.1.1', |
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
goog.provide('L.SingleTileWMSLayer'); | |
goog.require('L.Map'); | |
L.SingleTileWMSLayer = L.ImageOverlay.extend({ | |
defaultWmsParams: { | |
service: 'WMS', | |
request: 'GetMap', | |
version: '1.1.1', |
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 --form file=@159_02_marked.jpg --form data='{"item": {"id": 13456}}' http://160.94.51.184/omeka/api/files?key=insert_key_here |
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
var fs = require('fs'); | |
var path = require('path'); | |
var http = require('http'); | |
var querystring = require('querystring'); | |
var args = process.argv.splice(2); | |
if (args.length >= 2) { | |
var sourceDir = args[0]; | |
var caseNum = args[1]; |
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
var soap = require('soap'); | |
var url = 'http://gleason.ahc.umn.edu:86/Aperio.Image/Image.aspx?method=wsdl'; | |
var args = {name: 'value'}; | |
soap.createClient(url, function(err, client) { | |
console.log(err); | |
console.log(client); | |
}); |
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
-- cards are what you review. easy! | |
CREATE TABLE cards ( | |
id integer primary key, | |
-- the epoch milliseconds of when the card was created | |
nid integer not null, | |
-- notes.id | |
did integer not null, | |
-- deck id (available in col table) | |
ord integer not null, | |
-- ordinal, seems like. for when a model has multiple templates, or thereabouts |
GET image?x+y+w+h+z+q+m+f+r ‐ returns region from image file
Returns region from an Aperio image file (SVS) at the specified image path. The region is returned as a JPEG image. The following parameters may be supplied:
- x X‐coordinate of region, in pixels (upper left is [0,0]). Default is 0.
- y Y‐coordinate of region, in pixels (upper left is [0,0]). Default is 0.
- w width of region, in pixels. Maximum width is 2000 pixels. Default is image width or 2000, whichever is less.
- h height of region, in pixels. Maximum height is 2000 pixels. Default is image height or 2000, whichever is less.
- z zoom level of region (float), .5 = 200%, 2 = 50%, 4 = 25%. Other special values:
- ‐1 = thumbnail image
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
cordova platform add android | |
cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-network-information.git | |
cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-console.git | |
cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-device.git | |
cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-file.git | |
cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser.git | |
cordova build | |
cd www | |
wget https://github.com/signalpoint/DrupalGap/archive/drupalgap_7.x-1.7-alpha.zip | |
unzip drupalgap_7.x-1.7-alpha.zip |