This file contains hidden or 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
| # Convert English text to IPA using eng_to_ipa | |
| # @pnry - version 0.0.1 - public domain | |
| # pip3 install eng_to_ipa | |
| # Usage: | |
| # toIPA(f, 1): paragraph by paragraph with Eng paragraph | |
| # toIPA(f, 0): insert IPA transcription next to word | |
| # Input file | |
| f = "AOP Appendix.fm - sadhu" |
This file contains hidden or 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
| # Move files while preserving its directory structures | |
| # From https://unix.stackexchange.com/a/59159 | |
| FILEext=".*\.\(avi\|mp3\|mp4\)" | |
| SOURCE=/home/d/dev/dev/D/A/ | |
| DEST=/home/d/dev/dev/D/BB/ | |
| mkdir -p "$DEST" |
This file contains hidden or 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
| FROM ghcr.io/renderinc/heroku-app-builder:heroku-22 AS builder | |
| # The FROM statement above triggers the following steps | |
| # 1. Copy the contents of the directory containing this Dockerfile to a Docker image | |
| # 2. Detect the language | |
| # 3. Build the app using the appropriate Heroku buildpack. All Heroku's official buildpacks are supported. |
This file contains hidden or 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 sqlite3 | |
| def stardict_tab_to_sqlite3(tab_file: str) -> None: | |
| # Generated with the support of ChatGPT OpenAI | |
| # 13 Mar 2023 | |
| # Check if the dictionary.db file exists and delete it if it does | |
| if os.path.exists('dictionary.db'): |
This file contains hidden or 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
| // ==UserScript== | |
| // @name MYENMY-Dictionary | |
| // @namespace https://gist.github.com/vpnry/f4d16b7ab71f30f4a6f5d4a3d66bd5da | |
| // @version 2023.04.02.2129 | |
| // @description MEM-Dictionary For Tampermonkey UserScript | |
| // @author uPNRY with the assistance of ChatGPT | |
| // @match http://*/* | |
| // @match https://*/* | |
| // @exclude http://google.com/* | |
| // @exclude https://google.com/* |
This file contains hidden or 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
| /** | |
| * NodeJS script that wrap all words into tags. | |
| * npm install cheerio | |
| * Generated with the help of ChatGPT :) | |
| **/ | |
| const fs = require("fs"); | |
| const path = require("path"); | |
| const cheerio = require("cheerio"); |
This file contains hidden or 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 getClickedWord(e) { | |
| /** Generated with Bing AI ChatGPT */ | |
| var defiEl = document.getElementById("dictionary-res"); | |
| var tocDivBox = document.getElementById("tocDivBox"); | |
| /** Not getting words on these elements */ | |
| if ( | |
| !defiEl.contains(e.target) && | |
| !tocDivBox.contains(e.target) && |
This file contains hidden or 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
| <?php | |
| // Generated with the support of ChatGPT | |
| // This script is to be used with phpwin app on iPadOS | |
| // To add dictionary funtions on the HTML web page | |
| // Check if the user has submitted a URL | |
| if(isset($_POST['url'])) { | |
| // Retrieve the URL from the form input | |
| $url = $_POST['url']; |
This file contains hidden or 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
| const fs = require("fs"); | |
| const PARTS = 10; | |
| // Load the original dictionary from a file | |
| const DICTOBJ = require("./DICTOBJ.js"); | |
| // Split the keys into 4 roughly equal PARTS | |
| const keys = Object.keys(DICTOBJ); | |
| const chunkSize = Math.ceil(keys.length / PARTS); | |
| const chunks = []; |
This file contains hidden or 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
| ''' | |
| Run with | |
| PYTHONPATH=$PYTHONPATH:./fairseq/vits python3 app.py --model_dir LANG --file_path text.txt | |
| LANG is your model language | |
| ''' | |
| # Copyright (c) Facebook, Inc. and its affiliates. | |
| # | |
| # This source code is licensed under the MIT license found in the | |
| # LICENSE file in the root directory of this source tree. |
OlderNewer