which pdflatex- Update the native TeX Live Manager itself and all aviable packages
| const e2p = s => s.replace(/\d/g, d => '۰۱۲۳۴۵۶۷۸۹'[d]) | |
| const e2a = s => s.replace(/\d/g, d => '٠١٢٣٤٥٦٧٨٩'[d]) | |
| const p2e = s => s.replace(/[۰-۹]/g, d => '۰۱۲۳۴۵۶۷۸۹'.indexOf(d)) | |
| const a2e = s => s.replace(/[٠-٩]/g, d => '٠١٢٣٤٥٦٧٨٩'.indexOf(d)) | |
| const p2a = s => s.replace(/[۰-۹]/g, d => '٠١٢٣٤٥٦٧٨٩'['۰۱۲۳۴۵۶۷۸۹'.indexOf(d)]) | |
| const a2p = s => s.replace(/[٠-٩]/g, d => '۰۱۲۳۴۵۶۷۸۹'['٠١٢٣٤٥٦٧٨٩'.indexOf(d)]) | |
| // https://stackoverflow.com/a/58157015/10321531 |
| from pathlib import Path | |
| def parse_tree_structure(tree_str: str): | |
| """Parse tree-like structure and return list of directories and files as Paths.""" | |
| lines = [line.split('#')[0].rstrip() for line in tree_str.strip().splitlines()] | |
| cleaned_lines = [line for line in lines if line.strip()] | |
| paths = [] | |
| path_stack = [] |
| !ffmpeg -i file.m4a file.wav | |
| import os | |
| os.environ["PYTORCH_CUDA_ALLOC_CONF"] = "expandable_segments:True" | |
| # torch must be loaded after the env setup | |
| import torch | |
| torch.cuda.empty_cache() | |
| from transformers import AutoModelForSpeechSeq2Seq, AutoProcessor, pipeline | |
| from datasets import load_dataset |
| import sys | |
| import os | |
| while ".gitignore" not in os.listdir(): | |
| os.chdir("..") | |
| root_path = os.getcwd() | |
| if root_path not in sys.path: | |
| sys.path.append(root_path) |
| /* eslint-disable @typescript-eslint/no-explicit-any */ | |
| import { | |
| ReactNode, | |
| RefAttributes, | |
| cloneElement, | |
| createElement, | |
| isValidElement, | |
| } from 'react'; | |
| export default function Z() { |
| # !pip install python-slugify pytube -q | |
| from pytube import Playlist | |
| from slugify import slugify | |
| playlist_url = 'https://www.youtube.com/playlist?list=PLUl4u3cNGP63Wy1oqQW2oD2HBdDSY8Ghi' | |
| playlist = Playlist(playlist_url) | |
| print(f'Downloading: {playlist.title}') | |
| output_dir = slugify(playlist.title) |
| function dns { | |
| if [[ $1 == "shecan" ]] | |
| then | |
| networksetup -setdnsservers Wi-Fi 178.22.122.100 185.51.200.2 | |
| echo "[Shecan] dns has been set accrodingly" | |
| elif [[ $1 == "radar" ]] | |
| then | |
| networksetup -setdnsservers Wi-Fi 10.202.10.10 10.202.10.11 | |
| echo "[Radar game] dns has been set accrodingly" | |
| elif [[ $1 == "electro" ]] |
| window.discordRef = Object.keys(window.discordRef).length ? window.discordRef : {}; | |
| function debounceEvent(callback, time) { | |
| let interval; | |
| return () => { | |
| clearTimeout(interval); | |
| interval = setTimeout(() => { | |
| interval = null; |
Copy and paste each block of code to your colab notebook and run them all so you can save data in your postgres database and query (retierive) data from it.
%%bash
# Install postgresql server
sudo apt-get -y -qq update
sudo apt-get -y -qq install postgresql