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
@EmilyRosina
EmilyRosina / chrome extension (export)
Last active February 7, 2020 11:34
Stylus: styles backup
[
{
"enabled": true,
"updateUrl": null,
"md5Url": null,
"url": null,
"originalMd5": null,
"installDate": 1579607673481,
"name": "github.com",
"sections": [
@EmilyRosina
EmilyRosina / jsconfig.json
Created November 13, 2020 20:46
VSCode config to get CTRL + click and Class intellisense working everywhere
{
// This file is required for VSCode to understand webpack aliases
"module": "es6",
"moduleResolution": "node",
"compilerOptions": {
"resolveJsonModule": true,
"jsx": "preserve",
"module": "commonjs",
"target": "es5",
"sourceMap": true,
@EmilyRosina
EmilyRosina / import_modules.js
Created May 18, 2021 17:15
Imports several modules dynamically
const requireModule = require.context('.', false, /^\.\/Cy.+\.js$/)
const modules = requireModule.keys().reduce((modules, fileName) => {
const moduleName = fileName.replace(/(\.\/|\.js)/g, '')
return { ...modules, [moduleName]: requireModule(fileName).default }
}, {})
export const components = Object.keys(modules)
export default modules

When moving from one version of node to another via nvm, you can copy across any global dependencies by installing like this:

nvm install 16 --reinstall-packages-from=current

Source

@EmilyRosina
EmilyRosina / helpful.md
Created July 1, 2021 18:15
Helpful Scripts
@EmilyRosina
EmilyRosina / local.gitignore
Last active April 8, 2024 00:10
How to create local git ignore
git config --global core.excludesfile .local.gitignore
# Then add .local.gitignore to the file, so it ignores itself
# whilst also ignoring everything else you put in the file
@EmilyRosina
EmilyRosina / notion-starsigns.txt
Created March 24, 2024 14:19
Notion: Starsigns from birth dates
lets(
birthMonth, month(prop("Birthday")),
birthDay, date(prop("Birthday")),
ifs(
or((birthMonth == 3 AND birthDay >= 21), (birthMonth == 4 AND birthDay <= 19)), "♈️ Aries",
or((birthMonth == 4 AND birthDay >= 20), (birthMonth == 5 AND birthDay <= 20)), "♉️ Taurus",
or((birthMonth == 5 AND birthDay >= 21), (birthMonth == 6 AND birthDay <= 20)), "♊️ Gemini",
or((birthMonth == 6 AND birthDay >= 21), (birthMonth == 7 AND birthDay <= 22)), "♋️ Cancer",
or((birthMonth == 7 AND birthDay >= 23), (birthMonth == 8 AND birthDay <= 22)), "♌️ Leo",
or((birthMonth == 8 AND birthDay >= 23), (birthMonth == 9 AND birthDay <= 22)), "♍️ Virgo",