Skip to content

Instantly share code, notes, and snippets.

View rbejar's full-sized avatar

Rubén Béjar rbejar

View GitHub Profile
@rbejar
rbejar / TicTacToe.scala
Last active November 30, 2017 12:22
A functional implementation of Tic-Tac-Toe in Scala. Human vs. computer, computer moves are legal, but purely random.
/*
* Code contributed to Rosetta Code: <http://rosettacode.org/wiki/Tic-tac-toe#Scala>
*
* Creative commons license "CC0 1.0 Universal (CC0 1.0)"
* <http://creativecommons.org/publicdomain/zero/1.0/>
* To the extent possible under law, Rubén Béjar <http://www.rubenbejar.com>
* has waived all copyright and related or neighboring rights to this
* source file. This work is published from: Spain.
*
* Computers vs. human. Human starts.
@rbejar
rbejar / IDEE_Web_Services_Example.py
Created September 29, 2011 15:27
A 'quick and dirty' experiment to show how to create a service chain based on Spain SDI (http://www.idee.es) OGC web services.
"""
A 'quick and dirty' experiment to show how to create a service chain
based on Spain SDI (http://www.idee.es) OGC web services.
Most of the code is boilerplate code: an OGC WPS client library
could be useful.
Many things should be parameterized etc. The WPS used have more
operations, and the used operations have more options: this code
is just an example.