Skip to content

Instantly share code, notes, and snippets.

View ben-albrecht's full-sized avatar

Ben Albrecht ben-albrecht

View GitHub Profile
"
" 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 July 16, 2024 10:05
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 June 8, 2024 23:04
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 November 3, 2023 07:18 — 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:

@tsiege
tsiege / The Technical Interview Cheat Sheet.md
Last active July 14, 2024 15:27
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

ANNOUNCEMENT

I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!






\