Skip to content

Instantly share code, notes, and snippets.

View SMotaal's full-sized avatar
♾️
Making sure I'm not missing something!

Saleh Abdel Motaal SMotaal

♾️
Making sure I'm not missing something!
View GitHub Profile
@SMotaal
SMotaal / es6.ebnf
Created May 2, 2020 13:34 — forked from avdg/es6.ebnf
ES6 bnf grammer - See https://avdg.github.io/es6.xhtml
/* ebnf file for es 6 - MAY CONTAIN ERRORS / DISAMBIGUITY */
Grammer::= Statement
/* Lexical grammer */
SourceCharacter ::= #x0000-#x10FFFF
InputElementDiv ::= WhiteSpace | LineTerminator | Comment | CommonToken | DivPunctuator | RightBracePunctuator
InputElementRegExp ::= WhiteSpace | LineTerminator | Comment | CommonToken | RightBracePunctuator | RegularExpressionLiteral
InputElementRegExpOrTemplateTail ::= WhiteSpace | LineTerminator | Comment | CommonToken | RegularExpressionLiteral | TemplateSubstitutionTail
InputElementTemplateTail ::= WhiteSpace | LineTerminator | Comment | CommonToken | DivPunctuator | TemplateSubstitutionTail
WhiteSpace ::= "<TAB>" | "<VT>" | "<FF>" | "<SP>" | "<NBSP>" | "<ZWNBSP>" | "<USP>"
This file is part of MXE. See LICENSE.md for licensing information.
Contains ad hoc patches for cross building.
diff --git a/configure.ac b/configure.ac
index 1111111..2222222 100644
--- a/configure.ac
+++ b/configure.ac
@@ -146,9 +148,16 @@ if test x"$CCAUX" != x"" ; then
echo $AUXFLAGS_MAK_LINE06 >> $AUXFLAGS_MAK.in
@SMotaal
SMotaal / GitHub-Forking.md
Created March 20, 2020 14:43 — forked from Chaser324/GitHub-Forking.md
GitHub Standard Fork & Pull Request Workflow

Whether you're trying to give back to the open source community or collaborating on your own projects, knowing how to properly fork and generate pull requests is essential. Unfortunately, it's quite easy to make mistakes or not know what you should do when you're initially learning the process. I know that I certainly had considerable initial trouble with it, and I found a lot of the information on GitHub and around the internet to be rather piecemeal and incomplete - part of the process described here, another there, common hangups in a different place, and so on.

In an attempt to coallate this information for myself and others, this short tutorial is what I've found to be fairly standard procedure for creating a fork, doing your work, issuing a pull request, and merging that pull request back into the original project.

Creating a Fork

Just head over to the GitHub page and click the "Fork" button. It's just that simple. Once you've done that, you can use your favorite git client to clone your repo or j

@SMotaal
SMotaal / README.md
Last active July 12, 2019 18:26
Data URL Header

Data URL Header

To extract the specific [<mediatype>][;base64] portions of Data URLs — per MDN's doc — the following aspects were explored:

  1. Hard-coding a specific list of allowed <type>/<subtype> into the expression versus hard-coding only the <type>.

  2. A more complete capture of the *( ";" parameter ) portion — per RFC2397 — returning separately the attribute-value pairs and/or the last base64 portions.

The recommended expression for #28614 would roughly be (pending obvious refinements if will be used):

@SMotaal
SMotaal / fence-block-closer-comment.md
Last active July 7, 2019 13:32
Mysteriously Markdown
  • Tokenizing works normally after fenced html block that is empty.

<content></content>
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 3.
Test name,Link,VoiceOver OSX,VoiceOver iOS,VoiceOver iPad,NVDA,JAWS,IE8,IE9,IE10,Internet Explorer 11 (Windows),Edge (Windows),Google Chrome (Windows),Mozilla Firefox (Windows),Safari (macOS),Google Chrome (macOS),Mozilla Firefox (macOS),Safari (iOS),Google Chrome (iOS),Google Chrome (Android),Samsung Internet (Android)
Control,https://output.jsbin.com/yesilis,As expected,As expected,As expected,As expected,As expected,As expected,As expected,As expected,As expected,As expected,As expected,As expected,As expected,As expected,As expected,As expected,As expected,As expected,As expected
Visually Hidden with CSS,https://output.jsbin.com/xiqohaz,"Visually hidden text in links is always at the front for example: ""link, name Change"".
This is still the same if the visually hidden text is in the middle of the link.
Buttons behave as expected.
","When swiping left and right visually hidden text is read out.
When pressing on links directly visually hidden text is not read out.
@SMotaal
SMotaal / README.md
Created June 19, 2019 14:06
Markout
<title>smotaal.io/markout</title>

HTML-flavoured markdown-inspired client-side renderer

@SMotaal
SMotaal / matchAll.js
Created April 26, 2019 23:51
ES2019: Optimized `matchAll` implementation
export default Function.call.bind(
// /* TODO: Uncomment eventually */ String.prototype.matchAll ||
{
/**
* @this {string}
* @param {RegExp | string} pattern
*/
*matchAll() {
const matcher = arguments[0] && (arguments[0] instanceof RegExp ? arguments[0] : RegExp(arguments[0], 'g'));
const string = String(this);
@SMotaal
SMotaal / README.md
Created April 25, 2018 16:53
TypeScript: Support for experimental ".mjs" output

Getting Started

Installing the forked typescript

  yarn add smotaal/TypeScript

Installing typescript-local

@SMotaal
SMotaal / jsbin-settings.json
Last active March 10, 2019 18:14
Experiment: Globals
{"processors":{}}