Skip to content

Instantly share code, notes, and snippets.

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jsanch
jsanch / index.html
Created October 21, 2019 14:00
Moving SVG
<!DOCTYPE html>
<html>
<head>
<title>Single layer | CARTO</title>
<meta name="viewport" content="initial-scale=1.0">
<meta charset="utf-8">
<!-- Include Leaflet -->
<script src="https://unpkg.com/leaflet@1.5.1/dist/leaflet.js"></script>
<link href="https://unpkg.com/leaflet@1.5.1/dist/leaflet.css" rel="stylesheet">
<link href="https://carto.com/developers/carto-js/examples/maps/public/style.css" rel="stylesheet">
@jsanch
jsanch / index.html
Last active April 24, 2019 22:58
Cadastro Mineiro - SATEC | CARTO
<!DOCTYPE html>
<html>
<head>
<title> Cadastro Mineiro - SATEC | CARTO</title>
<meta name="viewport" content="initial-scale=1.0">
<meta charset="utf-8">
<link href="https://fonts.googleapis.com/css?family=Montserrat:400,600,700|Open+Sans:300,400,600" rel="stylesheet">
<!-- Include Leaflet -->
<script src="https://unpkg.com/leaflet@1.3.1/dist/leaflet.js"></script>
{
"version": "2",
"header": {
"title": "M/WBE Spending Across the years",
"description": "",
"navigation": [
{
"label": "Download",
"url": "https://comptroller-nyc.demo.socrata.com/api/views/addi-hm63/rows.csv?accessType=DOWNLOAD"
}
@jsanch
jsanch / mwbe-spending-wide.json
Last active November 7, 2016 05:21 — forked from timwis/parking-violations.v2.json
MWBE Spending VizWit configuration
{
"version": "2",
"header": {
"title": "M/WBE Spending",
"description": "",
"navigation": [
{
"label": "Download",
"url": "https://comptroller-nyc.demo.socrata.com/api/views/addi-hm63/rows.csv?accessType=DOWNLOAD"
}
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="https://code.jquery.com/jquery-2.1.0.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="https://rawgit.com/wenzhixin/bootstrap-table/master/src/bootstrap-table.css">
<script type="text/javascript" src="https://rawgit.com/wenzhixin/bootstrap-table/master/src/bootstrap-table.js"></script>
<!-- Export -->
<iframe id='frame' width='500' height='600' src='https://screendoor.dobt.co/embedded/projects/Wnc8e99OCp86t21D/responses/new' frameborder='0' marginheight='0' marginwidth='0'></iframe>
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="https://code.jquery.com/jquery-2.1.0.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="https://rawgit.com/wenzhixin/bootstrap-table/master/src/bootstrap-table.css">
<script type="text/javascript" src="https://rawgit.com/wenzhixin/bootstrap-table/master/src/bootstrap-table.js"></script>
<title>Bootstrap Table</title>
# Getting IDB MOOC Data into Socrata
# Source: http://52.202.188.134:8888
import requests as re
import json
import numpy as np
import pandas as pd
def build_url(course_id,data_segment,pageSize=300000):
base_url = "http://52.202.188.134/v1/"
country latitude longitude
AD 42.5000 1.5000
AE 24.0000 54.0000
AF 33.0000 65.0000
AG 17.0500 -61.8000
AI 18.2500 -63.1667
AL 41.0000 20.0000
AM 40.0000 45.0000
AN 12.2500 -68.7500
AO -12.5000 18.5000