Skip to content

Instantly share code, notes, and snippets.

@mrtcmn
mrtcmn / workaround.css
Created November 27, 2020 15:04
firefox backdrop-filter workaround
@supports (-webkit-backdrop-filter: none) or (backdrop-filter: none) {
.blurred-container {
-webkit-backdrop-filter: blur(10px);
backdrop-filter: blur(10px);
}
}
/* slightly transparent fallback for Firefox (not supporting backdrop-filter) */
@supports not ((-webkit-backdrop-filter: none) or (backdrop-filter: none)) {
.blurred-container {
jasmine.getEnv().addReporter({
suiteDone() {
// Clear the styles after each test suite.
const head: HTMLHeadElement = document.getElementsByTagName("head")[0];
const styles: HTMLCollectionOf<HTMLStyleElement> = head.getElementsByTagName("style");
for (let i = 0; i < styles.length; i++) {
head.removeChild(styles[i]);
}
}
});
@0gust1
0gust1 / gist:e3db417a3fbdb4e52e46299392d7ee63
Last active September 12, 2023 07:17
Svelte at scale (2018-2019)

Feedbacks on Svelte at scale (2018 - 2019)

(from the trenches, for Xavier and Alexis)

Context :

  • ~8/10 front-end developers working on a "core" ecommerce solution, with various technical levels/experience
  • ~15 (more to come) front-end developers (from different countries) extending/overriding the "core" ecommerce solution, again with various technical level/experience
  • 2 back-end developers maintaining a React widget / microfrontend
  • 2 fullstack developers contributing occasionally.
  • those numbers will evolve as Svelte is spreading in my client's projects ;-)
@fgilio
fgilio / axios-catch-error.js
Last active February 11, 2026 16:18
Catch request errors with Axios
/*
* Handling Errors using async/await
* Has to be used inside an async function
*/
try {
const response = await axios.get('https://your.site/api/v1/bla/ble/bli');
// Success 🎉
console.log(response);
} catch (error) {
// Error 😨
@diyan
diyan / python_qa_automation.md
Last active February 21, 2023 20:33
Learning Python for QA automation tasks

Hello all,

In this gist you may find resources in Russian/English which could be useful for writing Python script for test automation tasks.

What Python runtime I should use?

While Python 3.x (>=3.3) is reccomended for new project development it much better and easier to go with a bit older but rock-solid Python 2.x (>=2.7) for test automation.

Some Python packages comes with binary modules and it much easier to use 32-bit Python under Windows due to this reason.