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 / README.md
Created October 21, 2024 19:20
Vite Observable Module Bug

Vite Observable Module Bug

@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 / .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 / index.html
Last active March 11, 2022 22:22 — forked from syntagmatic/index.html
Nutrient Parallel Coordinates
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<title>Nutrient Database Explorer</title>
<link rel="stylesheet" type="text/css" href="parallel.css" />
</head>
<body>
<div id="header">
<h1>Nutrient Explorer</h1>
@john-guerra
john-guerra / README.md
Last active August 4, 2024 13:50
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
// https://github.com/john-guerra/Navio#readme v0.0.67 Copyright 2021 John Alexis Guerra Gómez
import * as d3 from 'd3';
import { map, format, interpolateBlues, interpolatePurples, interpolateBrBG, interpolateOranges, interpolateGreys, schemeCategory10, event, selectAll, select, path, scaleBand, scaleQuantize, range, brushY, mouse, drag, extent, scaleOrdinal, scaleSequential, set, min } from 'd3';
import { interpolateBlues as interpolateBlues$1, interpolatePurples as interpolatePurples$1, interpolateBrBG as interpolateBrBG$1, interpolateOranges as interpolateOranges$1, interpolateGreys as interpolateGreys$1 } from 'd3-scale-chromatic';
import Popper from 'popper.js';
function FilterByRange(opts) {
const first = opts.first;
const last = opts.last;
const level = opts.level;
@john-guerra
john-guerra / README.md
Last active March 26, 2021 18:39
Agenda d3 meetup en español
placeholder for uploading gif

Uploading an image

dia,edad_promedio
D,39.15674796747976
S,39.85537818320043
V,39.493663459281784
J,40.1630611316832
I,40.03340184994883
M,40.4548263130134
L,48.67609632979277