Skip to content

Instantly share code, notes, and snippets.

Avatar
🙃
keep your “thin slice”

Saleh Abdel Motaal SMotaal

🙃
keep your “thin slice”
View GitHub Profile
@SMotaal
SMotaal / README.md
Created Jun 9, 2020
Emojipedia® Apple iOS 13.3
View README.md

Emojipedia® Apple iOS 13.3

  1. Navigate to https://emojipedia.org/apple/ios-13.3/

  2. Generate the asset manifest by running:

    copy(JSON.stringify(Object.fromEntries([...document.querySelector('ul.emoji-grid').querySelectorAll('img[title][src][srcset]')].map(({title, attributes}, index) => ([attributes.title.value, attributes.srcset.value.replace(/ +\dx$/, '')])))))
@SMotaal
SMotaal / README.md
Created May 20, 2020
How to clean from commits!
View README.md
  1. Clone the repo

    git clone https://github.com/thecraftman/-badging thecraftman-badging
    
  2. Clean the local history

    git filter-branch --force --index-filter "git rm --cached --ignore-unmatch \"[README.md](https:\"/gist.github.com/thecraftman/README.md" --prune-empty --tag-name-filter cat -- --all
    
@SMotaal
SMotaal / json-tokenizer-readme.md
Last active May 2, 2020
Error composing block page
View json-tokenizer-readme.md

JSON Token Matcher

The Matcher-based tokenizer implementation for JSON.

Progress

  • Contextual Definitions — json-definitions.js

    Structured definitions for keywords, goals, symbols… etc, used by the tokenization process.

View es6.ebnf
/* 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>"
View ghostscript-1-fixes.patch
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 Mar 20, 2020 — forked from Chaser324/GitHub-Forking.md
GitHub Standard Fork & Pull Request Workflow
View GitHub-Forking.md

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 Jul 12, 2019
Data URL Header
View README.md

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):

View visually-hidden-audit.csv
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.
View fence-block-closer-comment.md
  • Tokenizing works normally after fenced html block that is empty.

<content></content>
View README.md
<title>smotaal.io/markout</title>

HTML-flavoured markdown-inspired client-side renderer

You can’t perform that action at this time.