Skip to content

Instantly share code, notes, and snippets.

View slutske22's full-sized avatar
🎯
Focusing

Seth Lutske slutske22

🎯
Focusing
View GitHub Profile
@simenbrekken
simenbrekken / README.md
Last active November 9, 2023 16:56
Hide fetch/XHR in Cypress command log

This novel workaround simply hides any command log entries that originate from fetch/XHR requests.

While I've updated this receipe for Cypress 10 and converted it to TypeScript you should be able to use it in a JavaScript project by ignoring the cypress.d.ts file and placing the snippet from e2e.ts in e2e.js instead.

@ryanbaumann
ryanbaumann / install-tippecanoe-on-windows.md
Last active April 11, 2024 13:20
Install Tippecanoe to make Mapbox Vector Tiles on a Windows 10 OS machine

Problem

Tippecanoe is an open source command line tool for creating Mapbox Vector Tiles. It runs only on unix environments like MacOS and Linux - so if you need to make maps with large vector data from geojson, shapefiles, or similar - you're hosed if you're on Windows.

Goals

  1. Create vector tiles of massive vector data on a Windows 10 machine

Requirements

@amaurs
amaurs / mandelbrot.py
Last active August 13, 2020 19:33
Flask service to create mandelbrot set tiling.
from flask import Flask, send_file
import math
from PIL import Image
import numpy as np
import os.path
from io import BytesIO
from numba import jit
app = Flask(__name__)
@Joris-van-der-Wel
Joris-van-der-Wel / v8-profiler.js
Last active October 27, 2021 04:03
node.js profiling: generate .cpuprofile which can be opened in chrome dev tools (F12)
'use strict';
var profiler = require('v8-profiler');
profiler.startProfiling();
// ...
var cpuProfile = profiler.stopProfiling();
require('fs').writeFileSync(__dirname + '/foo.cpuprofile', JSON.stringify(cpuProfile));