This file contains 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 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
#!/bin/sh -vex | |
printf "%s\n" "Make sure python is compiled with --enable-shared!!!" | |
rm -rf vim | |
git clone https://github.com/vim/vim.git | |
cd vim | |
export PATH=$HOME/opt/pylocal/bin:$PATH | |
CPPFLAGS="-I$HOME/opt/pylocal/include" |
This file contains 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 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 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 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 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 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 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.4.2\n\n" | |
return 1 | |
fi | |
directory=$1 | |
python_version=$2 | |
cwd="`pwd`" |
This file contains 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