Skip to content

Instantly share code, notes, and snippets.

"use client";
import React, { useState } from "react";
import Link from "next/link";
import { useParams } from "next/navigation";
interface AuditLine {
id: number;
trade: string;
code: string;
@TunedbyM
TunedbyM / sentineldroid_sync_20261017_052516.zip.b64
Created October 16, 2026 21:26
SentinelDroid sync 20261017_052516
UEsDBBQAAAAIAPArXlvhCSRXAAEAAMMBAAAQAAAAYnVpbGQuZ3JhZGxlLmt0c5VQu04EMQzs9ytcQnGJaKGkgBrRn7yJsxfWG0dxwuqE+HeS4yFRUJAm8ozHY4+18Cz5wPRKDHOL7CFEJthPVAjO0sBhAvQenKQQl1awRkkgeXza0W3rZRVAZtA2H3KRF3JV7Sa+MamZMrcl9t63CfpDjqhXHGc1X4TB5ItEbzBnju5icA2jOENAVvpLt0rlmL7l/5H0tbMo/Za8T5O18EicqdxCknqKaRmnuROmhWBEcjcU9hKUWQp6JrNW7U6F0J/BU4iJFCTRfT9lfWoJHi5tUFFXMwwGFopsP4QIwx6Tlx2kQNNPSG0fcnRjisl6A6FzofWQWRx2gZQ1sOxm+gBQSwMEFAAAAAgAMBpdW/GltWPzCAAAhhYAAAcAAABncmFkbGV3vVhtc9u4Ef7OX7GB1ch2TdH2JbmrPUqrkxRbiS15JNlOpmoimIQkJBTJEKRlzfn+e3cBkiL90l7bTDWeMV4Wi8Xi2WcX3HrhpCp2bmTgiOAW1MKytqwtaIfROpbzRQKH+wevIVkICLEvA+4DT5NFGGM/a6mGXnImXREo4UEaeCLWS1oRd/FfNrMHVyJWMgzgsLEP2yTAsim2c4wa1mEKS76GIEwgVQJVSAUz6QsQd66IEpABuOEy8iUPXAErmSz0NpkSNAM+ZSrCm4SjNEf5CHuzshzwRBusf4skidSR46xWqwbX5jbCeO74RlQ5Z712tz/q2miyXnQZ+EIpiMX3VMZ42Js18AgtcvkN2unzlfbLPBY4l4Rk8SqWiQzme6DCWbLisUAtnlRJLG/SpOKu3D48dVkAHcYDYK0R9EYMfm2NeqM91HHdG58OLsdw3RoOW/1xrzuCwRDag36nN+4N+th7B63+J/jQ63f2QKCzcBtxF8VkPxopyZHCI6+NhKgYMAuNQSoSrpxJF88VzFM+FzAPb0Uc4HEgEvFSKrpOheZ5qMWXS5nwRI88OhRh

2916. Subarrays Distinct Element Sum of Squares II (Hard)

The Problem

You are given a 0-indexed integer array nums. The distinct count of a subarray nums[i..j] is the number of distinct values present in that subarray. Return the sum of the squares of the distinct counts of all subarrays of nums. Since the answer may be very large, return it modulo 10^9 + 7.


@choco-bot
choco-bot / FilesSnapshot.xml
Created October 16, 2026 21:25
gitmoap v0.0.1 - Passed - Package Tests Results
<?xml version="1.0" encoding="utf-8"?>
<fileSnapshot xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<files>
<file path="C:\ProgramData\chocolatey\lib\gitmoap\gitmoap-0.0.1-x86_64-pc-windows-gnu.zip.txt" checksum="4EFF81B90E5EEB70B4C5968B714259E1" />
<file path="C:\ProgramData\chocolatey\lib\gitmoap\gitmoap.nupkg" checksum="605EE5E2C28C690BFD7DB5BDBDB5E1A7" />
<file path="C:\ProgramData\chocolatey\lib\gitmoap\gitmoap.nuspec" checksum="C3A5C249B40938B41CAAFDDC3681EC95" />
<file path="C:\ProgramData\chocolatey\lib\gitmoap\tools\chocolateyinstall.ps1" checksum="CC86FD2780BDA81C8F79BE3A5E9DD93B" />
<file path="C:\ProgramData\chocolatey\lib\gitmoap\tools\chocolateyuninstall.ps1" checksum="75C58024A2E986A38642C2824367601E" />
<file path="C:\ProgramData\chocolatey\lib\gitmoap\tools\gitmoap-0.0.1-x86_64-pc-windows-gnu\git-remote-gitmoap.exe" checksum="DF16E9D1801EDBBF41526F9A9A678A41" />
<file path="C:\ProgramData\chocolatey\li
@ciperx
ciperx / block_4000_lancaster.csv
Created October 16, 2026 21:25
Commercial block dataset, delivery 3 - 4000 block of Lancaster Ave, Philadelphia PA (both sides, N 40th St to N 41st St). 37 commercial parcels. Four public APIs (ArcGIS OPA assessor, ArcGIS zoning base districts, ArcGIS permits, Carto SQL), each with its archived raw response, query URL and UTC retrieval time. Inline [S1]-[S4] citations.
We can make this file beautiful and searchable if this error is corrected: It looks like row 2 should actually have 25 columns, instead of 21 in line 1.
address,parcel_number,pin,owner_of_record,property_class,class_meaning,assessed_value,tax_year,last_sale_date,last_sale_price,zoning,zoning_api_code,zoning_source_api,zoning_summary,permits_last_24mo,permit_1_number,permit_1_type,permit_2_number,permit_2_type,permits_last_24mo_arcgis,permit_arcgis_1_number,permit_arcgis_1_type,listing_paragraph,source_query_url,retrieved_at_utc
"4000 Lancaster Ave, Philadelphia, PA 19104",882933555,1001310154,AULD DENNIS A,COMMERCIAL,"Commercial - income-producing non-residential use (retail, office, restaurant, service or similar)","$52,600",2026,2017-03-21,"$30,000",CMX-2,CMX2,ArcGIS Zoning_BaseDistricts (spatial),"CMX-2 (Neighborhood Commercial Mixed-Use) is a Philadelphia commercial/mixed-use district: it exists to allow commercial use, and in the mixed-use districts residential use in the same building, with the specific uses and dimensional limits set by Zoning Code Title 14.",0,none issued in window,none issued in window,none issued in window,none issued in window,0,no
@ciperx
ciperx / block_4000_lancaster.csv
Created October 16, 2026 21:24
Commercial block dataset, delivery 3 - 4000 block of Lancaster Ave, Philadelphia PA (both sides, N 40th St to N 41st St). 37 commercial parcels. Four public APIs (ArcGIS OPA assessor, ArcGIS zoning base districts, ArcGIS permits, Carto SQL), each with its archived raw response, query URL and UTC retrieval time. Inline [S1]-[S4] citations.
We can make this file beautiful and searchable if this error is corrected: It looks like row 2 should actually have 25 columns, instead of 21 in line 1.
address,parcel_number,pin,owner_of_record,property_class,class_meaning,assessed_value,tax_year,last_sale_date,last_sale_price,zoning,zoning_api_code,zoning_source_api,zoning_summary,permits_last_24mo,permit_1_number,permit_1_type,permit_2_number,permit_2_type,permits_last_24mo_arcgis,permit_arcgis_1_number,permit_arcgis_1_type,listing_paragraph,source_query_url,retrieved_at_utc
"4000 Lancaster Ave, Philadelphia, PA 19104",882933555,1001310154,AULD DENNIS A,COMMERCIAL,"Commercial - income-producing non-residential use (retail, office, restaurant, service or similar)","$52,600",2026,2017-03-21,"$30,000",CMX-2,CMX2,ArcGIS Zoning_BaseDistricts (spatial),"CMX-2 (Neighborhood Commercial Mixed-Use) is a Philadelphia commercial/mixed-use district: it exists to allow commercial use, and in the mixed-use districts residential use in the same building, with the specific uses and dimensional limits set by Zoning Code Title 14.",0,none issued in window,none issued in window,none issued in window,none issued in window,0,no
@Rodd359
Rodd359 / zarom.ps1
Created October 16, 2026 21:24
LOGO PERSONAL
$ESC = [char]27
$logo = @(
"███████ █████ ██████ ██████ ███ ███"
" ███ ██ ██ ██ ██ ██ ██ ████ ████"
" ███ ███████ ██████ ██ ██ ██ ████ ██"
" ███ ██ ██ ██ ██ ██ ██ ██ ██ ██"
"███████ ██ ██ ██ ██ ██████ ██ ██"
)
@spiritedpro
spiritedpro / Fire-Crew-Simulator-PC-Trainer.md
Created October 16, 2026 21:24
Fire Crew Simulator Trainer utility for Windows featuring reusable configurations, hotkeys, premium assets and a polished README.

Download Fire Crew Simulator Trainer

Fire Crew Simulator hero

Repository badges

Fire Crew Simulator Trainer

A Windows-first repository layout for Fire Crew Simulator with clean UI mockups, reusable profiles, hotkeys and screenshot-driven presentation.

@mnmohtasham
mnmohtasham / ReadAloud-Studio-Privacy-Policy.md
Created October 16, 2026 21:24
Privacy Policy — ReadAloud Studio: Listen & Summarize with AI (Chrome extension)

Privacy Policy — ReadAloud Studio: Listen & Summarize with AI

Last updated: October 17, 2026

ReadAloud Studio is a browser extension that reads web pages aloud and, if you choose, summarizes them, answers questions about them, or translates them. It works with speech and AI services that you choose and configure. This policy explains what the extension handles, where it goes, and what stays on your device.

fake-png