Skip to content

Instantly share code, notes, and snippets.

😀

Víctor Velarde VictorVelarde

😀
Block or report user

Report or block VictorVelarde

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
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">
@VictorVelarde
VictorVelarde / basic-carto.sql
Last active Apr 9, 2019
[CARTO - Basic admin SQL] sql, carto
View basic-carto.sql
-- Connection to local vagrant env
-- localhost:9432 (NAT port 5432 --> external 9432)
-- database --> postgres
-- user --> postgres
-- Get databases in instance
SELECT datname FROM pg_database WHERE datistemplate = false;
@VictorVelarde
VictorVelarde / .tmux.conf
Created Dec 31, 2018
[Tmux configuration]
View .tmux.conf
<2.1
```
set -g mode-mouse on
set -g mouse-resize-pane on
set -g mouse-select-pane on
set -g mouse-select-window on
```
On 2.1 this config got deprecated and the new option to allow all mouse support is:
You can’t perform that action at this time.