This file contains 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
{ | |
"vim.easymotion": true, | |
"vim.incsearch": true, | |
"vim.insertModeKeyBindings": [{ "before": ["j", "k"], "after": ["<Esc>"] }], | |
"vim.useSystemClipboard": true, | |
"vim.overrideCopy": false, | |
"vim.useCtrlKeys": false, | |
"vim.handleKeys": { | |
"<C-BS>": false, | |
"<C-d>": false |
This file contains 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
import type { NextPage } from 'next'; | |
import type { LightGallery } from 'lightgallery/lightgallery'; | |
import Image, { ImageLoaderProps } from 'next/future/image'; | |
import Masonry from 'react-masonry-css'; | |
// Import lightgallery with a couple nice-to-have plugins | |
import LightGalleryComponent from 'lightgallery/react'; | |
import 'lightgallery/css/lightgallery.css'; |
This file contains 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
/** THIS FILE THROWS AN ERROR! */ | |
import type { GetServerSideProps } from "next"; | |
import { getFileExistence, formatResult } from './file-utils.ts' | |
type Props = { | |
doesFileExist: boolean; | |
}; |
This file contains 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 myArray = [20, 30, 40]; | |
console.log(myArray[3]); |
This file contains 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 objectVariable = { | |
property1: 'i am property 1'; | |
property2: 'i am property 2'; | |
property3: [20, 30, 40]; | |
}; | |
console.log(objectVariable.property3[2]); |
This file contains 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 variable1 = 20; | |
const variable2 = '40'; | |
const resultVariable = variable1 + variable2; | |
console.log(resultVariable); |
This file contains 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 some Number = 20; | |
someNumber = 50 |
This file contains 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
// This is a JavaScript comment. It doesn't affect the code at all | |
// Here, we are selecting the <body></body> HTML tag | |
const htmlBody = document.querySelector("body"); | |
// This is a function | |
const randomClickFunction = function () { | |
// This is an array of color codes. | |
const colors = ["#002942", "#0CA7DB", "#F56C05", "#DB3E00", "purple"]; | |
// This will calculate a random "index" that we can use to select a color in the array |
This file contains 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 nestedObject = { | |
layerOne: { | |
layerTwo: { | |
layerThree: { | |
layerFour: { | |
layerFive: { | |
theValueWeWant: 'here is my value' | |
} | |
} | |
} |
This file contains 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 nestedObject = { | |
layerOne: { | |
layerTwo: { | |
layerThree: { | |
layerFour: { | |
layerFive: { | |
theValueWeWant: 'here is my value' | |
} | |
} | |
} |
NewerOlder