This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env dash | |
| # Ensure we're in a Git repository | |
| if [ ! -d .git ]; then | |
| printf "%s\n" "This is not a Git repository." | |
| exit 1 | |
| fi | |
| find . -type f ! -path "./.git/*" | while read -r file; do | |
| printf "~~~~~ File: %s ~~~~~\n" $file |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [style] | |
| # Align closing bracket with visual indentation. | |
| align_closing_bracket_with_visual_indent=True | |
| # Allow dictionary keys to exist on multiple lines. For example: | |
| # | |
| # x = { | |
| # ('this is the first element of a tuple', | |
| # 'this is the second element of a tuple'): | |
| # value, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from pprint import pprint as pp | |
| #import bs4 | |
| import datetime | |
| #import inscripts | |
| #import lxml | |
| import os | |
| #import pexpect | |
| import random | |
| import re | |
| # import requests |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #+LATEX_COMPILER: xelatex | |
| # #+LATEX_COMPILER: lualatex | |
| #+LATEX_CLASS_OPTIONS: [8pt,twocolumn] | |
| #+LATEX_HEADER: \usepackage{nopageno} | |
| #+LATEX_HEADER: \usepackage{setspace} | |
| # #+LATEX_HEADER: \doublespacing | |
| # #+LATEX_HEADER: \onehalfspacing | |
| #+LATEX_HEADER: \singlespacing | |
| #+LATEX_HEADER: \usepackage[scaled]{helvet} | |
| #+LATEX_HEADER: \usepackage{fontspec} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # #+latex_compiler: lualatex | |
| #+latex_compiler: xelatex | |
| #+latex_class_options: [12pt] | |
| #+latex_header: \usepackage{setspace} | |
| #+latex_header: \onehalfspacing | |
| # #+latex_header: \doublespacing | |
| #+latex_header: \usepackage[scaled]{helvet} | |
| #+latex_header: \usepackage{fontspec} | |
| # #+latex_header: \setmainfont{Red Hat Text} | |
| #+latex_header: \setmainfont{Fira Sans} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| vim9script | |
| silent! source $VIMRUNTIME/defaults.vim | |
| set nocompatible | |
| set autoindent | |
| set background=dark | |
| set backspace=indent,eol,start | |
| set cinoptions=:0,l1,g0,t0,+.5s,(.5s,u0,U1,j1 | |
| set encoding=utf-8 | |
| set history=999 | |
| set incsearch |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from oauth2client import client | |
| from googleapiclient import sample_tools | |
| import sys | |
| import argparse | |
| def main(argv=sys.argv): | |
| parser = argparse.ArgumentParser() | |
| parser.add_argument('-d', '--draft', dest='isDraft', action='store_true', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ./main --color --threads 7 --batch_size 256 --n_predict -1 --top_k 12 --top_p 1 \ | |
| --temp 0.36 --repeat_penalty 1.05 --ctx_size 2048 --instruct \ | |
| --reverse-prompt "### Human:" \ | |
| --model ./models/13B/ggml-vicuna-13b-4bit.bin \ | |
| -f prompts/vicuna.txt | |
| printf 'A chat between a curious human and an artificial intelligence assistant. | |
| The assistant gives helpful, detailed, and polite answers to the human's questions.' > prompts/vicuna.txt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| build_python() { | |
| if [ -z $1 ]; then | |
| printf "use: $FUNCNAME <destination-dir> <python-version>\n | |
| For example: $FUNCNAME ~/opt/py 3.10.8\n\n" | |
| return 1 | |
| fi | |
| directory=$1 | |
| python_version=$2 | |
| cwd=`pwd` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ;; -*- mode: emacs-lisp -*- | |
| ;; This file is loaded by Spacemacs at startup. | |
| ;; It must be stored in your home directory. | |
| (defun dotspacemacs/layers () | |
| "Configuration Layers declaration. | |
| You should not put any user code in this function besides modifying the variable | |
| values." | |
| (setq-default |
NewerOlder