Skip to content

Instantly share code, notes, and snippets.

View maurimiranda's full-sized avatar

Mauricio Miranda maurimiranda

  • Mendoza, Argentina
View GitHub Profile
@maurimiranda
maurimiranda / index.html
Last active August 22, 2018 15:07
GeoDashboard example for Martti
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-16LE">
<title>Vedenkorkeudet Pirkanmaalla ..testi</title>
<link rel="stylesheet" href="https://unpkg.com/geodashboard/dist/geo-dashboard.css" />
<script src="https://cdn.rawgit.com/openlayers/openlayers.github.io/master/en/v5.1.3/build/ol.js"></script>
<script src="https://unpkg.com/geodashboard/dist/geo-dashboard.js"></script>
var influx = require('influx'),
dht = require('./lib/dht'),
moisture = require('./lib/moisture'),
config = require('./config/config'),
client = influx(config.influx);
var Logger = function () {
}
Logger.prototype.logAll = function () {
Water Management Projects with FOSS4G:
International Water Management Institute, University of Moratuwa, Sri Lanka
Research & Monitoring
Evapotranspiration model
Road condition monitoring
PyWPS y Grass
http://www.slideshare.net/HirofumiHayashi/combining-foss4g-open-hardware-for-research-monitoring-in-southern-asia
San Jose Water Company, USA
(function ($) {
var Server = Backbone.Model.extend({
getLayers: function() {
if(!this.layers) {
this.layers = new Layers({server: this});
}
this.layers.fetch();
return this.layers;
}
#!/bin/bash
if [ $# -ne 6 ]
then
echo "Usage: `basename $0` host user password database limit outfile"
exit
fi
host=$1
user=$2
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
'NAME': 'aarp_dev', # Or path to database file if using sqlite3.
'USER': 'root', # Not used with sqlite3.
'PASSWORD': '', # Not used with sqlite3.
'HOST': 'localhost', # Set to empty string for localhost. Not used with sqlite3.
'PORT': '', # Set to empty string for default. Not used with sqlite3.
}
}
ArgumentError in CatalogsController#find
`per_page` setting cannot be less than 1 (0 given)
RAILS_ROOT: /Users/mmiranda/projects/ccMainline
Application Trace | Framework Trace | Full Trace
/Users/mmiranda/.rvm/gems/ruby-1.8.7-p330@catalogchoice/gems/will_paginate-2.3.14/lib/will_paginate/collection.rb:51:in `initialize'
/Users/mmiranda/.rvm/gems/ruby-1.8.7-p330@catalogchoice/gems/will_paginate-2.3.14/lib/will_paginate/collection.rb:84:in `new'
/Users/mmiranda/.rvm/gems/ruby-1.8.7-p330@catalogchoice/gems/will_paginate-2.3.14/lib/will_paginate/collection.rb:84:in `create'
/Users/mmiranda/.rvm/gems/ruby-1.8.7-p330@catalogchoice/gems/sunspot-1.2.1/lib/sunspot/search/abstract_search.rb:277:in `maybe_will_paginate'
/Users/mmiranda/.rvm/gems/ruby-1.8.7-p330@catalogchoice/gems/will_paginate-2.3.14/lib/will_paginate/collection.rb:51:in `initialize'
/Users/mmiranda/.rvm/gems/ruby-1.8.7-p330@catalogchoice/gems/will_paginate-2.3.14/lib/will_paginate/collection.rb:84:in `new'
/Users/mmiranda/.rvm/gems/ruby-1.8.7-p330@catalogchoice/gems/will_paginate-2.3.14/lib/will_paginate/collection.rb:84:in `create'
/Users/mmiranda/.rvm/gems/ruby-1.8.7-p330@catalogchoice/gems/sunspot-1.2.1/lib/sunspot/search/abstract_search.rb:277:in `maybe_will_paginate'
/Users/mmiranda/.rvm/gems/ruby-1.8.7-p330@catalogchoice/gems/sunspot-1.2.1/lib/sunspot/search/abstract_search.rb:87:in `hits'
/Users/mmiranda/.rvm/gems/ruby-1.8.7-p330@catalogchoice/gems/sunspot-1.2.1/lib/sunspot/search/abstract_search.rb:272:in `verified_hits'
/Users/mmiranda/.rvm/gems/ruby-1.8.7-p330@catalogchoice/gems/sunspot-1.2.1/lib/sunspot/search/abstract_search.rb:56:in `results'
/Users/mmiranda/projects/ccMainline/app/models/catalog.rb:384:in `consumer_search'
/Users/mmiranda/proj
bundle exec rake sunspot:solr:run
DEPRECATION WARNING: Rake tasks in vendor/plugins/acts_as_sanitized/tasks, vendor/plugins/annotate_models/tasks, vendor/plugins/bj/tasks, vendor/plugins/busyajax/tasks, vendor/plugins/cache_fu/tasks, vendor/plugins/event_attribute/tasks, vendor/plugins/fitter_happier/tasks, vendor/plugins/jslint_on_rails/tasks, vendor/plugins/migration_test_helper/tasks, vendor/plugins/navigation_helper/tasks, vendor/plugins/redbox/tasks, and vendor/plugins/validates_url_format_of/tasks are deprecated. Use lib/tasks instead. (called from /Users/mmiranda/.rvm/gems/ruby-1.8.7-p330@catalogchoice/gems/rails-2.3.14/lib/tasks/rails.rb:10)
WARNING: 'task :t, arg, :needs => [deps]' is deprecated. Please use 'task :t, [args] => [deps]' instead.
at /Users/mmiranda/projects/ccMainline/lib/tasks/sunspot.rake:4
WARNING: 'task :t, arg, :needs => [deps]' is deprecated. Please use 'task :t, [args] => [deps]' instead.
at /Users/mmiranda/projects/ccMainline/lib/tasks/sunspot.rake:31
WARNING: 'task :t
<div style="border: 1px solid black; width: 600px;" class="modal fade" id="cvv-dialog">
<div class="modal-header">
<a id="close-cvv-dialog" class="close" >x</a>
<h3>What is your card's security code?</h3>
</div>
<div class="modal-body">
<p>The card security code is three or four digit number that is unique to each card. This additional security feature is designed to protect you by helping to ensure the card is present during the pruchase. It is printed only on the card, never on any receipt or statements.</p>
<div>
<img src="img-cc-vmd.png" align="right"/>
<h5>Visa, Mastercard, Discover</h5>