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
# This script will transcribe an audio file (mp3, wav, etc.) to text and then clean the text using a local LLM model via Ollama. Technically, this script will work with any LLM that supports the standard OpenAI bindings with minor adjustments. | |
# GETTING STARTED: | |
# 1. Install required python packages (pip install openai python-dotenv) | |
# 2. Git clone a copy of ggerganov/whisper (https://github.com/ggerganov/whisper.cpp) | |
# 3. Build the whisper binary (see the whisper.cpp README for instructions) | |
# 4. Download one of the whisper models (largev2 is the most accurate for all languages, though the base model works reasonably well for English). | |
# 5. Install ffmpeg (brew install ffmpeg on macOS, apt-get install ffmpeg) | |
# 6. Install ollama (https://ollama.com/download) | |
# 7. Download an LLM model (https://ollama.com/library) |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>{Title}</title> | |
<link rel='icon' href='{Favicon}'> | |
<link rel='shortcut icon' href='{Favicon}'> | |
<link rel='alternate' type='application/rss+xml' href='{RSS}'> | |
<meta name='description' content='{MetaDescription}'> | |
<meta name='color:Link' content='#6699cc'> |
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
function fnValidate() | |
{ | |
var aFields = | |
{"First Name":"sFirst", | |
"Last Name":"sLast", | |
"DRI Affiliation":"sAffil1", | |
"DRI Email":"sEmail_DRI"}; | |
var bValid = 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
import os | |
import time | |
document = open("My Clippings.txt","r") | |
data = "".join(document.readlines()) | |
notes = [] | |
try: | |
clippings = data.split('==========') | |
for clip in clippings: |
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
# SnipMate is required to use snippets | |
# Download SnipMate: http://www.vim.org/scripts/script.php?script_id=2540 | |
# Put this file in ~/.vim/snippets/ then restart vim | |
# This snippet file includes many useful snippets for CodeIgniter. Please feel free to fork and contribute! | |
snippet php | |
<?php | |
${1} | |
?> | |
snippet ec | |
echo "${1:string}"${2}; |
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
// Prints out a Code 39 barcode in HTML/CSS | |
// $string should be a Code 39-compliant string to encode. | |
// Any characters not in the array below will be discarded. | |
function print_code39_barcode($string) { | |
$code39 = array( | |
'0'=>'NnNwWnWnN', '1'=>'WnNwNnNnW', | |
'2'=>'NnWwNnNnW', '3'=>'WnWwNnNnN', | |
'4'=>'NnNwWnNnW', '5'=>'WnNwWnNnN', | |
'6'=>'NnWwWnNnN', '7'=>'NnNwNnWnW', | |
'8'=>'WnNwNnWnN', '9'=>'NnWwNnWnN', |
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
- simple | |
- public over private | |
- personal vanity | |
- internet is global | |
- permalinks | |
- one important item per page | |
- don't break the browser | |
- don't wanker in technology | |
- a medium is not a grande | |
- break convention for your users |