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
{- | |
Arabic to Hebrew transliteration app (runs in a web browser, basic demo) | |
Copyright (C) 2021 Elsanussi Mneina | |
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. | |
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. | |
You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>. | |
-} |
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
-- An example of converting text in | |
-- tab separated values | |
-- into a list of tuples of strings. | |
-- Written on October 26, 2021 | |
-- by Elsanussi Mneina | |
import Html exposing (text) | |
import String | |
inputText = """ | |
a\tb |
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
module Main exposing (..) | |
import Browser | |
import Html exposing (Html, Attribute, button, div, text) | |
import Html.Events exposing (onClick, onInput) | |
import Html.Attributes exposing (..) | |
-- LIB |
This file has been truncated, but you can view the full file.
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
module Unicode14Constants exposing (..) | |
-- Note: in order to make compile times bearable. | |
-- delete all the consonants you do not intend to use. | |
-- based on unicode 14.0.0 according to ucd.nounihan.flat.xml | |
-- this file is intended to be used when you want to use unicode characters but have trouble | |
-- rememberbing the specific code point. instead you just copy the constants you need, | |
-- and refer to them by their more memorable names. | |
-- do whatever you want with this code. i have not verified it beyond ensuring that it compiles with the elm compiler. |
This file has been truncated, but you can view the full file.
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
// based on unicode 14.0.0 according to ucd.nounihan.flat.xml | |
// this file is intended to be used when you want to use unicode characters but have trouble | |
// rememberbing the specific code point. instead you just copy the constants you need, | |
// and refer to them by their more memorable names. | |
// do whatever you want with this code. I have not verified it beyond ensuring that it compiles with the Dart compiler. | |
const nullCharacter = '\u0000'; // Had to change the name because | |
// null is a reserved word in Dart programming language. |
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
// MIT License: | |
// Copyright 2021 Elsanussi S. Mneina | |
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | |
// The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | |
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH |
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
// MIT License: | |
/* | |
Copyright 2021 Elsanussi S. Mneina | |
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | |
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | |
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFT |
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 'package:flutter/material.dart'; | |
// Programmed by Elsanussi Mneina | |
// How to run this program. | |
// If you don't want to install anything, | |
// 1. Go to dartpad.dev in your web browser. | |
// 2. Copy all this source code that is here. | |
// 3. Paste it into the dartpad.dev window replacing | |
// the source code that is already there. |
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
// Run this in the Go playground | |
// This is a reimplementation of the parser combinators in the book "Programming in Haskell" by Graham Hutton | |
// ISBN 978-0-521-69269-4 | |
// This is my interpretation of it using Go instead of Haskell. | |
// File started on September 29, 2021 by Elsanussi Mneina | |
package main | |
import ( |