Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View rxaviers's full-sized avatar

Rafael Xavier de Souza rxaviers

View GitHub Profile
  • Date of birth (date only input)
  • Credit card month-year: date only input
  • 8Ball range date picker: date only input
"day/month/year"

I was curious to see how native browsers (desktop and mobile) behave against the tests of this repo. I am taking the liberty to post the results in here in case anyone else has the same question. Therefore, ignoring the shim [1] we have the following results.

Important This issue is only a placeholder for the tests against native browsers that are running without js-iso8601 shim. Therefore, it doesn't represent bugs to this library.

Desktop

Mac Chrome 56.0 Mac Firefox 50.0 Mac Safari 8 Win10 Edge 14 Win8 IE 11 Win8 IE10 Mac Opera 42
bs_macyos_chrome_56 0 bs_macyos_firefox_50 0 bs_macyos_safari_8 0 ![bs_win10_edge_14 0](htt
@rxaviers
rxaviers / README.md
Last active December 12, 2016 17:20
Simple-hack to open all hidden messages on a github pull request

Open your web console and type the following

$(':not(.open) .discussion-item-toggle-open').click()
commit dc4986747f50003c4093bb17ddb22813ce16ac6f
Author: Nikola Kovacs <nikola.kovacs@gmail.com>
Date: Wed Nov 2 12:37:28 2016 +0100
diff --git a/compiler.js b/compiler.js
index d0f9b1a..3cd2e44 100644
--- a/compiler.js
+++ b/compiler.js
@@ -1,51 +1,85 @@
-var reserved = require('reserved-words');
@rxaviers
rxaviers / output.diff
Created August 29, 2016 23:49
Comparing `ConcatSource` between `webpack-core@0.6.8` (equivalent date of `webpack@1.13.2`) vs `webpack-sources@0.1.2`
--- node_modules/webpack-core/lib/ConcatSource.js 2015-04-20 15:15:20.000000000 -0300
+++ node_modules/webpack-sources/lib/ConcatSource.js 2016-01-30 10:03:32.000000000 -0200
@@ -28,7 +28,9 @@
ConcatSource.prototype.size = function() {
return this.children.map(function(item) {
return typeof item === "string" ? item.length : item.size();
- }).reduce(function(sum, s) { return sum + s; }, 0);
+ }).reduce(function(sum, s) {
+ return sum + s;
+ }, 0);

First install globalize and cldr-data:

npm install globalize cldr-data

Then, run node

node

And:

@rxaviers
rxaviers / gist:c3ae6ae6596ca029d6c5
Last active March 17, 2016 10:25
Globalize App example using webpack - only using Date and Number formatters
Foo
@rxaviers
rxaviers / examples.js
Created January 28, 2016 12:42
Testing Intl.Locale API draft zbraniecki:locale-api https://github.com/tc39/ecma402/compare/master...zbraniecki:locale-api
Intl.getParentLocales('en-IN');
// ['en-IN', 'en'] (wrong, it ignores parent locale 'en-001')
// Expected ['en-IN', 'en-001', 'en', 'root'].
// see http://www.unicode.org/reports/tr35/#Parent_Locales
Intl.getParentLocales('zh-TW');
// ['zh-TW', 'zh'] (wrong, it should begin at 'zh-Hant', note 'zh' is the default bundle for a diff script 'zh-Hans').
// Expected ['zh-Hant', 'root'].
Intl.getParentLocales('zh');
diff --git a/config.json b/config.json
index b103187..7fe099f 100644
--- a/config.json
+++ b/config.json
@@ -3,13 +3,13 @@
{
"version": "1.12.0-beta.1",
"dependsOn": "jQuery1.7+",
- "label": "preview"
+ "label": "Stable",
commit 0c5382bde9bb90871b56125b9490c1e851229069
Author: Rafael Xavier de Souza <rxaviers@gmail.com>
Date: Thu Jan 7 14:02:18 2016 -0200
Config: Preview 1.12.0-beta.1
diff --git a/config.json b/config.json
index b057ba4..b103187 100644
--- a/config.json
+++ b/config.json