Skip to content

Instantly share code, notes, and snippets.

View sabman's full-sized avatar
😀
Building, Shiping, Sharing!

Shoaib Burq sabman

😀
Building, Shiping, Sharing!
View GitHub Profile
# autocomplete fuzzy search
if yes?(">> Do you want to add no_fuzz")
plugin "no_fuzz", :git => "git://github.com/Chrononaut/no_fuzz.git"
end
if yes?(">> Do you want to add auto_complete")
plugin "auto_complete", :git => "git://github.com/rails/auto_complete.git"
end
if yes?(">> Do you want to add mislav-will_paginate")
require 'open-uri'
data = YAML.load(
open('http://2009.foss4g.org/workshops_and_tutorials.yml').read
)
# http://2009.foss4g.org/schedule.yml
workshops:
workshop_01:
title: "Geospatial BI with FOSS: an introduction to GeoMondrian and Spatialytics"
user: Advanced User
presenters:
1: presenter_01 # Thierry Badard
2: presenter_02 # Etienne Dubé
short_description:
'This workshop offers a practical introduction to two new Open Source projects in the Geospatial Business Intelligence field: GeoMondrian, a Spatial OLAP server based on Mondrian (Pentaho Analysis Services), and Spatialytics, a web-mapping client for building Geo BI solutions (dashboards and web Spatial OLAP clients) based on OpenLayers.'
require 'open-uri'
data = YAML.load(open('http://2009.foss4g.org/schedule.yml').read)
data['tutorials'].each do |s|
session_name = e[0]
# create a session ical file for tutorials
end
data['workshops'].each do |e|
session_name = e[0]
# create a session ical file for workshops
end
require "yaml"
require "open-uri"
data = YAML.load(open('http://2009.foss4g.org/schedule.yml').read)
data.each do |k, v|
puts k
v.sort.each do |k, v|
puts " #{k}"
end
end
# http://2009.foss4g.org/presenters.yml
presenters:
presenter_01:
name: Thierry Badard
address: 'Quebec City, QC, Canada'
location_wkt: SRID=4326;POINT(-71.270199 46.782536)
biography: Dr. Thierry Badard is professor in geoinformatics at the Department of geomatics sciences of Laval University in Quebec City (Canada). He heads the GeoSOA research group and is a full time researcher and a member of the steering committee of the Centre for Research in Geomatics (CRG). He is also a regular researcher of the GEOIDE Network of Centres of Excellence in geomatics. He has more than 13 years of experience and he has been involved and has led national and international R & D projects of importance. His research interest deals with geospatial (Web) Services Oriented Architectures (SOA), location-based and context-aware web services, geospatial Business Intelligence and geo-analytical tools and the design of intelligent mobile applications for better decision support. Dr. Thierry Badard is also involve
#!/usr/bin/env ruby
#
# A hook script to verify that only syntactically valid ruby code is commited.
# Called by git-commit with no arguments. The hook should
# exit with non-zero status after issuing an appropriate message if
# it wants to stop the commit.
#
# Put this code into a file called "pre-commit" inside your .git/hooks
# directory, and make sure it is executable ("chmod +x .git/hooks/pre-commit")
#
@sabman
sabman / setup_geo_schema.rb
Created November 1, 2009 10:23
set up an AR schema for PostGIS outside of Rails
system('sudo gem install GeoRuby')
system('git clone git://github.com/fragility/spatial_adapter.git')
$:.unshift(File.join(File.dirname(__FILE__), 'spatial_adapter', 'lib'))
require "rubygems"
require "active_record"
ActiveRecord::Base.establish_connection(
:adapter => "postgresql",
@sabman
sabman / schema_oracle_spatial.rb
Created November 3, 2009 03:31
schema_oracle_spatial.rb - experimenting with oracle spatial and activerecord connections
$:.unshift(File.join(File.dirname(__FILE__), 'spatial_adapter', 'lib'))
$:.unshift(File.join(File.dirname(__FILE__), '..', 'utils'))
require 'rubygems'
require 'pp'
require 'active_record'
require 'active_record/connection_adapters/oracle_enhanced_adapter'
require 'geo_ruby'
require 'oci8'
require 'sdo_geometry.rb'