Skip to content

Instantly share code, notes, and snippets.

View davo's full-sized avatar
🦮
Golden

Davo Galavotti davo

🦮
Golden
View GitHub Profile
@davo
davo / index.html
Last active January 9, 2025 23:17 — forked from ilyabo/index.html
D3 Dorling cartogram with rectangular states
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<title>Dorling Cartogram</title>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.1.10/d3.js"></script>
<style>
#chart {
width: 960px;
height: 470px;
@davo
davo / analyze-image.py
Created December 9, 2024 21:21 — forked from vicradon/analyze-image.py
Image analysis lab
from dotenv import load_dotenv
import os
from array import array
from PIL import Image, ImageDraw
import sys
import time
from matplotlib import pyplot as plt
import numpy as np
# import namespaces
@davo
davo / Border.tsx
Created September 22, 2024 13:09 — forked from seantai/Border.tsx
border for View
import { Plane } from '@react-three/drei';
import { useMemo } from 'react';
export const Border = () => {
const uniforms = useMemo(
() => ({
u_color: {
value: [0.129, 0.129, 0.129] //same color as my background
},
u_outline_color: {
@davo
davo / doyle.js
Last active December 27, 2023 01:21 — forked from robinhouston/index.html
Stumbling blocks
/* Numerics for Doyle spirals.
* Robin Houston, 2013
*/
(function() {
var pow = Math.pow,
sin = Math.sin,
cos = Math.cos,
pi = Math.PI;
@davo
davo / doyle.js
Last active December 27, 2023 01:11 — forked from robinhouston/index.html
Spiral triangles
/* Numerics for Doyle spirals.
* Robin Houston, 2013
*/
(function() {
var pow = Math.pow,
sin = Math.sin,
cos = Math.cos,
pi = Math.PI;
@davo
davo / doyle.js
Last active December 27, 2023 01:18 — forked from robinhouston/doyle.js
Doyle spiral circle packing
/* Numerics for Doyle spirals.
* Robin Houston, 2013
*/
(function() {
var pow = Math.pow,
sin = Math.sin,
cos = Math.cos,
pi = Math.PI;
@davo
davo / sync.js
Created January 21, 2023 05:26 — forked from seanriceaz/sync.js
Sync figma layer images up to a firebase bucket
// NOTE: This expects a few things to be stored in a .env file:
// FBKEY=xxxxxxxxx
// FIGMAPERSONALTOKEN=xxxxxxxxxxx
// GOOGLE_APPLICATION_CREDENTIALS=/users/your.name/googlekeys/firebase-storage.json
const axios = require('axios');
const dotenv = require('dotenv');
const Storage = require('@google-cloud/storage');
@davo
davo / .block
Last active May 1, 2022 00:23 — forked from d3noob/.block
Filtering in v7
license: mit
global.THREE = require("three");
const canvasSketch = require('canvas-sketch');
const Random = require('canvas-sketch-util/random');
const gradientHeight = 512;
const settings = {
dimensions: [ 2048, gradientHeight * 2 ]
};
@davo
davo / cloudTrailEventNames.list
Created May 12, 2020 15:28 — forked from pkazi/cloudTrailEventNames.list
List of values for parameter EventName in AWS Cloudtrail events
AbortDocumentVersionUpload
AbortEnvironmentUpdate
AbortMultipartUpload
AbortVaultLock
AcceptAccountMapping
AcceptCertificateTransfer
AcceptDelegate
AcceptDirectConnectGatewayAssociationProposal
AcceptFxPaymentCurrencyTermsAndConditions
AcceptHandshake