Skip to content

Instantly share code, notes, and snippets.

@nmsmith22389
nmsmith22389 / Iphone 16 device.md
Created April 26, 2025 01:16
Iphone 16 pro max custom device

Thank you for the update! Now that the iPhone 16 Pro Max is officially released, here are the accurate values to input for each field when creating a custom device profile in Chrome DevTools:

📱 Device • Name: iPhone 16 Pro Max • Width: 440 • Height: 956 • Device pixel ratio: 3

These values correspond to the device’s viewport size and pixel ratio. 
!pip install numpy matplotlib pandas
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
# Simulation parameters
T = 100 # number of years
n_simulations = 1000
extinction_threshold = 10

Dishwasher Food Disposal vs. Manual Filter

Dishwashers handle food debris in one of two primary ways: either by using a built-in food disposal (also called a grinder or macerator) or a filter system. Here’s a detailed comparison:


1. Built-in Food Disposal (Grinder/Macerator)

A small grinder breaks down food particles during each wash cycle, similar to a garbage disposal.

Pros:

@nmsmith22389
nmsmith22389 / PTK_9497_Servo_Mockup.step
Last active July 14, 2024 09:07
Generate PTK 9497 Servo Model
ISO-10303-21;
HEADER;
FILE_DESCRIPTION(('Open CASCADE Model'),'2;1');
FILE_NAME('Open CASCADE Shape Model','2024-07-14T09:05:32',('Author'),(
'Open CASCADE'),'Open CASCADE STEP processor 7.7','Open CASCADE 7.7'
,'Unknown');
FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 1 1 1 1 }'));
ENDSEC;
DATA;
#1 = APPLICATION_PROTOCOL_DEFINITION('international standard',
@nmsmith22389
nmsmith22389 / homing_override.cfg
Last active April 7, 2024 00:56
Klippain homing override macro
# Homing Override for dockable probe
[homing_override]
axes: xyz
gcode:
{% set verbose = printer["gcode_macro _USER_VARIABLES"].verbose %}
{% set kinematics = printer["configfile"].config["printer"]["kinematics"] %}
{% set probe_type_enabled = printer["gcode_macro _USER_VARIABLES"].probe_type_enabled %}
{% set homing_zhop = printer["gcode_macro _USER_VARIABLES"].homing_zhop|float|abs %}
{% set homing_travel_speed = printer["gcode_macro _USER_VARIABLES"].homing_travel_speed * 60 %}
{% set homing_travel_accel = printer["gcode_macro _USER_VARIABLES"].homing_travel_accel %}
#include "GCodeWriter.hpp"
#include "CustomGCode.hpp"
#include <algorithm>
#include <iomanip>
#include <iostream>
#include <map>
#include <assert.h>
#include <GCode/GCodeProcessor.hpp>
#ifdef __APPLE__
{
"env": {
"es2024": true,
"es6": true,
"es2021": true,
"node": true
},
"globals": {},
"parser": "/Users/neil/Code/JXA/generator-jxa/node_modules/@typescript-eslint/parser/dist/index.js",
"parserOptions": {
@nmsmith22389
nmsmith22389 / schema.json
Last active September 12, 2021 02:51
Pico-Go JSON Schema
{
"$id": "pico-go_settings",
"$schema": "http://json-schema.org/draft-07/schema",
"description": "Settings for the Pico-Go VSCode extensions.",
"required": [],
"title": "Pico-Go Settings",
"type": "object",
"properties": {
"auto_connect": {
"$id": "#/properties/auto_connect",
@nmsmith22389
nmsmith22389 / ExampleFormRequest.php
Last active April 1, 2019 22:30
Laravel - Form Request Example
<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
/**
* Laravel Transformer
*
* Package at:
* https://github.com/konsulting/laravel-transformer
@nmsmith22389
nmsmith22389 / BoardingPass_class_properties.md
Created November 8, 2018 00:44
BoardingPass Class Properties

Unique Mandatory

Fields

Format Code

Raw

M

Interpretation

IATA BCBP Format M