Skip to content

Instantly share code, notes, and snippets.

View rxaviers's full-sized avatar

Rafael Xavier de Souza rxaviers

View GitHub Profile
@rxaviers
rxaviers / gist:7360908
Last active May 4, 2024 14:14
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
AR.json: "validation_regex": "([A-HJ-NP-Z])?\\d{4}([A-Z]{3})?"
AR.json: "validation_regex": "([A-HJ-NP-Z])?\\d{4}([A-Z]{3})?"
BE.json: "validation_regex": "[1-9]\\d{3}"
BE.json: "validation_regex": "[1-9]\\d{3}"
BN.json: "validation_regex": "[A-Z]{2}[ ]?\\d{4}"
BN.json: "validation_regex": "[A-Z]{2}[ ]?\\d{4}"
BR.json: "validation_regex": "\\d{5}[\\s\\-]?\\d{3}"
BR.json: "validation_regex": "\\d{5}[\\-]?\\d{3}"
CA.json: "validation_regex": "[ABCEGHJKLMNPRSTVXY]\\d[ABCEGHJ-NPRSTV-Z][ ]?\\d[ABCEGHJ-NPRSTV-Z]\\d"
CA.json: "validation_regex": "[ABCEGHJKLMNPRSTVXY]\\d[ABCEGHJ-NPRSTV-Z][ ]?\\d[ABCEGHJ-NPRSTV-Z]\\d"
@rxaviers
rxaviers / gist:c0d16cc91ddb021eb0be5be04c5c06b6
Created October 9, 2018 15:02
Uniqueness of unit part of unit identifier
UTS#35 defines "unit identifier" (https://unicode.org/cldr/trac/changeset/14503) and it implies that the unit identifier is unique, but it does not discuss the uniqueness of the unit.
The unit uniqueness is implied by:
- All units are unique among all existing data (CLDR and spec examples).
- 6.1 per Unit patterns algorithms [1].
Recommended spec updates:
- https://gist.github.com/rxaviers/39223b302264cc4028f46884403da4a0/revisions
Basically:
@rxaviers
rxaviers / README.md
Last active January 8, 2024 00:26
Eugenio (logicalis) streaming
@rxaviers
rxaviers / output
Last active March 25, 2023 18:47
List of all JavaScript timezones (date.toString()) on linux node.js
/usr/share/zoneinfo/Hongkong
> Wed Jan 01 2014 00:00:00 GMT+0800 (HKT)
> Mon Sep 01 2014 00:00:00 GMT+0800 (HKT)
/usr/share/zoneinfo/Pacific/Easter
> Wed Jan 01 2014 00:00:00 GMT-0500 (EASST)
> Mon Sep 01 2014 00:00:00 GMT-0600 (EAST)
/usr/share/zoneinfo/Pacific/Norfolk
> Wed Jan 01 2014 00:00:00 GMT+1130 (NFT)
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="Content-Language" content="en-us">
<link rel="stylesheet" href="http://www.unicode.org/reports/reports.css"
type="text/css">
<title>UTS #35: Unicode LDML: General</title>
This file has been truncated, but you can view the full file.
diff --git a/dist/address-v2.json b/dist/address-v2.json
index 07c169653..01326b042 100644
--- a/dist/address-v2.json
+++ b/dist/address-v2.json
@@ -1,2451 +1,2431 @@
{
"territory": {
"AD": {
"transform_mapping": {
"coarse_to_portable": {
@rxaviers
rxaviers / output.md
Created October 5, 2015 13:51
Reply of

Result of npm ls:

globalize-express-example@1.0.0 /tmp/globalize-express/example
├─┬ cldr-data@28.0.2
│ ├─┬ cldr-data-downloader@0.2.3
│ │ ├── adm-zip@0.4.4
│ │ ├─┬ mkdirp@0.5.0
│ │ │ └── minimist@0.0.8
│ │ ├─┬ nopt@3.0.4

│ │ │ └── abbrev@1.0.7

@rxaviers
rxaviers / out.gif
Last active December 1, 2019 03:24
out.gif

Steps I followed to run https://github.com/noprompt/frak:

  1. Clone repo git clone git@github.com:noprompt/frak.git (@264ec1fa3cfb5e201e98f74b47059ac96ba330d1)

  2. Install lein with npm install lein-bin

  3. Run it with ./node_modules/.bin/lein run -e Mr. Mrs. Ms. Mx. Miss Dr.

  4. I could NOT compile the NodeJS version ./node_modules/.bin/lein do cljx once. Got: