Skip to content

Instantly share code, notes, and snippets.

View ben-albrecht's full-sized avatar

Ben Albrecht ben-albrecht

View GitHub Profile
import os
from pathlib import Path
import logging
import argparse
from concurrent.futures import ThreadPoolExecutor, as_completed
import pathspec
from collections import defaultdict
# Configure logging
logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s')
# FastHTML docs
## Map
~~~
├── mds/
├── CNAME
├── codebase.md
├── index.html
├── index.html.md
"
" Add this to your vimrc to get a warning before opening files that will take a while to load in vim.
" This includes: binary (non-ascii, non-utf) files and certain filetypes (csv, tsv)
"
augroup bigfiles
" Clear the bigfiles group in case defined elsewhere
autocmd!
" Set autocommand to run before reading buffer
autocmd BufReadCmd * silent call PromptFileEdit()
@krishnadey30
krishnadey30 / TestResult.md
Last active June 17, 2019 23:07
This gist holds the initial draft of TestResult class for Chapel's UnitTest Framework.
/*
  Holder for test result information.
  Test results are automatically managed by the TestRunner, and do not 
  need to be explicitly manipulated by writers of tests.  
  Each instance holds the total number of tests run, and collections of 
  failures and errors that occurred among those test runs. The collections
  contain tuples of (testcase, exceptioninfo), where exceptioninfo is the
  formatted traceback of the error that occurred.
*/
@nadavrot
nadavrot / Matrix.md
Last active August 17, 2025 08:17
Efficient matrix multiplication

High-Performance Matrix Multiplication

This is a short post that explains how to write a high-performance matrix multiplication program on modern processors. In this tutorial I will use a single core of the Skylake-client CPU with AVX2, but the principles in this post also apply to other processors with different instruction sets (such as AVX512).

Intro

Matrix multiplication is a mathematical operation that defines the product of

@samoshkin
samoshkin / toggle_keybindings.tmux.conf
Last active August 25, 2025 22:24
tmux.conf excerpt to toggle on/off session keybindings and prefix handling
bind -T root F12 \
set prefix None \;\
set key-table off \;\
set status-style "fg=$color_status_text,bg=$color_window_off_status_bg" \;\
set window-status-current-format "#[fg=$color_window_off_status_bg,bg=$color_window_off_status_current_bg]$separator_powerline_right#[default] #I:#W# #[fg=$color_window_off_status_current_bg,bg=$color_window_off_status_bg]$separator_powerline_right#[default]" \;\
set window-status-current-style "fg=$color_dark,bold,bg=$color_window_off_status_current_bg" \;\
if -F '#{pane_in_mode}' 'send-keys -X cancel' \;\
refresh-client -S \;\
bind -T off F12 \
@coodie
coodie / GSoC_2017.md
Last active November 22, 2017 11:25
GSoC 2017: Improve LLVM Backend

GSoC 2017: Improve LLVM Backend

The Chapel compiler can compile both to C or LLVM. The main idea behind this project was to improve code generated by LLVM backend of compiler. Part of the project was to do as many tasks as possible in this github issue. Initially, this list contained only couple of introductory tasks (the first few), but it grew as the project progressed.

The biggest accomplishment of this summer was improving vectorization in LLVM IR. Here is a

GSoC 2016: Incremental Compilation in Chapel

Organization: Chapel

Project: Incremental Compilation

Student: Kushal Singh

Mentors: Lydia Duncan, Ben Harshbarger

@baumandm
baumandm / GIF-Screencast-OSX.md
Last active March 5, 2025 18:33 — forked from dergachev/GIF-Screencast-OSX.md
OS X Screencast to Animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime and ffmpeg.

Forked from https://gist.github.com/dergachev/4627207. Updated to use a palette to improve quality and skip gifsicle.

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application: