Skip to content

Instantly share code, notes, and snippets.

@Keijiro-Ida
Keijiro-Ida / Solution.php
Created July 8, 2025 22:00
561. Array Partition
class Solution {
/**
* @param Integer[] $nums
* @return Integer
*/
function arrayPairSum($nums) {
$result = 0;
sort($nums);
@choco-bot
choco-bot / Install.txt
Created July 8, 2025 22:00
pavement.dev v1.0.1 - Failed - Package Tests Results
2025-07-08 21:16:49,345 748 [DEBUG] - XmlConfiguration is now operational
2025-07-08 21:16:49,566 748 [DEBUG] - Adding new type 'CygwinService' for type 'IAlternativeSourceRunner' from assembly 'choco'
2025-07-08 21:16:49,578 748 [DEBUG] - Adding new type 'CygwinService' for type 'IInstallSourceRunner' from assembly 'choco'
2025-07-08 21:16:49,578 748 [DEBUG] - Adding new type 'PythonService' for type 'IAlternativeSourceRunner' from assembly 'choco'
2025-07-08 21:16:49,578 748 [DEBUG] - Adding new type 'PythonService' for type 'IListSourceRunner' from assembly 'choco'
2025-07-08 21:16:49,600 748 [DEBUG] - Adding new type 'PythonService' for type 'IInstallSourceRunner' from assembly 'choco'
2025-07-08 21:16:49,626 748 [DEBUG] - Adding new type 'PythonService' for type 'IUninstallSourceRunner' from assembly 'choco'
2025-07-08 21:16:49,657 748 [DEBUG] - Adding new type 'RubyGemsService' for type 'IAlternativeSourceRunner' from assembly 'choco'
2025-07-08 21:16:49,674 748 [DEBUG] - Adding new type 'RubyGe
@zyplos
zyplos / twitter-dm-bulk-delete.js
Created July 8, 2025 22:00
bulk delete ALL twitter message requests. uncomment the first and last line for a bookmarklet. meant to run on this page: https://x.com/messages/requests
// javascript:(async () => {
const username = new URL(window.location.href).pathname.split("/")[1];
const menuButtons = Array.from(document.querySelectorAll(`button[aria-label="Options menu"]`))
function sleep(ms) {
return new Promise((resolve) => setTimeout(resolve, ms));
}
async function deleteDm(menuButton) {
@choco-bot
choco-bot / FilesSnapshot.xml
Created July 8, 2025 21:59
sui v1.51.4 - 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\sui\sui.nupkg" checksum="85385C9F47CE4B8E95C8061BA6914BB0" />
<file path="C:\ProgramData\chocolatey\lib\sui\sui.nuspec" checksum="3693AE9407AA2A2E40B3EF17B219DFF9" />
<file path="C:\ProgramData\chocolatey\lib\sui\bin\sui.exe" checksum="0BF4DA2ABB532023F53E27C42AAA6B6B" />
<file path="C:\ProgramData\chocolatey\lib\sui\bin\VERIFICATION.txt" checksum="C604C2DF63DE2DC3C11EE14FCC5E431A" />
<file path="C:\ProgramData\chocolatey\lib\sui\bin\LICENSE.txt\LICENSE" checksum="D229DA563DA18FE5D58CD95A6467D584" />
</files>
</fileSnapshot>
@secbitchris
secbitchris / mag7_spy_analysis_20250708_215822.md
Created July 8, 2025 21:58
Mag7 → SPY 52-Week High Analysis - 2025-07-08

🎯 Mag7 → SPY 52-Week High Analysis

📊 Current Status: • SPY Current: $620.34 • SPY at Mag7 52W Highs: $612.44 • Total Impact: -1.27% ($-7.90)

📈 Individual Contributions: • AAPL: $210.01 → $237.23 (+13.0%) | Impact: +2.09% • MSFT: $496.62 → $468.35 (-5.7%) | Impact: -1.11%

{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "response_schema",
"type": "object",
"properties": {
"result": {
"type": "string",
"description": "A deduplicated space-separated string of lead sources."
}
},

Happenstance Affinity Ranking - 1 Page Proposal

Problem & Solution

Need: Rank user connections by "affinity strength" for search results and question prioritization Current: Only works for users with connected email headers Goal: Works for ALL users, efficient queries, production-ready ASAP

Solution: XGBoost classifier trained on binary labels (0/1) that outputs probability scores (0.0-1.0) for ranking

Features (What Makes People Connected?)

@ODumpling
ODumpling / branch_cleanup.ps1
Created July 8, 2025 21:56
A powershell script to clean up local branches that have been merged or not on remote
## Checkout the main branch
## If your main branch name is different, use that name instead of 'main'
git checkout dev
## This will remove the branches
## which are present on local but are deleted on remote
git fetch --prune
## The below command will get all branches which are merged
## Then it will remove the names 'main', 'master', 'develop' from the list
Identificador Regla Descripción Tipo de validación Riesgo
DGERV2020_005 Si Estatus = “1” entonces Fin de vigencia > Fecha de corte Si el estatus de la póliza es igual a póliza vigente (1) entonces fin de vigencia deberá ser mayor a la fecha de corte. Fechas Alto
DGERV2020_002 Clave de compañía de coaseguro <> nulo entonces porcentaje e
@BenSchr
BenSchr / databricks_summit_2025.md
Last active July 8, 2025 23:38
A personal, highly curated list of the Databricks Summit 2025 YouTube videos

🏆 Databricks Summit 2025: Curated Video Resources

This document is a handpicked, categorized collection of YouTube videos from Databricks Summit 2025. It covers the latest advancements, best practices, and real-world case studies in data engineering, AI/ML, governance, cost optimization, streaming, observability, and more. Each section is designed to help data professionals, engineers, and leaders quickly find high-value sessions for learning, inspiration, and practical implementation. Use this resource as a reference guide to accelerate your Databricks and data platform journey.

📦 Data Engineering & Lakehouse