Skip to content

Instantly share code, notes, and snippets.

Avatar

jakub-g jakub-g

View GitHub Profile
@jakub-g
jakub-g / README.md
Last active Jun 2, 2020
Deprecation Dailymotion postMessage API
View README.md

Context

If you landed on this page, you probably found a message like this in your logs:

This page is using deprecated Dailymotion postMessage API communication format that will be soon removed.
Please update your code. See https://gist.github.com/jakub-g/89613ccf35a98577ab9c8b9f20955eab for details.

Two possibilities

@jakub-g
jakub-g / loggers.txt
Created May 29, 2020
Filter out annoying loggers Chrome DevTools
View loggers.txt
-cookie -sourcemap -corb -cors
@jakub-g
jakub-g / _1_index.md
Last active May 16, 2020
Trójka LP3 1998 Kazik
View _1_index.md
@jakub-g
jakub-g / es2016+.md
Last active May 14, 2020
UC browser vs Chromium: Kangax ES2016+ tests
@jakub-g
jakub-g / gist:b7b54852011dfd8d708fa88300452f5a
Created May 12, 2020
Samsung TV browser and Samsung TV webview useragent strings
View gist:b7b54852011dfd8d708fa88300452f5a
Samsung Browser:
----------------
Mozilla/5.0 (SMART-TV; Linux; Tizen 5.0) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/2.2 Chrome/63.0.3239.84 TV Safari/537.36
Mozilla/5.0 (SMART-TV; Linux; Tizen 4.0) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/2.1 Chrome/56.0.2924.0 TV Safari/537.36
Samsung WebView:
----------------
Mozilla/5.0 (SMART-TV; LINUX; Tizen 5.0) AppleWebKit/537.36 (KHTML, like Gecko) Version/5.0 TV Safari/537.36
@jakub-g
jakub-g / string-replace-nodejs-in-bash.sh
Created Apr 20, 2020
Use nodejs in bash script for string manipulation
View string-replace-nodejs-in-bash.sh
$ echo "FOO_BAR" | node -p 'require("fs").readFileSync(process.stdin.fd, "utf-8").replace("_", "..")'
FOO..BAR
View Intl.DateTimeFormat.js
new Intl.DateTimeFormat('en-GB', {timeZone: 'Europe/Paris',
year: 'numeric',
month: 'long',
day: 'numeric',
hour: 'numeric',
minute: 'numeric'
}).format(new Date())
// "17 April 2020, 17:03"
@jakub-g
jakub-g / filter.txt
Created Apr 15, 2020
vscode exclude filters
View filter.txt
*.spec.js*, bin, tools, *webpack*, spec/*, karma*
View safari-release-notes-history+stable-technical-preview-mapping.md
You can’t perform that action at this time.