###MozFest - London ####LINK: https://2015.mozillafestival.org/
####GITHUB: https://github.com/CartoDB/cartodb-management/issues/4085
####ATTENDEE:
- Aurelia Moser
- Stuart Lynn
<!doctype html> | |
<html> | |
<head> | |
<title>New Horizon's journy to Pluto</title> | |
<link href='http://fonts.googleapis.com/css?family=Alike' rel='stylesheet' type='text/css'> | |
<style> | |
html, body, #map { | |
height: 100%; | |
padding: 0; | |
margin: 0; |
require 'pry' | |
File.open("result.csv", "w") do |results| | |
results.puts("body,time,lng,lat,x,y,dist") | |
Dir.glob("*.txt").each do |file| | |
body = file.split("_").first.capitalize | |
data = IO.read(file).split("$$SOE").last.split("$$EOE").first.split("\r")[1..-1].collect{|a| a.split(" ")} | |
data.each do |row| | |
puts row.join(",") | |
next if row.empty? |
body,time,lng,lat,dist | |
Earth,2006-Jan-01 00:00,100.3380,-0.0006,0.983353762101 | |
Earth,2006-Jan-02 00:00,101.3576,-0.0006,0.983341378733 | |
Earth,2006-Jan-03 00:00,102.3772,-0.0006,0.983332671746 | |
Earth,2006-Jan-04 00:00,103.3967,-0.0007,0.983327853855 | |
Earth,2006-Jan-05 00:00,104.4161,-0.0007,0.983327208713 | |
Earth,2006-Jan-06 00:00,105.4354,-0.0007,0.983331061052 | |
Earth,2006-Jan-07 00:00,106.4546,-0.0008,0.983339747474 | |
Earth,2006-Jan-08 00:00,107.4737,-0.0008,0.983353592605 | |
Earth,2006-Jan-09 00:00,108.4926,-0.0008,0.983372892106 |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title></title> | |
<!-- Bootstrap --> | |
<link href="//netdna.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css" rel="stylesheet"> |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title></title> | |
<!-- Bootstrap --> | |
<link href="//netdna.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css" rel="stylesheet"> |
###MozFest - London ####LINK: https://2015.mozillafestival.org/
####GITHUB: https://github.com/CartoDB/cartodb-management/issues/4085
####ATTENDEE:
CREATE FUNCTION ra_dec_to_galactic(r float, d float) | |
RETURNS geometry as $$ | |
DECLARE | |
ra float; | |
dec float; | |
ig float; | |
an float; | |
l0 float; | |
sinb float; | |
b float; |
###Girl Develop It
August 19th, 2015
Find this document here:
var geojson = { | |
"type": "FeatureCollection", | |
"features": [ | |
{ | |
"type": "Feature", | |
"properties": {}, | |
"geometry": { | |
"type": "Polygon", | |
"coordinates": [ | |
[ |