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
| 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
| 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
| 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
| 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
| /* | |
| * 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
| 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
| #!/bin/bash | |
| # Uses a PID file to add daemon-like behavior to an arbitrary program. | |
| ################################################################################ | |
| usage() { | |
| echo "Usage: `basename $0` PROGRAM {start|stop|restart|force-stop|force-restart|status} [PIDFILE|PID]" >&2 | |
| echo "Where: PROGRAM is an executable file." >&2 | |
| echo " PIDFILE is the file that contains (or will contain) the PID." >&2 | |
| echo " PID is a process id to use in place of a PIDFILE." >&2 | |
| } |
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/python2 | |
| # | |
| # Youtube-upload is free software: you can redistribute it and/or modify | |
| # it under the terms of the GNU General Public License as published by | |
| # the Free Software Foundation, either version 3 of the License, or | |
| # (at your option) any later version. | |
| # | |
| # Youtube-upload is distributed in the hope that it will be useful, | |
| # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Leaflet.js as a Whole Slide Viewer</title> | |
| <meta charset="utf-8" /> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/leaflet/0.5.1/leaflet.min.css" /> | |
| <!--[if lte IE 8]><link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/leaflet/0.5.1/leaflet.ie.min.css" /><![endif]--> |