DB.create_table :test_ts2 do
primary_key :id
timestamp :xtimestamp1
timestamp :xtimestamp2
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
#!/bin/bash | |
TMPDIR="$(mktemp -d)" | |
function cleanup { | |
rm -rf "${TMPDIR}" | |
} | |
trap cleanup EXIT |
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
curl -v https://agendacultural.buenosaires.gob.ar/webservice/response/client.php?Method=GetEventosListFiltered&IdEvento=&IdEstadoEvento=&Titulo=&Resumen=&Descripcion=&FechaInicio=2012-10-31&FechaFin=2012-11-01&FechaPublicacionDesde=&FechaPublicacionHasta=&FechaProximoEventoDesde=&FechaProximoEventoHasta=&DestacadoHome=&MarcaProximosEventos=&Imagen=&AlbumFlickr=&Facebook=&Youtube=&Twitter=&IdEventoPadre=&IdEventosRelacionados=&Hora=&Minutos=&IdTipoEvento=&DestacadoBoxPrimario=&Latitud=&Longitud=&OrdenarPor=&Orden=&Limit=&Offset= |
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
[ | |
[ | |
"1384", | |
"1676", | |
"1139", | |
"1287", | |
"1439", | |
"2131" | |
], | |
[ |
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
1: 172.16.1.1 2.832ms | |
1: 172.16.1.1 0.292ms | |
2: 184.173.144.41-static.reverse.softlayer.com 1.593ms | |
3: ae13.dar01.sr01.wdc01.networklayer.com 0.764ms | |
4: ae8.bbr02.eq01.wdc02.networklayer.com 1.828ms | |
5: be-100-pe01.ashburn.va.ibone.comcast.net 6.128ms | |
6: pos-3-10-0-0-cr01.ashburn.va.ibone.comcast.net 3.368ms | |
7: he-0-12-0-1-pe07.ashburn.va.ibone.comcast.net 2.210ms | |
8: n-a.GW12.IAD8.ALTER.NET 1.688ms asymm 9 | |
9: 0.xe-8-0-1.GW1.MIA19.ALTER.NET 27.694ms asymm 12 |
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 { | |
apt: ; | |
'percona': | |
server => true, | |
percona_version => "5.6", | |
} | |
Class['apt'] -> Class['percona'] |
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
Usando este dataset http://data.buenosaires.gob.ar/dataset/barrios/resource/0bb5510f-bbbf-471c-a758-849f3656fb70 (barrios.shp) | |
y con esta linea de ogr2ogr: | |
`ogr2ogr -t_srs EPSG:4326 -f GeoJSON barrios.json barrios.shp` | |
me genera un barrios.json | |
```json |
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 'rack/urlmap' | |
require 'rack/mock' | |
describe Rack::URLMap do | |
it "dispatches domain-specific routes correctly" do | |
map = Rack::URLMap.new("http://foo.org/" => lambda { |env| | |
[200, | |
{ "Content-Type" => "text/plain", | |
"X-Position" => "foo.org", | |
"X-Host" => env["HTTP_HOST"] || env["SERVER_NAME"], |
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
mysql> select json_extract('{"phones":["555-5555"],"emails":["info@x.com.ar"]}',"$.emails[0]"); | |
+----------------------------------------------------------------------------------+ | |
| json_extract('{"phones":["555-5555"],"emails":["info@x.com.ar"]}',"$.emails[0]") | | |
+----------------------------------------------------------------------------------+ | |
| NULL | | |
+----------------------------------------------------------------------------------+ |
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
1.9.3p194 :008 > pp JSON.parse(HTTPI.post( "http://safertaxi.com.ar/proxy.php?route=/backend/cars/near_me", "data[location][longitude]=-58.493&data[location][latitude]=-34.62062").body) | |
[{"Car"=> | |
{"latitude"=>"-34.600246650000000", | |
"longitude"=>"-58.465137900000000", | |
"plate"=>"LLS072", | |
"driver_id"=>39973, | |
"id"=>1018, | |
"Driver"=> | |
{"is_available"=>false, | |
"id"=>39973, |
NewerOlder