profile
viewpoint
Marek Suscak mareksuscak @codelab303 Kosice, Slovakia https://suscak.com/ Lead Engineer @codelab303; Speaker & Patron at Eastcode Sessions; I teach CS 🖥 and never stop learning👨‍🎓.

mareksuscak/cs50 163

🎓 Harvard CS50x — 2018 solutions 👨‍🏫

dhassaine/reduxless 35

look ma.. no redux

kaisellgren/Animation 28

A Dart library for animating DOM elements on a web page.

iotacss/react-iotacss 23

Stateless React Components for iotaCSS

mareksuscak/asus-pce-n53-linux 23

🤖 Asus PCE-N53 Linux Driver for Kernel versions 3.x, 4.x and 5.x

bsansouci/dojo-europe 16

Starter project for our Europe-wide (+ more) Dojo

mareksuscak/drop 1

💧 Pure SCSS dropdown. Can be used for tooltips as well.

kevinrogerteng/algorithm 0

a set of algorithm practice in Ruby with Specs

mareksuscak/2018-conferences 0

A list of 2018 web development conferences.

mareksuscak/adm-zip-test 0

demonstration of the bug found in fontello-update

delete branch mareksuscak/cs50

delete branch : mareksuscak-patch-1

delete time in a day

push eventmareksuscak/cs50

Marek Suscak

commit sha 13554d84ef01d9fe69d6dd2b32681900eb61d756

Improve Caesar

view details

Marek Suscak

commit sha c6643b6723d7bdf40a25ed78eb1146a216c18f2c

Merge pull request #6 from mareksuscak/mareksuscak-patch-1

view details

push time in a day

PR merged mareksuscak/cs50

Improve Caesar
+15 -3

0 comment

1 changed file

mareksuscak

pr closed time in a day

pull request commentmareksuscak/cs50

bashar

can you provide more context for why you're deleting this file? thanks

basharali1991

comment created time in a day

push eventmareksuscak/cs50

Marek Suscak

commit sha 5ad7834b48be76ea6e9bd0f085bf4ef65a31bf0e

Update README.md

view details

push time in 17 days

push eventmareksuscak/cs50

Marek Suscak

commit sha df17e3ea4e2d67cc92342ca10e65e369da30b9ee

Update README.md

view details

push time in 17 days

push eventmareksuscak/cs50

Marek Suscak

commit sha 303f785c9c1e7b5992f1c5eca1aa9940da02cc10

Update README.md

view details

push time in 17 days

push eventmareksuscak/cs50

Marek Suscak

commit sha d43c3e9b6e015dbb8507148bc93efd099979038e

Update README.md

view details

push time in 17 days

startedahmetb/kubectx

started time in 20 days

startedlocustio/locust

started time in 23 days

startedrakyll/hey

started time in 23 days

startedraunofreiberg/ui-playbook

started time in 23 days

startedsethvargo/gcr-cleaner

started time in 24 days

startedjust-containers/s6-overlay

started time in 24 days

push eventmareksuscak/dotfiles

Marek Suscak

commit sha 6e6c5924d3007b79b406eabaf29bbad8371996bd

Update Brewfile

view details

push time in 24 days

push eventmareksuscak/dotfiles

Marek Suscak

commit sha 3a764baf275f795ff7ac2de59dfdea6514bab44d

Update Brewfile

view details

Marek Suscak

commit sha 20157042ec26172fed7225099cf9199372db2a73

Add pull and filter

view details

push time in 24 days

startedFiloSottile/mkcert

started time in 24 days

startedderailed/k9s

started time in 24 days

startedkudulab/dojo

started time in 24 days

startednotable/notable

started time in 24 days

startedplausible/analytics

started time in 24 days

issue commenti18next/i18next-parser

Parser mangles unicode escape sequences

For anyone who picks this up - if there's a better way to add a non-breaking space, I'm all ears. Tried a slew of different approaches and most of them didn't work well.

mareksuscak

comment created time in a month

issue openedi18next/i18next-parser

Parser mangles unicode escape sequences

<!-- Before you submit an issue we recommend you visit docs or docs or StackOverflow or similar and ask any questions you have or mention any problems you've had getting started with i18next.

Please read this entire template before posting any issue. If you ignore these instructions and post an issue here that does not follow the instructions, your issue might be closed, locked. -->

🐛 Bug Report

This is probably better explained with an example so here you go:

image

To Reproduce

In order to reproduce, just add \u00A0 to any of your strings in a translation file and run the parser.

Expected behavior

The unicode escape sequences must stay intact after parser did its job.

Your Environment

  • runtime version: node v12
  • i18next version: 19.6.0
  • os: Mac

created time in a month

issue commentgatsbyjs/gatsby

301 redirects adding trailing slashes (gatsby build+serve)

