Skip to content

Instantly share code, notes, and snippets.

View MRYingLEE's full-sized avatar
🌐
AI + I/me

Ying LI MRYingLEE

🌐
AI + I/me
  • Hong Kong
View GitHub Profile
@guest271314
guest271314 / http_over_tcp_browser_server.md
Last active November 27, 2025 11:18
How to use the browser as an HTTP over TCP socket server

Today we will be using the Web browser (Google Chrome for Testing 125) as a local HTTP over TCP socket server.

WICG Direct Sockets specifies an API that provides TCPSocket, UDPSocket, and TCPServerSocket.

In Chromium based browsers, for example Chrome, this capability is exposed in an Isolated Web Apps (IWA).

Previously we have created an IWA that we launch from arbitrary Web sites with open(),

@balouf
balouf / ttt_llm.ipynb
Last active August 8, 2024 14:41
TTT - IPywidgets and LLMs
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@manzt
manzt / GameOfLife.ipynb
Last active June 8, 2025 16:50
Anywidget using WebGPU to simulate and render Conway's Game of Life
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@davestewart
davestewart / README.md
Last active August 23, 2025 11:22
Decompile JavaScript from source maps

Decompile JavaScript from source maps

Overview

Modern JavaScript build tools compile entire folder structures of JavaScript code into single, minified files that are near-impossible to read, but can also include source maps which can be used to display the original code in tools such as the Chrome DevTools Sources panel.

These source maps can be processed to extract mainly meaningful code and file structures, by installing a package calling Shuji and running a simple bash command.

Generally, production builds shouldn't include source maps, but if you do manage to lose your source files, or for some (obviously, ethical!) reason need to view the original files, and you happen to have / find the source maps, you're good to go.