You can add all conventional comments Labels to Github as a saved replies by following the following steps:
- Go to https://github.com/settings/replies
- Open Developer Tools
- Copy/Paste above code in JavaScript console
- Press enter
This file contains hidden or 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 my_element = document.getElementById('#my-element) | |
jest.spyOn(my_element, "getBoundingClientRect").mockImplementation( | |
() => { | |
return new DOMRect(0, 0, 100, 500) //100px wide, 500px tall | |
} | |
) |
This file contains hidden or 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
/* eslint-disable @typescript-eslint/no-var-requires */ | |
import { terser } from 'rollup-plugin-terser' | |
import alias from '@rollup/plugin-alias' | |
import babel from '@rollup/plugin-babel' | |
import commonjs from '@rollup/plugin-commonjs' | |
import minimist from 'minimist' | |
import postcss from 'rollup-plugin-postcss' | |
import replace from '@rollup/plugin-replace' | |
import resolve from '@rollup/plugin-node-resolve' | |
import typescript from 'rollup-plugin-typescript2' |
This file contains hidden or 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
"workbench.colorCustomizations": { | |
// Contrast Colors - The contrast colors are typically only set for high contrast themes. If set, they add an additional border around items across the UI to increase the contrast. | |
"contrastActiveBorder": "", | |
"contrastBorder": "", | |
// Base Colors | |
"focusBorder": "", | |
"foreground": "", | |
"widget.shadow": "", | |
"selection.background": "", | |
"descriptionForeground": "", |
But the solution’s not beautiful 🙈
There’s a bug with uglify-es
, which requires using the following in your package.json to force dependencies to use this version:
"resolutions": {
"uglify-es": "3.3.9"
},
This file contains hidden or 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
/** | |
* Checking if an image exist in your image folder | |
*/ | |
let loadImage = function(variable){ | |
var image = new Image(); | |
var url_image = './ImageFolder/' + variable + '.jpg'; | |
image.src = url_image; | |
if (image.width == 0) { | |
return `<img src='./ImageFolder/defaultImage.jpg'>`; | |
} else { |
This file contains hidden or 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
module.exports = { | |
verbose: true, | |
moduleDirectories: ['node_modules'], | |
transform: { | |
'\\.js$': '<rootDir>/../build/utils/webpack_polyfill' | |
} | |
} |
This file contains hidden or 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
# From http://stackoverflow.com/questions/21738647/change-date-of-git-tag-or-github-release-based-on-it | |
git checkout SHA1_OF_PAST_COMMIT | |
GIT_COMMITTER_DATE="$(git show --format=%aD | head -1)" git tag -a v0.9.33 -m"Retroactively tagging version 0.9.33" |
NewerOlder