We managed to resolve this issue as described in my previous comment. It requires two scripts:

  1. The first step requires running the first part of the script that'll clone all index.html files and move them outside of their parent folder, then rename them to reflect the name of the parent folder + collision prevention suffix needs to be appended since filesystems typically don't allow a folder and a file with the same name to coexist:

Before:

- grantparent
-   parent
-     index.html

After:

- grantparent
-   parent
-     index.html
-   parent.collision.html (this is a clone of the index.html above)
  1. The second step requires uploading the public folder to S3.
  2. The third step requires running the second part of the script which traverses the S3 bucket and removes the collision prevention extension.

Scripts are available here and are loosely based on the gist I shared above:

https://gist.github.com/mareksuscak/e0a94987a24038a3b81f045602f6274b

adrienharnay

comment created time in a month

startedmaxgoedjen/secretive

started time in a month

delete branch mareksuscak/stack-docs

delete branch : patch-1

delete time in 2 months

PR opened elastic/stack-docs

Fix port numbers
+2 -2

0 comment

1 changed file

pr created time in 2 months

push eventmareksuscak/stack-docs

Marek Suscak

commit sha 9091d559eb1735a3457f3515feccd671b7d93c37

Fix port numbers

view details

push time in 2 months

fork mareksuscak/stack-docs

Elastic Stack Documentation

fork in 2 months

startedClivern/Beetle

started time in 2 months

issue commentgatsbyjs/gatsby

301 redirects adding trailing slashes (gatsby build+serve)

We were running into the same issue and the only solution that worked was to ask the marketing team to include a trailing slash and direct all traffic to the "canonical" URL.

Alternatively, you could write an S3 deployment script that would essentially duplicate all index.html files outside of their parent folder and rename them after the parent folder (without an extension).

Keep in mind, this can't be done or tested locally on your machine because that would create conflicting file names on your filesystem but S3 actually supports such a configuration where a folder and a file can share the same name while residing in the same parent directory. This way you could support both URLs and then add a canonical URL link tag that would point at the preferred destination.

adrienharnay

comment created time in 2 months

startedsnabbco/snabb

started time in 2 months

startedpa11y/pa11y-ci

started time in 2 months

startedcurl/curl

started time in 2 months

Pull request review commentlocalForage/localForage

Fix #856: Be more lenient detecting window.fetch, to support polyfills.

 function isIndexedDBValid() {             !/Chrome/.test(navigator.userAgent) &&             !/BlackBerry/.test(navigator.platform); -        var hasFetch =-            typeof fetch === 'function' &&-            fetch.toString().indexOf('[native code') !== -1;+        var hasFetch = typeof fetch === 'function';

I'd, of course, prefer libraries weren't modifying built-in fetch, but I get why it might happen.

Agreed. In our case, it's Fullstory and Sentry that both wrap the native fetch so that they can collect breadcrumbs.

lincolnthree

comment created time in 2 months

Pull request review commentlocalForage/localForage

Fix #856: Be more lenient detecting window.fetch, to support polyfills.

 function isIndexedDBValid() {             !/Chrome/.test(navigator.userAgent) &&             !/BlackBerry/.test(navigator.platform); -        var hasFetch =-            typeof fetch === 'function' &&-            fetch.toString().indexOf('[native code') !== -1;+        var hasFetch = typeof fetch === 'function';

As an alternative workaround, we could tackle this problem similar to what jQuery.noConflict did.

We could write and document a tiny JS snippet that the user of this library would need to insert before the polyfill that would set a global variable on the window and we could use the global variable in this condition.

Thoughts?

lincolnthree

comment created time in 2 months

startedjaredpalmer/razzle

started time in 2 months

issue commentreach/reach-ui

[Alert] Screen reader sees and reads both alerts when full page read is requested

Can we reopen please? This is definitely still an issue.

mareksuscak

comment created time in 2 months

startedtwilio/video-quickstart-js

started time in 2 months

startedsamuelmeuli/glance

started time in 2 months

Pull request review commentlocalForage/localForage

Fix #856: Be more lenient detecting window.fetch, to support polyfills.

 function isIndexedDBValid() {             !/Chrome/.test(navigator.userAgent) &&             !/BlackBerry/.test(navigator.platform); -        var hasFetch =-            typeof fetch === 'function' &&-            fetch.toString().indexOf('[native code') !== -1;+        var hasFetch = typeof fetch === 'function';

I'm a bit worried that the entire point of checking for a native implementation was to ensure that the script's running in a browser with a native fetch because that's an indication that the given browser supports IndexedDb. This is also known as feature inference.

After we make this change, polyfilling fetch would trick localForage into thinking that IndexedDb is also supported which might not be the case.

lincolnthree

comment created time in 3 months

more