Skip to content

Instantly share code, notes, and snippets.

View EmilyRosina's full-sized avatar
🦄
Vue Nerd

Aurora Skye EmilyRosina

🦄
Vue Nerd
View GitHub Profile
@pauloportella
pauloportella / conventional-comments.md
Last active June 5, 2024 20:45
How to setup conventional comments on Github

Conventional comments

Source

You can add all conventional comments Labels to Github as a saved replies by following the following steps:

  1. Go to https://github.com/settings/replies
  2. Open Developer Tools
  3. Copy/Paste above code in JavaScript console
  4. Press enter
@plinionaves
plinionaves / rollup.config.js
Created April 14, 2021 01:24
rollup + rollup-plugin-vue + scss + postcss
/* 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'
@dcts
dcts / workbench.colorCustomizations.json
Created April 14, 2020 16:51 — forked from jacklorusso/workbench.colorCustomizations.json
A list of all Visual Studio Code customizable colors, grouped by UI region. Copy and paste into User Settings (comments are allowed) to tweak an existing theme or work on your own.
"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": "",
@panoply
panoply / equal-width.md
Last active May 3, 2024 14:27
2 column full width table for github markdown

Equal widths

Github markdown full-width 2 column table.

@wdmtech
wdmtech / remove-console-statements-in-vue.md
Last active September 19, 2019 01:25
Vue config for latest vue-cli-service to strip out/remove console statements in production environments

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"
},
@pabloleonalcaide
pabloleonalcaide / checkImageExist.js
Created May 17, 2018 08:08
Check if a image file exists with Javascript
/**
* 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 {
@ezidio
ezidio / jest.config.js
Created March 2, 2018 12:01
Jest transformer to work with webpack's require.context
module.exports = {
verbose: true,
moduleDirectories: ['node_modules'],
transform: {
'\\.js$': '<rootDir>/../build/utils/webpack_polyfill'
}
}
@tillig
tillig / RetroactiveTag.sh
Created January 3, 2017 20:12
Retroactively tag a git commit
# 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"
@motss
motss / browser-support-for-Github.md
Last active July 23, 2019 05:01
Browser Support in Markdown for Github

Microsoft Windows x64

| Internet Explorer | Microsoft Edge | Mozilla Firefox |

@markknol
markknol / browser-support-table.md
Last active July 11, 2020 15:50
Browser support table in markdown

Table

Chrome Firefox IE Opera Safari
Latest ✔ Latest ✔ 10+ ✔ Latest ✔ 6.1+ ✔

Code

![Chrome](https://raw.github.com/alrra/browser-logos/master/chrome/chrome_48x48.png) | ![Firefox](https://raw.github.com/alrra/browser-logos/master/firefox/firefox_48x48.png) | ![IE](https://raw.github.com/alrra/browser-logos/master/internet-explorer/internet-explorer_48x48.png) | ![Opera](https://raw.github.com/alrra/browser-logos/master/opera/opera_48x48.png) | ![Safari](https://raw.github.com/alrra/browser-logos/master/safari/safari_48x48.png)