Skip to content

Instantly share code, notes, and snippets.

View ulfaslak's full-sized avatar
🐝
modeling modeling

Ulf Aslak ulfaslak

🐝
modeling modeling
View GitHub Profile
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Coding Agents & Context Engineering — IDA course deck</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..700;1,9..144,300..700&family=IBM+Plex+Sans:ital,wght@0,300;0,400;0,500;0,600;1,400&family=IBM+Plex+Mono:wght@400;500&display=swap" rel="stylesheet">
<style>

Language to Avoid

When generating text, avoid the following categories of wording, structures, and symbols:

  1. Grandiose or clichéd phrasing

    • “stands as”, “serves as”, “is a testament”
    • “plays a vital / significant / crucial role”
    • “underscores its importance”, “highlights its significance”
  • “leaves a lasting impact”, “watershed moment”, “deeply rooted”, “profound heritage”
@ulfaslak
ulfaslak / gist:2acffef7072980c6f27ba115b8712ee1
Created September 12, 2025 09:20
adhoc-project-starter
adhoc () {
setopt RM_STAR_SILENT
PROJECT_DIR="<PATH WHERE ADHOC EXPERIMENTS GET CREATED>" # <-- HEY LOOK HERE!
TEMPLATE_REPO="https://github.com/pymc-labs/project-starter.git"
PACKAGE_NAME="logic"
if [ -z "$1" ]
then
echo "Usage: codenow.sh <project_name>"
exit 1
fi
import requests as rq
import numpy as np
import time
sikrede = [[0, {"vejnavn_sik": "Kongens Nytorv", "postnummer_sik": 1050}]]
address_column = []
for index, row in sikrede:
# Construct request text
This is a container for hosting random adhoc images.
newpy () {
local lowercase_string="$(echo "$1" | tr '[:upper:]' '[:lower:]')" # Convert folder name to lowercase
local hyphenated_string="$(echo "$lowercase_string" | tr -c '[:alnum:]' '-')" # Convert non-alphanumeric characters to hyphens
local clean_string="$(echo "$hyphenated_string" | sed -e 's/^-*//' -e 's/-*$//')" # Remove leading and trailing hyphens
folder_name=$(date +%Y%m%d)-$clean_string # Prepend date, formatted like YYYYMMDD
mkdir -p <repository-where-i-want-my-adhoc-analysis-folders-to-reside>/$folder_name # Create folder
cd <repository-where-i-want-my-adhoc-analysis-folders-to-reside>/$folder_name # ... cd into it
virtualenv env # Create virtual env
source env/bin/activate # ... activate it
pip3 install -U flake8 black
@ulfaslak
ulfaslak / main.py
Created January 10, 2024 14:37
Sphinx Documentation Scraper
import requests as rq
import os
from bs4 import BeautifulSoup
from urllib.parse import urljoin
BASE_URL = "https://www.pymc.io/projects/docs/en/stable/"
# BASE_URL = "https://www.pymc.io/projects/examples/en/latest/"
PAGES_CRAWLED = 0
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Twitter data around tweets with hashtags #fv19, #ft19 and #dkpol.
We can't make this file beautiful and searchable because it's too large.
source,target,datetime,id
13_Robespierre,24NYTdk,2019-05-06 14:32:32+00:00,1125408005078564865
13_Robespierre,AnneDanmark,2019-05-08 09:44:43+00:00,1126060349910859777
13_Robespierre,H38GE,2019-05-12 13:33:07+00:00,1127567381214183425
13_Robespierre,HappiSabi,2019-05-16 23:51:22+00:00,1129172519926337536
13_Robespierre,JalehTavakoli,2019-06-05 09:38:18+00:00,1136205595810381824
13_Robespierre,Kartoffelploven,2019-05-09 09:49:21+00:00,1126423906418610178
13_Robespierre,RasmusPaludan,2019-05-09 09:07:34+00:00,1126413390816133120
13_Robespierre,RasmusPaludan,2019-05-14 20:27:53+00:00,1128396535841075204