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 / 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",
@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 / helpful.md
Created July 1, 2021 18:15
Helpful Scripts

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 / 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
@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 / 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 / ZenhubEstimates.js
Last active July 7, 2019 16:05
Get all Zenhub estimate totals from any given board.
var groupedEstimates = {}
// get all pipelines
var allPipelines = document.querySelectorAll('.zhc-pipeline')
allPipelines.forEach((pipeline) => {
const key = (pipeline.querySelector('div.zhc-pipeline-header__info') || {}).innerText
if (key) {
// initialise properties for each pipeline
groupedEstimates[key] = {}
@EmilyRosina
EmilyRosina / ZenhubEstimates.js
Created July 7, 2019 15:58
Get all Zenhub estimate totals from any given board.
var groupedEstimates = {}
// get all pipelines
var allPipelines = document.querySelectorAll('.zhc-pipeline')
allPipelines.forEach((pipeline) => {
const key = (pipeline.querySelector('div.zhc-pipeline-header__info') || {}).innerText
if (key) {
groupedEstimates[key] = {}
// initialise properties for each pipeline
@EmilyRosina
EmilyRosina / VSCode_keybindings.json
Created November 21, 2018 11:54
VS Code keybindings
// Place your key bindings in this file to overwrite the defaults
[
{
"key": "ctrl+d",
"command": "editor.action.copyLinesDownAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+shift+alt+down",
"command": "-editor.action.copyLinesDownAction",