Install Anaconda Link: https://www.continuum.io/downloads
-
Check/List installed packages:
Conda list -
Upgrade Conda packages:
conda upgrade conda conda upgrade --all
| import streamlit as st | |
| from langchain_community.document_loaders import PDFPlumberLoader | |
| from langchain_experimental.text_splitter import SemanticChunker | |
| from langchain_community.embeddings import HuggingFaceEmbeddings | |
| from langchain_community.vectorstores import FAISS | |
| from langchain_community.llms import Ollama | |
| from langchain.prompts import PromptTemplate | |
| from langchain.chains.llm import LLMChain | |
| from langchain.chains.combine_documents.stuff import StuffDocumentsChain | |
| from langchain.chains import RetrievalQA |
| #!/usr/bin/env python | |
| from __future__ import print_function | |
| import argparse | |
| import json | |
| import re | |
| import subprocess | |
| import sys |
| #!/mnt/c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe -noexit | |
| # Play a single file | |
| # Usage: | |
| # LINUX: timeout 5 ./playaudio.ps1 "c:\Users\Leon\Downloads\bensound-allthat.mp3" &>/dev/null & | |
| # CMD.EXE: powershell.exe -noexit ./playaudio.ps1 "c:\Users\Leon\Downloads\bensound-allthat.mp3" | |
| Add-Type -AssemblyName presentationCore | |
| $mediaPlayer = New-Object system.windows.media.mediaplayer | |
| $mediaPlayer.open( $args[0] ) | |
| $mediaPlayer.Play() |
Install Anaconda Link: https://www.continuum.io/downloads
Check/List installed packages:
Conda list
Upgrade Conda packages:
conda upgrade conda conda upgrade --all
| <?php | |
| $l = range('a', 'z'); | |
| $alphabets = array( | |
| 'en' => $l, | |
| 'fr' => array_merge($l, array('é', 'à', 'è', 'ù', 'â', 'ê', 'î', 'ô', 'û', 'ç', 'ë', 'ï', 'ü', 'ÿ', 'æ', 'œ')), | |
| 'de' => array_merge($l, array('ä', 'ö', 'ü', 'ß')), | |
| 'es' => array_merge($l, array('ñ', 'ü', 'ch', 'll')), | |
| 'it' => array_merge($l, array('à', 'è', 'é', 'ì', 'í', 'î', 'ò', 'ó', 'ù', 'ú')), | |
| 'pt' => array_merge($l, array('á', 'â', 'ã', 'à', 'ç', 'é', 'ê', 'í', 'ó', 'ô', 'õ', 'ú', 'ü')), | |
| 'el' => array('α', 'β', 'γ', 'δ', 'ε', 'ζ', 'η', 'θ', 'ι', 'κ', 'λ', 'μ', 'ν', 'ξ', 'ο', 'π', 'ρ', 'σ', 'τ', 'υ', 'φ', 'χ', 'ψ', 'ω'), |
| Unicode table - List of most common Unicode characters * | |
| * This summary list contains about 2000 characters for most common ocidental/latin languages and most printable symbols but not chinese, japanese, arab, archaic and some unprintable. | |
| Contains character codes in HEX (hexadecimal), decimal number, name/description and corresponding printable symbol. | |
| What is Unicode? | |
| Unicode is a standard created to define letters of all languages and characters such as punctuation and technical symbols. Today, UNICODE (UTF-8) is the most used character set encoding (used by almost 70% of websites, in 2013). The second most used character set is ISO-8859-1 (about 20% of websites), but this old encoding format is being replaced by Unicode. | |
| How to identify the Unicode number for a character? | |
| Type or paste a character: |
So, you've created a Python app (be it a graphical user interface with Qt or the like, or a simple command line interface). Great! But how are others going to use it? Python applications often have dependencies (e.g. from third-party modules), and they also need a Python interpreter to run them. For a developer, installing all the necessary bits and bobs to make things work is okay, but that's unacceptable for a normal user - they just want to download the thing and run it.
Below are simple instructions to publish your app on the three main operating systems: Windows, macOS and Linux.
| """ | |
| Minimal character-level Vanilla RNN model. Written by Andrej Karpathy (@karpathy) | |
| BSD License | |
| """ | |
| import numpy as np | |
| # data I/O | |
| data = open('input.txt', 'r').read() # should be simple plain text file | |
| chars = list(set(data)) | |
| data_size, vocab_size = len(data), len(chars) |
Thanks everyone for commenting/contributing! I made this in college for a class and I no longer really use the technology. I encourage you all to help each other, but I probably won't be answering questions anymore.
This article is also on my blog: https://emilykauffman.com/blog/install-anaconda-on-wsl
Note: $ denotes the start of a command. Don't actually type this.
x86_64.sh. If I had a 32-bit computer, I'd select the x86.sh version. If you accidentally try to install the wrong one, you'll get a warning in the terminal. I chose `Anaconda3-5.2.0-Li