Skip to content

Instantly share code, notes, and snippets.

View john-guerra's full-sized avatar

John Alexis Guerra Gómez john-guerra

View GitHub Profile
@john-guerra
john-guerra / index.html
Created May 2, 2024 17:38
Reactive Widget Demo
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
</head>
<body>
<h1>Reactive and Reusable Components Demo</h1>
@john-guerra
john-guerra / README.md
Last active January 28, 2024 19:19 — forked from kristw/index.html
GeoJson map of Colombia

Geo Json map of Colombia

Based on the Map of Thailand by Master Krist Wongsuphasawat, a simple map of Colombia using GeoJSON and D3.js

As in Krist example:

  • Each province is color-coded by the length of its name in English.
  • Hover each province to see text effects.
  • New font is chosen randomly every time you change the province.
@john-guerra
john-guerra / README.md
Last active November 3, 2023 11:37
Mongo Airbnb Sample Database

The mongo airbnb sample database

Import it into your local mongo with:

mongoimport -h localhost:27017 --db sample_airbnb --collection listingsAndReviews --file listingsAndReviews.json
@john-guerra
john-guerra / .block
Last active October 18, 2023 22:51
GeoJson map of Colombia Municipios
license: mit
@john-guerra
john-guerra / .block
Last active September 5, 2023 06:24
Choropleth map of Colombian Cities
license: mit
@john-guerra
john-guerra / .block
Last active July 12, 2023 06:58
Javascript Network Clustering Library
license: mit
@john-guerra
john-guerra / .block
Last active May 14, 2023 07:15
vega-lite JavaScript API browser example
license: mit
@john-guerra
john-guerra / .eslintrc.js
Last active April 7, 2023 16:17
MongoClient Server Code
module.exports = {
env: {
browser: true,
es6: true,
node: true,
},
extends: ["eslint:recommended", "prettier"],
parserOptions: {
ecmaVersion: "latest",
sourceType: "module",
@john-guerra
john-guerra / .block
Last active March 16, 2023 21:11
vega-lite JavaScript API browser example with vegaEmbed
license: mit
@john-guerra
john-guerra / .block
Last active October 11, 2022 14:48
Vega-lite: load data dynamically on run-time with vegaEmbed
license: mit