Skip to content

Instantly share code, notes, and snippets.

---
folder: High Rep Dumbbell & Band Program
color: #3BF27F
Perform 3 days per week (Mon/Wed/Fri recommended). Each workout is designed to be completed in 45 minutes using low weight and high rep ranges. Rest 30 seconds between sets and 1 minute between exercises. Supersets are used to maximize efficiency.
Equipment: Dumbbells, resistance bands, and an adjustable bench.
After 4 weeks, use the final workout to update your training maxes using the auto_1rm_higher method.
---
@yilenpan
yilenpan / training.py
Created February 15, 2024 00:11
Lora Training
! pip install -q "datasets==2.15.0"
from datasets import load_dataset
from transformers import AutoModelForSequenceClassification, AutoTokenizer
import torch
# LOAD DATASET
# The dair-ai/emotion dataset has three splits
splits = ["train", "test", "validation"]
data_splits = {}
@yilenpan
yilenpan / prac.md
Created September 2, 2019 05:51
prac

CSGO DAILY WARM UP - 30 MINS

DM / AIM_BOTZ - 5 MINS FAST AS POSSIBLE FAST_REFLEX_MAP - 5 MIN

  • SCREAM TRACKING DE_* - MODIFIED TREINO SCRIPT
  • ENTRY ROUTES - 5 MINS
  • ROTATIONS - 5 MINS
  • DEFEND ROUTINE - 5 MINS RECOIL_MASTER - 5 MINS
  • AK
@yilenpan
yilenpan / init
Created February 23, 2019 00:59
init
#! /bin/bash
set -e
# dot files
curl https://gist.githubusercontent.com/yilenpan/f22adffec7d1188924b278f13a7489e3/raw/68ac9b7031284fcb3993a5f6513c08ea2503d312/tmux > ~/.tmux.conf
curl https://gist.githubusercontent.com/yilenpan/cd5ccbc7d5045f136fb77a24da6cc497/raw/a59818a192db23bba9312d30c6d09da6c7bc1474/gistfile1.txt > ~/.gitconfig
curl https://gist.githubusercontent.com/yilenpan/1e157a62119b5650d1c5d3c06a542e5c/raw/0435415bbb0f81ae766b410bbd6c80ad919b9d72/gistfile1.txt > ~/.myaliases
curl https://gist.githubusercontent.com/yilenpan/ca52b2f072e69d2717a68066818eedae/raw/29b7de26da5efa855dd7e335c089027748be2d28/gistfile1.txt > ~/.bash_git
curl https://gist.githubusercontent.com/yilenpan/743f799cc96c75c52fc9ea6b635a2464/raw/3bfec5653cf0e3f4f087e2471815ade4e6082ce4/gistfile1.txt > ~/.vimrc
@yilenpan
yilenpan / tmux
Created February 23, 2019 00:10
tmux
# remap prefix from 'C-b' to 'C-a'
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
# prefix key to backtick (`)
# unbind C-b
# set-option -g prefix `
# So we can still use ` when needed (prefix + )
[user]
name = Yilen Pan
email = [email protected]
[color]
ui = auto
[alias]
st = status
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %Cblue<%an>%Creset' --abbrev-commit --date=relative
ch = checkout -
wslog = log --ignore-space-at-eol -p -w -b
@yilenpan
yilenpan / bash_profile
Created March 12, 2017 08:40
bash_profil
# Setting PATH for Python 2.7
# The orginal version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/2.7/bin:${PATH}"
export PATH
source ~/.bash_git
# GO PATH
export GOPATH=$HOME/go
export PATH=$PATH:$GOPATH/bin
# remap prefix from 'C-b' to 'C-a'
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
# prefix key to backtick (`)
# unbind C-b
# set-option -g prefix `
# So we can still use ` when needed (prefix + )
@yilenpan
yilenpan / PracticalServiceWorkers.md
Created March 12, 2017 07:21
PracticalServiceWorkers.md

Practical Service Workers

  • Web worker
    • Why do we have web workers?
    • because of the way javascript works
      • (event -> work -> paint)
    • If something in the work part of the loop hangs, the event loop breaks.
    • Web Workers run in a separate thread
      • Doesn't block painting
@yilenpan
yilenpan / webpack.md
Created March 12, 2017 07:20
Webpack

Webpack

https://naomiajacobs.github.io/webpacktalk

What is webpack?

  • Takes stuff that you like to write, to stuff that browsers can read.
  • Creates fewer requests, smaller responses

What does webpack solve?

  • Namespacing