This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
aws ecs execute-command --cluster dev-ecs --task TASK_ID --interactive --command sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// node.js | |
import 'mock-local-storage'; | |
localStorage.setItem('some-value'); | |
/* | |
In browser environment, this should throw TypeError: | |
Uncaught TypeError: Failed to execute 'setItem' on 'Storage': 2 arguments required, but only 1 present | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// first approach: MutationObserver | |
!(function () { | |
// IIFE | |
const serverEndpoint = 'http://localhost:3000//get-report/'; | |
if (!typeof MutationObserver === 'function') { | |
// second approach - using DOMSubtreeModified event (buggy, unstable and deprecated for MutationObserver API) | |
document.body.addEventListener('DOMSubtreeModified', (e) => { | |
const data = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Hello XXXXXX | |
I appreciate your email. | |
I would like to know if you could help me with the following. | |
I require a time estimation for production-ready product and estimated cost. | |
The application should be available via web browser (all browsers should be supported, including Internet Explorer version 6+) - as the customers includes also financial groups, i.e. banks. | |
It should support all modern frameworks: Angular, React, PHP and jQuery. | |
It should be fully compatible with all modern libraries like moment.js, node.js, typescript and java. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fs = require('fs'); | |
const watch = require('node-watch'); | |
const { execSync } = require('child_process'); | |
const StaticServer = require('static-server'); | |
const walker = function(dir, fn) { | |
const files = fs.readdirSync(dir); | |
files.forEach((file) => { | |
if (fs.statSync(dir + '/' + file).isDirectory()) { | |
walker(dir + '/' + file + '/', fn); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"plugins": ["transform-decorators-legacy"] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// code | |
const foo = function(target) { | |
target.prototype.foo = function() { | |
console.log("foo"); | |
} | |
} | |
const bar = function(myText) { | |
return function(target) { |