Skip to content

Instantly share code, notes, and snippets.

@jonathanferrari
jonathanferrari / table-widget.py
Last active June 13, 2026 20:07
Create an Interactive Table using Ipywidgets and Pandas
import pandas as pd
import ipywidgets as widgets
import numpy as np
from IPython.display import *
class Make:
def headers(cols, labels):
header_widgets = []
@crazy4pi314
crazy4pi314 / Notepad.code-profile
Last active June 3, 2026 21:24
VS Code Profiles
{"name":"Notepad","settings":"{\"settings\":\"{\\r\\n \\\"window.zoomLevel\\\": 3,\\r\\n \\\"editor.inlineSuggest.enabled\\\": true,\\r\\n \\\"github.copilot.enable\\\": {\\r\\n \\\"*\\\": true,\\r\\n \\\"yaml\\\": false,\\r\\n \\\"plaintext\\\": false,\\r\\n \\\"markdown\\\": true\\r\\n },\\r\\n \\\"workbench.colorTheme\\\": \\\"Witch Hazel\\\",\\r\\n \\\"cSpell.userWords\\\": [\\r\\n \\\"Codespace\\\",\\r\\n \\\"Codespaces\\\",\\r\\n \\\"conda\\\",\\r\\n \\\"cuda\\\",\\r\\n \\\"devcontainer\\\",\\r\\n \\\"Ferrie\\\",\\r\\n \\\"liveshare\\\",\\r\\n \\\"matplotlib\\\",\\r\\n \\\"Micromamba\\\",\\r\\n \\\"Miniconda\\\",\\r\\n \\\"Miniforge\\\",\\r\\n \\\"navivage\\\",\\r\\n \\\"nbconvert\\\",\\r\\n \\\"pyenv\\\",\\r\\n \\\"Pylance\\\",\\r\\n \\\"screencast\\\",\\r\\n \\\"screencasts\\\",\\r\\n \\\"tetris\\\"\\r\\n ],\\r\\n \\\"workbenc
@hirrolot
hirrolot / CoC.ml
Last active July 6, 2026 19:30
How to implement dependent types in 80 lines of code
type term =
| Lam of (term -> term)
| Pi of term * (term -> term)
| Appl of term * term
| Ann of term * term
| FreeVar of int
| Star
| Box
let unfurl lvl f = f (FreeVar lvl)
@4wk-
4wk- / README.md
Last active July 11, 2026 18:39
Clean uninstall then reinstall of WSL on Windows 10, with systemD support

Uninstall then reinstall WSL on Windows 10 (clean way)

Background

I've been using wsl (version 2) with genie mod for years without issue, but one day, Windows 10 finally catch up on wsl Windows 11 features and gives us a way to use systemD natively.

I wanted to use the new "right way" to enable systemD on Windows Subsystem for Linux (without genie), and I also had a (probably related) infinite Windows RemoteApp error poping in.

Fixing it

A - Uninstall wsl and related stuff

  1. In powershell (as admin)
@hirrolot
hirrolot / CoC.ml
Last active December 30, 2025 06:47
Barebones lambda cube in OCaml
(* The syntax of our calculus. Notice that types are represented in the same way
as terms, which is the essence of CoC. *)
type term =
| Var of string
| Appl of term * term
| Binder of binder * string * term * term
| Star
| Box
and binder = Lam | Pi
@mmozeiko
mmozeiko / !README.md
Last active July 21, 2026 13:28
Download MSVC compiler/linker & Windows SDK without installing full Visual Studio

This downloads standalone MSVC compiler, linker & other tools, also headers/libraries from Windows SDK into portable folder, without installing Visual Studio. Has bare minimum components - no UWP/Store/WindowsRT stuff, just files & tools for native desktop app development.

Run py.exe portable-msvc.py and it will download output into msvc folder. By default it will download latest available MSVC & Windows SDK from newest Visual Studio.

You can list available versions with py.exe portable-msvc.py --show-versions and then pass versions you want with --msvc-version and --sdk-version arguments.

To use cl.exe/link.exe first run setup_TARGET.bat - after that PATH/INCLUDE/LIB env variables will be updated to use all the tools as usual. You can also use clang-cl.exe with these includes & libraries.

To use clang-cl.exe without running setup.bat, pass extra /winsysroot msvc argument (msvc is folder name where output is stored).

@hirrolot
hirrolot / error.txt
Last active December 26, 2025 21:47
Zig massive compile-time error
An error occurred:
/tmp/playground3425286633/play.zig:9:9: error: error is ignored. consider using `try`, `catch`, or `if`
switch (c) {
^
/tmp/playground3425286633/play.zig:23:15: note: called from here
try printf("Mr. John has * contacts in *\n", .{ 42, "New York"});
^
/tmp/playground3425286633/play.zig:22:21: note: called from here
pub fn main() !void {
^
@muink
muink / Universal-Captive-Portal-Server.md
Last active May 7, 2026 11:39
通用 Captive Portal 檢測伺服器, 在中國大陸也可用

Universal Captive Portal Detection Server

http(s)://edge.microsoft.com/captiveportal/generate_204
http(s)://cp.cloudflare.com/generate_204
http(s)://www.qualcomm.cn/generate_204
http(s)://connectivity.samsung.com.cn/generate_204
http(s)://captiveportal.kuketz.de

@HimDek
HimDek / Hyper-V in Windows 10 and Windows 11 Home Edition.md
Last active July 21, 2026 02:35
Hyper-V is supported in Pro, Enterprise and Education Edition of Windows 10 and Windows 11. This guide will show you how to enable Hyper-V in Home Editions of Windows 10 and Windows 11.

Hyper-V in Windows 10 and Windows 11 Home Edition

Hyper-V in Windows 10 and Windows 11 allows running Virtual Machine. It is supported only in Pro, Enterprise and Education Edition of Windows 10 and Windows 11 by default. But this guide will show you how to enable it in Home Editions of Windows 10 and Windows 11.

Check if virtualization is enabled:

  • Search for Command Prompt in Windows Start Menu and open it.
  • Type systeminfo and press Enter. Wait for the process to finish
  • Once the results appear, search for the Hyper-V Requirements section which is usually the last one. 11
    • If it says A hypervisor has been detected. Features required for Hyper-V will not be displayed. that means Hyper-V is already enabled and there is no reason following this guide anymore.
  • Otherwise, check for Virtualization Enabled in Firmware:.
@pratyakshm
pratyakshm / Sideloading_apps_in_WSA.md
Last active May 6, 2026 12:03
Sideloading apps on Windows Subsystem for Android in Windows 11

Sideloading APKs in to Windows Subsystem for Android

Update (9th July, 2022): An app is available that does just this.

Check out WSATools by Simone Franco: https://www.microsoft.com/store/apps/9N4P75DXL6FG


Setting up ADB to work with WSA

  • Launch Windows Subsystem for Android.