Skip to content

Instantly share code, notes, and snippets.

View LarsGKodehode's full-sized avatar

Lars G LarsGKodehode

  • Jobloop
  • Norway, Bergen
View GitHub Profile
@LarsGKodehode
LarsGKodehode / React-Vite-GH-Pages
Created January 9, 2023 12:50
Steps to deploy a Vite React app to GH-Pages
1. Create a GitHub repo and link your project to that ( this is done automatically when creating a repo from inside VS Code ).
2. npm install --save-dev gh-pages
3. Add these two fields to packages.json inside the "scripts" object
"scripts": {
...
"predeploy": "npm run build",
"deploy": "gh-pages -d dist"
...
}
@LarsGKodehode
LarsGKodehode / react-combining-css-classes.jsx
Created January 20, 2023 12:35
React - Component - passing along CSS classes
// Importing the styles from our CSS module
import styles from './component.module.css'
// Since our custom components don't have the className field
// We have to think a bit differently about how to get the CSS classes
// we want to 'stick' to the right HTML element
function MyComponent(props) {
const { className } = props
return (
@LarsGKodehode
LarsGKodehode / README.md
Last active February 20, 2023 14:31
Project plan template

Title of project

DELETE THIS: Single paragraph description of project

This is (going to be) the most awsome project ever and will be the Panacea for all the worlds problems.

Table of contents

@LarsGKodehode
LarsGKodehode / 1-integrated-development-enviroments.md
Last active February 21, 2023 16:45
Kodehode Essential Tools

Your new best friend
- Integrated Development Enviroments (IDEs)

Why? Isn't Notepad enough?

While any text editor that does not do any fancy formating is technically usable for HTML, CSS and JavaScript. They lack several essential features that makes your everyday as a developer easier, notably:

Setup

  • Go trough here and follow the instructions
@LarsGKodehode
LarsGKodehode / setup-instructions-prettier-vs-code.md
Last active February 28, 2023 09:27
First timers installations steps for the prettier in VS Code

Prettier
- VS Code Setup

Opinionated formatting.

Links

Steps

  1. Have VS Code Installed
  2. Get the extension here
@LarsGKodehode
LarsGKodehode / setup-instructions-vs-code.md
Created February 20, 2023 15:26
First timers installation of an Integrated Development Enviroment (IDE)

VS Code
- Basic setup for web development

Links

Steps

  1. Go to this link
  2. Chose the binary for your Operating System and download
  3. Install

Steps for setting up a Vite project

  1. move the terminal to the correct folder where you want to create the new project
  2. run $ npm create vite@latest
  3. Set name of project, what framework you want to use, and which language
  4. follow the instructions
    1. $ cd <name-of-project>
    2. $ npm install
  5. $ code .
@LarsGKodehode
LarsGKodehode / vcs-git-workflow.md
Last active February 21, 2023 16:44
A step by step for working with the Version Control System Git
@LarsGKodehode
LarsGKodehode / integrated-development-environment.md
Last active February 23, 2023 08:01
Your first Integrated Development Environment, IDE

Your new best friend
- Integrated Development Environment (IDEs)

Why? Isn't Notepad enough?

While any text editor that does not do any fancy formating is technically usable for HTML, CSS and JavaScript. They lack several essential features that makes your everyday as a developer easier, notably:

Setup

  • Go trough here and follow the instructions
@LarsGKodehode
LarsGKodehode / version-control-system-git.md
Last active September 29, 2023 09:16
Version Control System, VCS - git. Setup and introduction.

Version Control System & Terminal
- Git, GitHub, Bash

Version Control System - Git
- How to keep track of changes over time?

Git is Magic

Setup

Local steps

  1. Install this