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
./configure --with-gdal=/usr/bin/gdal-config \ | |
--with-ogr=/usr/bin/gdal-config \ | |
--with-wfsclient \ | |
--with-wmsclient \ | |
--with-curl-config=/usr/bin/curl-config \ | |
--with-proj=/usr/ \ | |
--with-tiff \ | |
--with-jpeg \ | |
--with-freetype=/usr/ \ | |
--with-threads \ |
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
class FieldsObject | |
include Mongoid::Document | |
include Mongoid::Timestamps | |
@@field_types = [ | |
:array, | |
:big_decimal, | |
:boolean, | |
:date, | |
:date_time, | |
:float, |
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
class LayersObject | |
include Mongoid::Document | |
include Mongoid::Timestamps | |
field :geom_id, type: Integer | |
field :geom_ids, type: Array | |
embedded_in :layer | |
embeds_many :fields_objects |
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
class Layer | |
include Mongoid::Document | |
include Mongoid::Timestamps | |
#TODO create geotype filter | |
field :geotypes, type: Array | |
field :structure_json, type: String | |
field :is_spatial, type: Boolean, default: true | |
field :has_many_geoms, type: Boolean, default: false |
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 'spec_helper' | |
def valid_layer_attributes | |
{ structure: { | |
f1: :array, | |
f2: :big_decimal, | |
f3: :boolean, | |
f4: :date, | |
f5: :date_time, | |
f6: :float, |
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
Sample = function( el ) | |
{ | |
//mixins | |
var me = Container( el ) | |
//params | |
//,v1 = ... | |
//... | |
//dom elements |
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
module A | |
def a_xx | |
end | |
end | |
module B | |
def b_xx | |
end | |
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
module A | |
def a_xx | |
end | |
end | |
module B | |
def b_xx | |
end | |
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
#encoding: utf-8 | |
#Программа написана для ruby 1.9.2 | |
def get_next seq | |
puts next_seq = seq.split('').inject( [] ){ |s,w| | |
if s[-1].nil? || s[-1][1] != w | |
s << [1,w] | |
else | |
s[-1][0]+=1 | |
end | |
s |
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
Container = function( el ){ | |
var | |
me = { | |
el:el, | |
win: $( window ) | |
} | |
return me | |
} | |
Panel = function( el, params ){ |