Skip to content

Instantly share code, notes, and snippets.

View fmp777's full-sized avatar

Darryl fmp777

View GitHub Profile
@fmp777
fmp777 / gist:79c221da53f286b4a0ce99a273ba5e86
Created March 14, 2018 22:37
Accent Folding in Javascript
var accent_map = {
'ẚ':'a','Á':'a','á':'a','À':'a','à':'a','Ă':'a','ă':'a','Ắ':'a','ắ':'a','Ằ':'a','ằ':'a','Ẵ':'a','ẵ':'a','Ẳ':'a','ẳ':'a','Â':'a','â':'a','Ấ':'a','ấ':'a','Ầ':'a','ầ':'a','Ẫ':'a','ẫ':'a','Ẩ':'a','ẩ':'a','Ǎ':'a','ǎ':'a','Å':'a','å':'a','Ǻ':'a','ǻ':'a','Ä':'a','ä':'a','Ǟ':'a','ǟ':'a','Ã':'a','ã':'a','Ȧ':'a','ȧ':'a','Ǡ':'a','ǡ':'a','Ą':'a','ą':'a','Ā':'a','ā':'a','Ả':'a','ả':'a','Ȁ':'a','ȁ':'a','Ȃ':'a','ȃ':'a','Ạ':'a','ạ':'a','Ặ':'a','ặ':'a','Ậ':'a','ậ':'a','Ḁ':'a','ḁ':'a','Ⱥ':'a','ⱥ':'a','Ǽ':'a','ǽ':'a','Ǣ':'a','ǣ':'a',
'Ḃ':'b','ḃ':'b','Ḅ':'b','ḅ':'b','Ḇ':'b','ḇ':'b','Ƀ':'b','ƀ':'b','ᵬ':'b','Ɓ':'b','ɓ':'b','Ƃ':'b','ƃ':'b',
'Ć':'c','ć':'c','Ĉ':'c','ĉ':'c','Č':'c','č':'c','Ċ':'c','ċ':'c','Ç':'c','ç':'c','Ḉ':'c','ḉ':'c','Ȼ':'c','ȼ':'c','Ƈ':'c','ƈ':'c','ɕ':'c',
'Ď':'d','ď':'d','Ḋ':'d','ḋ':'d','Ḑ':'d','ḑ':'d','Ḍ':'d','ḍ':'d','Ḓ':'d','ḓ':'d','Ḏ':'d','ḏ':'d','Đ':'d','đ':'d','ᵭ':'d','Ɖ':'d','ɖ':'d','Ɗ':'d','ɗ':'d','Ƌ':'d','ƌ':'d','ȡ':'d','ð':'d',
'É':'e','Ə':'e','Ǝ':'e','ǝ':'e','é':'e','È':'e','è':
@fmp777
fmp777 / gist:0c74c03f950c9704be5cd568ddfe48ad
Last active April 25, 2019 02:20 — forked from twslankard/gist:637020
Verifying Amazon SNS Notification Signatures
<?php
function verifyPost()
{
// get the raw HTTP post data
$postdata = file_get_contents('php://input');
// the post data is JSON, so let's decode it and grab the various fields
$json = json_decode($postdata);
$subject = $json->Subject;
$message = $json->Message;
@fmp777
fmp777 / History|-12ec2e2c|JMoM.json
Last active May 19, 2022 16:58
Visual Studio Code Settings Sync Gist
{
"compile-hero.less-output-directory": "../css/",
"compile-hero.pug-output-directory": "../css/",
"compile-hero.sass-output-directory": "../css/",
"compile-hero.scss-output-directory": "../css/",
"compile-hero.stylus-output-directory": "../css/",
"compile-hero.typescript-output-directory": "../css/",
"compile-hero.typescriptx-output-directory": "../css/"
}