Skip to content

Instantly share code, notes, and snippets.

View tangoabcdelta's full-sized avatar

tangoabcdelta

View GitHub Profile
@tangoabcdelta
tangoabcdelta / get-all-commits.md
Created July 25, 2026 11:38
Get all Commits from a Github Page
Array.from(document.querySelectorAll('a[id^="commit-details-"]')).map(i => i.textContent.replaceAll("\n"," ").replaceAll(" ",""))
@tangoabcdelta
tangoabcdelta / instructions.md
Created July 20, 2026 13:36
search through all files in a specified directory (recursively) for occurrences of a given string (FOOBAR).

Search all files recursively for a given string

What is it about

  • Shell script that searches through all files in a specified directory (recursively) for occurrences of a given string e.g. FOOBAR.
  • This script can be customized by changing the SEARCH_STRING variable.
  • The script uses grep to find the string and ignores binary files using file -I.

How to Use This Script:

@tangoabcdelta
tangoabcdelta / windows-to-mac-filesharing.md
Created July 19, 2026 11:28
Share Files and Folders from Windows Laptop to Mac

To see Windows shared folders on a Mac, follow these steps

Step-by-Step Connection

  1. Get the Windows IP Address:
  2. On your Windows PC, open the Start menu, type cmd, and press Enter.
  3. Type ipconfig and note the IPv4 Address 1. (e.g., 192.168.1.15).
  4. Alternatively,
  5. Go to the windows pc's cmd prompt

To isolate user-defined properties in the window object, you can compare the current keys of window against a "clean" iframe context. This effectively filters out all browser-native APIs and built-ins.

Here is a concise snippet you can paste directly into your console:

((win) => {
  const iframe = document.createElement('iframe');
  iframe.style.display = 'none';
  document.body.appendChild(iframe);
 const nativeProps = Object.getOwnPropertyNames(iframe.contentWindow);

System / Auto Light or Dark Mode

To sync your VS Code workbench theme with your operating system's light or dark mode, you need to enable the auto-detect setting.

  • Open the Command Palette by pressing
  • Ctrl + Shift + P (Windows/Linux) or
  • Cmd + Shift + P (macOS).
  • Open User Settings (JSON) and press Enter.
  • Add the following lines to your configuration.
@tangoabcdelta
tangoabcdelta / d3.marimekko.chart.js
Created April 29, 2026 01:23
D3.js Marimekko chart template
<script>
fetch("data.json")
.then(response => response.json())
.then(json => {
// Filter only "Electronic Technology" stocks
const data = json.data
.filter(d => d.d[21] === "Electronic Technology")
.map(d => ({
symbol: d.s,
company: d.d[27],
@tangoabcdelta
tangoabcdelta / query 2.md
Last active April 29, 2026 01:20
Git Hooks

This all looks like rookie stuff. Solve it how an enterprise solution saas company for code diffs would have done or something better than that.

// https://leetcode.com/problems/longest-substring-without-repeating-characters/description/
// "abcabcbb" ==> 3
// "bbbbb" ==> 1
// "pwwkew" ==> 3
function LongestNonRepeatedSubstringLength(str) {
let h = new Map();
let left = 0;
let maxLength = 0;
for (let right = 0; right < str.length; right++) {
@tangoabcdelta
tangoabcdelta / readme.md
Last active March 9, 2026 15:27
VSCode settings on settings.json

A long, comprehensive JSON example of frequently used VS Code settings that developers often configure in their settings.json.

I’ve included a wide range of categories: