Skip to content

Instantly share code, notes, and snippets.

Avatar
🚀

Víctor Velarde VictorVelarde

🚀
View GitHub Profile
View foo.txt
‎‎​This is just a test for GistFS extension
View new-node-project.sh
#!/bin/bash
# Simple new-node-project
project_name=$1
echo "new-node-project $project_name"
mkdir -p $project_name
cd $project_name
git init
@VictorVelarde
VictorVelarde / index.html
Last active Jul 1, 2019
[CARTO VL - SQL API & deck.gl] deck-gl-with-carto-data.html
View index.html
<html>
<head>
<title>CARTO VL & deck.gl</title>
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' />
<!-- <script src="https://unpkg.com/deck.gl@7.2.0-alpha.1/dist.min.js"></script> -->
<script src="https://unpkg.com/deck.gl@7.0.11/dist.min.js"></script>
<!-- <script src="https://unpkg.com/deck.gl@7.1.7/dist.min.js"></script> -->
@VictorVelarde
VictorVelarde / index.html
Created Jun 13, 2019
[CARTO VL - Cluster-mix]
View index.html
<!DOCTYPE html>
<html>
<head>
<title>Clusters PoC | CARTO & MGL</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta charset="UTF-8">
<script src="https://libs.cartocdn.com/carto-vl/v1.3/carto-vl.min.js"></script>
@VictorVelarde
VictorVelarde / index.html
Created Jun 3, 2019
[CARTO VL - Symbol with color variations] cartovl
View index.html
<!DOCTYPE html>
<html>
<head>
<title>Add layer | CARTO</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta charset="UTF-8">
<script src="http://libs.cartocdn.com/carto-vl/v1.3/carto-vl.js"></script>
<script src="https://api.tiles.mapbox.com/mapbox-gl-js/v1.0.0/mapbox-gl.js"></script>
<link href="https://api.tiles.mapbox.com/mapbox-gl-js/v1.0.0/mapbox-gl.css" rel="stylesheet" />
@VictorVelarde
VictorVelarde / index.html
Last active May 27, 2019
[CARTO VL - Global Histogram] carto-vl
View index.html
<!DOCTYPE html>
<html>
<head>
<title>Global histogram | CARTO</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta charset="UTF-8">
<script src="https://libs.cartocdn.com/carto-vl/v1.2/carto-vl.min.js"></script>
<script src="https://api.tiles.mapbox.com/mapbox-gl-js/v0.54.0/mapbox-gl.js"></script>
<link href="https://api.tiles.mapbox.com/mapbox-gl-js/v0.54.0/mapbox-gl.css" rel="stylesheet" />
@VictorVelarde
VictorVelarde / index.html
Created May 2, 2019
[CARTO VL - Cluster count interactivity]
View index.html
<!DOCTYPE html>
<html>
<head>
<title>Label clusters by count | CARTO VL</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="https://libs.cartocdn.com/carto-vl/v1.2.4/carto-vl.min.js"></script>
<script src="https://api.tiles.mapbox.com/mapbox-gl-js/v0.52.0/mapbox-gl.js"></script>
<link href="https://api.tiles.mapbox.com/mapbox-gl-js/v0.52.0/mapbox-gl.css" rel="stylesheet" />
<link rel="stylesheet" type="text/css" href="https://carto.com/developers/carto-vl/examples/maps/style.css">
@VictorVelarde
VictorVelarde / index.html
Last active Apr 9, 2019
[CARTO VL - Mix with deck.gl]
View index.html
<html>
<head>
<title>CARTO VL & deck.gl</title>
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' />
<script src="https://unpkg.com/deck.gl@latest/deckgl.min.js"></script>
<script src="https://api.tiles.mapbox.com/mapbox-gl-js/v0.53.1/mapbox-gl.js"></script>
<link rel="stylesheet" type="text/css" href="https://api.tiles.mapbox.com/mapbox-gl-js/v0.53.1/mapbox-gl.css">
@VictorVelarde
VictorVelarde / index.html
Created Apr 8, 2019 — forked from ryanbaumann/index.html
Mapbox Custom Layers - Add a HexagonLayer to a map with deck.gl
View index.html
<html>
<head>
<title>Road AccidentsIncidents</title>
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' />
<script src="https://unpkg.com/deck.gl@latest/deckgl.min.js"></script>
<script src="https://api.tiles.mapbox.com/mapbox-gl-js/v0.53.1/mapbox-gl.js"></script>
<link rel="stylesheet" type="text/css" href="https://api.tiles.mapbox.com/mapbox-gl-js/v0.53.1/mapbox-gl.css">
<script src="https://d3js.org/d3.v5.min.js"></script>
<style type="text/css">