how to install
-
conda:
works great. no issues.
-
docker:
works well - unless you want to use the latest stable vscode version as of may 2024.
| ❯ ls /opt/homebrew/share/figlet/*.tlf | xargs -n 1 basename | sed 's/\.tlf$//' | while read font; do echo "FONT: $font"; toilet -f $font "sample"; done | |
| FONT: ascii12 | |
| mmmm | |
| ""## | |
| mm#####m m#####m ####m##m ##m###m ## m####m | |
| ##mmmm " " mmm## ## ## ## ##" "## ## ##mmmm## | |
| """"##m m##"""## ## ## ## ## ## ## ##"""""" | |
| #mmmmm## ##mmm### ## ## ## ###mm##" ##mmm "##mmmm# | |
| """""" """" "" "" "" "" ## """ """" """"" |
| cmake_minimum_required(VERSION 3.27 FATAL_ERROR) | |
| project(demo LANGUAGES C) | |
| set(CMAKE_C_STANDARD 23) | |
| set(CMAKE_C_STANDARD_REQUIRED ON) | |
| if(CMAKE_C_COMPILER_ID MATCHES "GNU" AND CMAKE_C_COMPILER_VERSION VERSION_LESS 14.0.0) | |
| message(FATAL_ERROR "GCC is outdated: ${CMAKE_C_COMPILER_VERSION}") | |
| endif() | |
| if(CMAKE_C_COMPILER_ID MATCHES "Clang" AND CMAKE_C_COMPILER_VERSION VERSION_LESS 16.0.0) |
| # | |
| # Usage: `uv run robust_compiler_options.py > options.json` | |
| # See: https://docs.astral.sh/uv/guides/scripts/#declaring-script-dependencies | |
| # | |
| # | |
| # /// script | |
| # requires-python = ">=3.10" | |
| # dependencies = [ | |
| # "requests==2.32.4", | |
| # "markdown==3.6", |
| # this container just serves to install the `klaR` package | |
| # | |
| # usage: | |
| # | |
| # $ docker compose up -d | |
| # $ docker compose exec main Rscript -e "rmarkdown::render('ex7.rmd', output_format = 'pdf_document')" | |
| services: | |
| main: | |
| container_name: main |
| def sigmoid(x): return 1/(1 + __import__('math').exp(-x)) | |
| def train_mnist(): | |
| # Generate mock MNIST data (28x28 images) | |
| X = [[float(i%2) for i in range(784)] for _ in range(100)] # Mock input | |
| y = [[1 if i==j else 0 for i in range(10)] for j in range(100)] # Mock labels | |
| # Initialize weights and biases | |
| W1 = [[0.01*((i+j)%2) for j in range(784)] for i in range(30)] | |
| W2 = [[0.01*((i+j)%2) for j in range(30)] for i in range(10)] |
how to install
conda:
works great. no issues.
docker:
works well - unless you want to use the latest stable vscode version as of may 2024.
| import hashlib | |
| import sys | |
| import pathlib | |
| import subprocess | |
| """ | |
| github commits are restricted to 25-50 MiB, varying based on the push method [^1]. | |
| to handle files beyond this limit, git lfs (large file storage) pointers are necessary, referencing an external lfs server [^2]. | |
| however, this method incurs a monthly cloud storage fee to github [^3]. |
| import webbrowser | |
| import time | |
| from playwright.sync_api import sync_playwright | |
| URL = "https://www.amazon.jobs/en/search?___________INSERT YOUR URL HERE___________" | |
| page = sync_playwright().start().chromium.launch().new_page() | |
| page.goto(URL) |
| import { assert, log } from 'console' | |
| import fs from 'fs' | |
| import playwright from 'playwright' | |
| const DOWNLOAD_PATH = 'downloads' | |
| const main = async () => { | |
| console.clear() | |
| // init download dir |
| const { join } = require("path"); | |
| module.exports = { | |
| cacheDirectory: join(__dirname, ".cache", "puppeteer"), | |
| }; |