- a short description of your company and what you do/offer
- a detailed description of the students tasks/project
- requirements (knowledge of, e. g. Spatial DB course, programming skills)
- task/project plans (what will they do?)
- what are the students going to work with/learn:
- programming languages
- infrastructure (versioning system, build system)
This file contains 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 'formula' | |
class Geos <Formula | |
url 'http://download.osgeo.org/geos/geos-3.2.2.tar.bz2' | |
homepage 'http://trac.osgeo.org/geos/' | |
md5 'c5d264acac22fe7720f85dadc1fc17c6' | |
def options | |
[ | |
['--enable-python', "Enable build of python module."], |
This file contains 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 'formula' | |
class LibjpegTurbo <Formula | |
url 'http://downloads.sourceforge.net/sourceforge/libjpeg-turbo/libjpeg-turbo-1.0.1.tar.gz' | |
homepage 'http://libjpeg-turbo.virtualgl.org/' | |
md5 'e94b72694c9afd716458367dfe84ce1e' | |
if Hardware.is_64_bit? | |
depends_on 'nasm' | |
end |
This file contains 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 postgis-1.5 path. | |
$ POSTGIS_SQL_PATH=`pg_config --sharedir`/contrib/postgis-1.5 | |
# Creating the template spatial database | |
$ createdb -E UTF8 -T template0 template_postgis | |
# and add PLPGSQL language support. | |
$ createlang -d template_postgis plpgsql | |
# Loading the PostGIS SQL routines. | |
$ psql -d template_postgis -f $POSTGIS_SQL_PATH/postgis.sql |
This file contains 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
CREATE FUNCTION public.hs_2json(hs hstore) RETURNS text AS $$ | |
DECLARE | |
rv text; | |
r record; | |
BEGIN | |
rv:=''; | |
for r in (select key, val from each(hs) as h(key, val)) loop | |
if rv<>'' then | |
rv:=rv||','; | |
end if; |
This file contains 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
create or replace function hstore_to_json(h hstore) returns text language sql | |
as $f$ | |
select '{' || array_to_string(array_agg( | |
'"' || regexp_replace(key,E'[\\"]',E'\\\&','g') || '":' || | |
case | |
when value is null then 'null' | |
when value ~ '^true|false|(-?(0|[1-9]\d*)(\.\d+)?([eE][+-]?\d+)?)$' then value | |
else '"' || regexp_replace(value,E'[\\"]',E'\\\&','g') || '"' | |
end |
This file contains 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
create or replace function hs_2json(hs hstore) returns text language sql | |
as $f$ | |
select '{' || array_to_string(array_agg( | |
'"' || regexp_replace(key,E'[\\"]',E'\\\&','g') || '":' || | |
case | |
when value is null then 'null' | |
when value ~ '^(true|false|(-?(0|[1-9]\d*)(\.\d+)?([eE][+-]?\d+)?))$' then value | |
else '"' || regexp_replace(value,E'[\\"]',E'\\\&','g') || '"' | |
end |
This file contains 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
======================================================================== | |
BYTE UNIX Benchmarks (Version 5.1.3) | |
System: europe.spacialdb.com: GNU/Linux | |
OS: GNU/Linux -- 3.0.0-12-server -- #20-Ubuntu SMP Fri Oct 7 16:36:30 UTC 2011 | |
Machine: x86_64 (x86_64) | |
Language: en_US.utf8 (charmap="UTF-8", collate="UTF-8") | |
CPU 0: Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz (5346.4 bogomips) | |
Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET, Intel virtualization | |
CPU 1: Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz (5346.4 bogomips) |
This file contains 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
name: "autocolorize" | |
input: "data" | |
input_dim: 1 | |
input_dim: 1 | |
input_dim: 514 | |
input_dim: 514 | |
layer { | |
name: "data" | |
type: "Input" | |
top: "data" |
This file contains 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
import numpy as np | |
import gym | |
from gym.spaces import Discrete, Box | |
from gym.wrappers import Monitor | |
from keras.models import Sequential | |
from keras.layers import Dense, Activation, Flatten | |
# ================================================================ | |
# Policies |