Skip to content

Instantly share code, notes, and snippets.

View adielBm's full-sized avatar

Adiel Bm adielBm

  • Jerusalem, Israel
View GitHub Profile
@adielBm
adielBm / arabicToHebrew.js
Last active August 30, 2023 13:20
arabicToHebrew
const YOUR_TEXT = "كتاب العين للخليل بن أحمد الفراهيدي"
function arabicToHebrew(str) {
const mapping = {
"ا": "א",
"ب": "ב",
"ج": "ג'",
"د": "ד",
"ذ": "ד'",
"ه": "ה",
@adielBm
adielBm / ipa-for-google-translate.js
Last active May 1, 2024 14:23
ipa for google-translate
function getIPA(str) {
const mapping = {
"oi": "ɔɪ",
"ou": "aʊ",
"ô": "ɔ",
"ä": "ɑ",
"a": "æ",
"æʊ": "aʊ",
"i": "ɪ",
"ē": "i",
@adielBm
adielBm / shops.js
Created July 14, 2022 11:42
get Coordinates By Address
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;
}