Lecture 1: Introduction to Research — [📝Lecture Notebooks] [
Lecture 2: Introduction to Python — [📝Lecture Notebooks] [
Lecture 3: Introduction to NumPy — [📝Lecture Notebooks] [
Lecture 4: Introduction to pandas — [📝Lecture Notebooks] [
Lecture 5: Plotting Data — [📝Lecture Notebooks] [[
Discover gists
Hello and welcome to my Shortcuts Catalog!
This is a public resource designed to help people get started with Siri Shortcuts and the Shortcuts app.
It’s made up of the Shortcuts Library, a collection of over 125+ shortcuts grouped into folders, and the Action Directory, a documentation of 125+ of the actions in the Shortcuts app used to build shortcuts.
Enjoy!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import struct | |
from concurrent.futures import ThreadPoolExecutor | |
from pathlib import Path | |
from PIL import Image | |
BIN_FILE = 'game.bin' # or .iso | |
OUTPUT_DIR = 'textures' | |
Path(OUTPUT_DIR).mkdir(exist_ok=True) |
This document outlines the comprehensive, step-by-step process for generating the weekly notable changes report for the Flutter repository. Follow these instructions carefully to ensure accuracy and efficiency.
- Fetch Latest Commits: Ensure the local repository is up-to-date by running
git fetch
. - Get All Commits from the Last 7 Days: Get a list of all commits that have landed in the past seven days (inclusive of today). Use the following command to get the commit hash and the subject line:
git log --since="7 days ago" --pretty=format:"%H - %s"
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use std::convert::Infallible; | |
use axum::{ | |
async_trait, | |
extract::FromRequestParts, | |
http::{request::Parts, Request, header::CONTENT_LENGTH}, | |
middleware::{from_fn, Next}, | |
response::{Html, IntoResponse, IntoResponseParts, Response}, | |
routing::get, | |
Router, body::{Full, self}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// | |
// kylegg 2024 | |
// | |
// Response is always text/plain for our API. | |
header('Content-Type: text/plain'); | |
// Generic function I wrote for validating url parameters in like 30 seconds, its not pretty but it works. | |
function getQueryParameter(string $name, Closure $cl): mixed |
setup variables for commands
echo -e "\n
export image=redroid/redroid:11.0.0-amd64
export image_tar=${HOME}/redroid:11.0.0-amd64" >> ${HOME}/.bashrc
source ${HOME}/.bashrc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function gh-enable-all-inactivity-disabled-workflows | |
set org $argv[1] | |
gh repo list $org | cut -f 1 | xargs -I REPO sh -c 'gh workflow list --all -R REPO | grep disabled_inactivity | cut -f 3 | xargs -I WORKFLOW sh -xc "gh workflow enable WORKFLOW -R REPO"' | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import struct | |
from pathlib import Path | |
from PIL import Image | |
import numpy as np | |
# TIM header constant | |
TIM_MAGIC = b'\x10\x00\x00\x00' | |
# Ensure output directory exists |
NewerOlder