Skip to content

Instantly share code, notes, and snippets.

View alexandracaulea's full-sized avatar
🎯
Focusing

Alexandra Caulea alexandracaulea

🎯
Focusing
View GitHub Profile
@alexandracaulea
alexandracaulea / auth.d.ts
Created October 5, 2022 07:42
Firebase auth error codes
/**
* Enumeration of Firebase Auth error codes.
*
* @internal
*/
// File location: ""node_modules/@firebase/auth/dist/auth.d.ts" "
declare const enum AuthErrorCode {
ADMIN_ONLY_OPERATION = "admin-restricted-operation",
ARGUMENT_ERROR = "argument-error",
APP_NOT_AUTHORIZED = "app-not-authorized",
const path = require('path');
module.exports = {
entry: './app.js',
output: {
path: path.resolve(__dirname),
filename: 'bundle.js',
},
mode: 'development',
};
@tailwind base;
@tailwind components;
@tailwind utilities;
@layer components {
h1 {
@apply text-2xl;
}
h2 {
  • Ruler Measurement
  • Dimensions
  • WhatFont
  • Auto Close Tag
  • Auto Rename Tag
  • vscode-language-babel
  • Better Comments
  • Bracket Pair Colorizer
  • vscode-ext-color-highlight
  • CSS Peek
  • CssTriggers
  • VS Code ESLint extension
  • Git Graph extension for Visual Studio Code
{
"terminal.integrated.shellArgs.windows": ["-ExecutionPolicy", "Bypass"],
"editor.tabSize": 2,
"terminal.integrated.shell.windows": "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe",
"liveServer.settings.donotShowInfoMsg": true,
"workbench.sideBar.location": "left",
"editor.formatOnSave": true,
// "eslint.autoFixOnSave": true,
// "[javascript]": {
// "editor.formatOnSave": false
@alexandracaulea
alexandracaulea / useful-vscode-extensions.md
Last active October 14, 2020 04:39
Useful VS Code Extensions
  • Auto Close Tag
  • Auto Rename Tag
  • vscode-language-babel
  • Better Comments
  • Bracket Pair Colorized
  • Browser Preview for VS Code
  • Code Runner
  • vscode-ext-color-highlight
  • Draw.io VS Code Integration
  • Formatting Toggle
@alexandracaulea
alexandracaulea / eslint-prettier-vscode-configuration.md
Last active December 1, 2019 11:51
ESLint + Prettier + VS Code Configuration
  1. Install ESLint and Prettier - Code formatter for VS Code.
  2. Run npm init -y to create a package.json file in your working directory.
  3. Install ESLint as a dev dependencies: npm i -D eslint.
  4. Run: .\node_modules\.bin\eslint --init and choose the following options:
  • How would you like to use ESLint? To check syntax, find problems, and enforce code style
  • What type of modules does your project use? JavaScript modules (import/export)
  • Which framework does your project use? None of these
  • Does your project use TypeScript? No
  • Where does your code run? Browser
  • How would you like to define a style for your project? Use a popular style guide
[
{
"author": "Chinua Achebe",
"country": "Nigeria",
"imageLink": "images/things-fall-apart.jpg",
"language": "English",
"link": "https://en.wikipedia.org/wiki/Things_Fall_Apart\n",
"pages": 209,
"title": "Things Fall Apart",
"year": 1958

Git

Is a way to track and backup our code. A repository is a way to track and backup our code.

Working Directory

Area where all our files and directories and changes are living.

Staging Area