Skip to content

Instantly share code, notes, and snippets.

import csv
def gradient_desc(m, b, data, learning_rate):
"""Gradient Descent"""
N = len(data)
for i in range(N):
x = float(data[i][0])
y = float(data[i][1])
error = y - (m * x + b)
@victor-perez
victor-perez / git.bat
Last active June 5, 2025 20:47
Use WSL git inside VS Code from Windows 10 17046
@echo off
setlocal ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION
::this also support calls that contains a absolute windows path
::check of one of the params contain a absolute windows path
echo.%* | findstr /r /c:"[a-z]:[\\/]" > nul
if %errorlevel% == 1 (
::if not just git with the given parameters
call :git %*
@huytd
huytd / wordle.md
Last active September 26, 2025 22:18
Wordle in less than 50 lines of Bash

image

How to use:

./wordle.sh

Or try the unlimit mode: