This guide will help you set up Quarto, Visual Studio Code, and Python for literate programming (also known as entangling) on Windows.
- Windows operating system
- Python installed
- Visual Studio Code installed
param ( | |
[string]$playlistID | |
) | |
if (-not $playlistID) { | |
Write-Host "Please provide a playlist ID as a command-line argument." | |
exit 1 | |
} | |
# Define the playlist URL and output file |
from pylatexenc.latex2text import LatexNodes2Text | |
from nltk.probability import FreqDist | |
from nltk.corpus import stopwords | |
import argparse | |
import nltk | |
def analyze_word_frequency(filename, words_to_check): | |
"""Analyzes word frequency in a LaTeX document. |
import os | |
import sys | |
def is_binary(filename): | |
""" | |
Check if the file is binary. A file is considered binary if it contains a null byte | |
within the first 1024 bytes of its content. | |
you may run | |
FOR /F "tokens=*" %G IN ('python find_binary.py .') DO del "%G" |
This tutorial was originally written by Jannie Theunissen on onesheep.org. However, the website has been down for a while and this a clone from the web.archive.org backup. Also, the parts regarding the macOS are updated according to this post. You may find OneSheep here on Twitter and Jannie Theunissen here on StackOverflow. If you have any comments on this Gist please poke me here on Twitter, otherwise, I might miss your comments.
We were recently asked to automate some editing tasks for the Spotlight English editors w
config.ini |
This procedure explains how to install MySQL and MySQL Workbench using Homebrew on macOS. This is a fork of these instructions, to make them more concise and solve the issues reported here.
To install MySQL enter :
brew install mysql
brew services start mysql
mysql_secure_installation
and follow the instructions.exe
file with 7zip or any other software you havebin\wxmaxima.exe
, create a shortcut to on your desktop so you can run it easily next timeimport asyncio | |
from telethon.tl.types import ChannelParticipantsKicked | |
from telethon.sync import TelegramClient | |
from telethon.errors import FloodWaitError | |
# Replace these with your own Telegram API ID and Hash | |
api_id = 'YOUR_API_ID' | |
api_hash = 'YOUR_API_HASH' | |
# Replace with the positive integer ID of your group (omit the '-' sign) |