Skip to content

Instantly share code, notes, and snippets.

from pprint import pprint as pp
#import bs4
import datetime
#import inscripts
#import lxml
import os
#import pexpect
import random
import re
# import requests
#+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}
# #+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}
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
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',
@mrsipan
mrsipan / vicuna.sh
Created April 18, 2023 04:32
llama.cpp for vicuna commands and prompt
./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
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`
;; -*- 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
  1. Create an app following the official Shadow-CLJS Quick Start instructions.
  2. Modify shadow-cljs.edn
;; shadow-cljs configuration
{:source-paths
 ["src/dev"
  "src/main"
  "src/test"]

 ;; ADD - CIDER middleware for nREPL (required by fireplace.vim)
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`"