Skip to content

Instantly share code, notes, and snippets.

View z-a-f's full-sized avatar
🏠
Working from home

Zafar z-a-f

🏠
Working from home
  • Hoofs and Horns, Inc.
  • Mountain View, CA
View GitHub Profile
@z-a-f
z-a-f / direnvrc
Created September 27, 2024 22:03
realpath() {
[[ $1 = /* ]] && echo "$1" || echo "$PWD/${1#./}"
}
layout_micromamba() {
# Setup
env_vars_required MAMBA_ROOT_PREFIX MAMBA_EXE
__shell=$(basename $SHELL)
__mamba_setup="$("$MAMBA_EXE" shell hook --shell "$__shell" --root-prefix "$MAMBA_ROOT_PREFIX" 2> /dev/null)"
if [ $? -eq 0 ]; then
@z-a-f
z-a-f / .zshrc
Created September 27, 2024 02:05
# set -x
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
## Local paths
USER_BIN="${HOME}/bin"
LOCAL_USER_BIN="${HOME}/.local/bin"
export PATH="${USER_BIN}${PATH:+:${PATH}}"
export PATH="${LOCAL_USER_BIN}${PATH:+:${PATH}}"
# Original CSV file
original_csv_file = 'filename.csv'
# Columns that need to be separated
# For this example, we have 3 subfiles, with these columns
# File 1: 0, 2, 4
# File 2: 1, 3, 5
# File 3: 0, 5
subfile_columns = [
[0, 2, 4],
[1, 3, 5],
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"version": 2,
"final_space": true,
"console_title_template": "{{ .Shell }} in {{ .Folder }}",
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [

Code Review Rules

As we review more code, it is worth spelling out the expectations for the code review.

Etiquette

  • Review the codes ASAP — this unblocks a lot of people. In fact I believe that code review is number one priority, as there are potentially a lot of people are immediately affected by it.
  • Assume good intentions!!!
  • Offer alternative implementations, but assume that the author considered them already.
  • Most comments in the review are opinions. However, you cannot just brush them off — the resolution is reached through discussion.
@z-a-f
z-a-f / .latexmkrc
Last active September 20, 2021 06:49
#!/bin/env perl
# This file was shamelessly copied from
# https://collaborating.tuhh.de/alex/latex-git-cookbook/-/blob/4174942b6674588d016189c708327dccbaac5b8d/.latexmkrc
# Shebang is only to get syntax highlighting right across GitLab, GitHub and IDEs.
# This file is not meant to be run, but read by `latexmk`.
# ======================================================================================
# Perl `latexmk` configuration file
@z-a-f
z-a-f / .ghstackrc
Last active September 9, 2021 07:39
[ghstack]
github_url = github.com
github_oauth = ghp_<...>
github_username = z-a-f
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.