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
| This is a plain file. |
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
| require 'rubygems' | |
| puts "Mongo bongo" |
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
| require 'rubygems' | |
| require 'vortex_client' | |
| vortex = Vortex::Connection.new("https://vortex-dav.uio.no/") | |
| print "Title: " | |
| title = gets | |
| print "Introduction: " | |
| introduction = gets | |
| print "Body: " |
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
| require 'rubygems' | |
| require 'vortex_client' | |
| include Vortex | |
| vortex = Vortex::Connection.new("https://vortex-dav.uio.no/") | |
| vortex.cd('/brukere/thomasfl/events/') | |
| event = HtmlEvent.new(:title => "My Sample Event 1", | |
| :introduction => "Sample event introduction", | |
| :body => "<p>Hello world</p>", | |
| :startDate => "19.06.2010 17:56", |
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
| require 'rubygems' | |
| require 'vortex_client' | |
| include Vortex | |
| vortex = Vortex::Connection.new("https://vortex-dav.uio.no/") | |
| vortex.cd('/brukere/thomasfl/events/') | |
| event = HtmlEvent.new(:title => "My Sample Event 1", | |
| :introduction => "Sample event introduction", | |
| :body => "<p>Hello world</p>", | |
| :startDate => "19.06.2010 17:56", |
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
| require 'rubygems' | |
| require 'vortex_client' | |
| include Vortex | |
| vortex = Vortex::Connection.new("https://vortex-dav.uio.no/", ENV['DAVUSER'], ENV['DAVPASS']) | |
| vortex.cd('/brukere/thomasfl/events/') | |
| collection = ArticleListingCollection.new(:url => 'my-collection', :title => 'My articles') | |
| path = vortex.create(collection) | |
| puts "Created folder: " + path |
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
| # -*- coding: utf-8 -*- | |
| # Generer vortex sitemap. Eksempel: | |
| # | |
| # $generate_vortex_sitemap.rb http://www.iss.uio.no/ | |
| # | |
| # Author: Thomas Flemming, [email protected] 2010 | |
| # | |
| require "net/https" | |
| require "uri" |
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
| puts :hi |
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
| def Math.pow(x,y) | |
| x**y | |
| end | |
| ## Converts from utm to lat_lng. Default zone is the one in which | |
| ## Oslo and Akershus falls. | |
| def utm_to_lat_lng(easting, northing, zone=32, northernHemisphere=true) | |
| if not northernHemisphere then | |
| northing = 10000000 - northing | |
| end |
OlderNewer