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 { writeFile, readFile } from 'node:fs'; | |
import fetch from "node-fetch"; | |
async function getCoordinatesByAddress(address) { | |
const api = `https://maps.googleapis.com/maps/api/geocode/json?address=${address}&key=MY_API_KEY`; | |
const response = await fetch(api); | |
const data = await response.json(); | |
return data; | |
} |
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
// ==UserScript== | |
// @name IPA for translate.google | |
// @namespace https://gist.github.com/adielBm/21762fe5e964071cb820a0c46896da34 | |
// @version 2024-06-27 | |
// @description Convert phonetic transcription to IPA on Google Translate | |
// @author adielBm | |
// @match https://translate.google.com/* | |
// @grant none | |
// @updateURL https://gist.githubusercontent.com/adielBm/21762fe5e964071cb820a0c46896da34/raw | |
// @downloadURL https://gist.githubusercontent.com/adielBm/21762fe5e964071cb820a0c46896da34/raw |
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
const YOUR_TEXT = "كتاب العين للخليل بن أحمد الفراهيدي" | |
function arabicToHebrew(str) { | |
const mapping = { | |
"ا": "א", | |
"ب": "ב", | |
"ج": "ג'", | |
"د": "ד", | |
"ذ": "ד'", | |
"ه": "ה", |