Skip to content

Instantly share code, notes, and snippets.

View pnavarrc's full-sized avatar

Pablo Navarro pnavarrc

  • Act Now Coalition
  • Vancouver, Canada
  • 06:53 (UTC -07:00)
View GitHub Profile
@pnavarrc
pnavarrc / index.html
Last active February 27, 2024 04:38
Simple SVG Path Demo
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Simple SVG Path</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.6/d3.min.js"></script>
@pnavarrc
pnavarrc / geocode.py
Last active September 20, 2023 12:43
Using Python requests and the Google Maps Geocoding API
# Using Python requests and the Google Maps Geocoding API.
#
# References:
#
# * http://docs.python-requests.org/en/latest/
# * https://developers.google.com/maps/
import requests
GOOGLE_MAPS_API_URL = 'http://maps.googleapis.com/maps/api/geocode/json'
@pnavarrc
pnavarrc / README.md
Last active July 1, 2021 09:28
GitHub GraphQL API
@pnavarrc
pnavarrc / README.md
Last active July 1, 2021 09:28
Jade Preview
@pnavarrc
pnavarrc / Makefile
Last active January 9, 2021 02:39
Celestial Sphere
hygfull.csv:
curl -LO 'https://github.com/astronexus/HYG-Database/raw/master/hygfull.csv'
hyg.json: hygfull.csv
python parse-catalog.py

Sep 22, 2020

From https://txdshs.maps.arcgis.com/apps/opsdashboard/index.html#/ed483ecd702b4298ab01e8b9cafc8b83

2,078 older case recently reported by labs were included in the statewide total but excluded from statewide and Bexar County new confirmed cases (103).

3 older cases recently reported by labs were included in the statewide total but excluded from statewide and Collin County new confirmed cases (42)

306 older case recently reported by labs were included in the statewide total but excluded from statewide and Dallas County new confirmed cases (465). >

const createMergeExpression = (a, b) =>
t.objectExpression([
t.spreadElement(a),
t.spreadElement(b)
]);
{
type: "ObjectExpression",
properties: [
{
type: "SpreadProperty",
argument: {
type: "Identifier",
name: "a"
}
},
const isUselessRamdaMerge = node =>
t.isCallExpression(node) &&
isRamdaMerge(node.callee) &&
node.arguments.length === 2;
const isRamdaMerge = node =>
t.isMemberExpression(node) &&
t.isIdentifier(node.object, { name: "R" }) &&
t.isIdentifier(node.property, { name: "merge" });