Skip to content

Instantly share code, notes, and snippets.

View thadeusdev's full-sized avatar
🎯
Focusing

Thadeus Nyariki thadeusdev

🎯
Focusing
View GitHub Profile
@thadeusdev
thadeusdev / rails http status codes
Created November 24, 2022 03:18 — forked from mlanett/rails http status codes
HTTP status code symbols for Rails
HTTP status code symbols for Rails
Thanks to Cody Fauser for this list of HTTP responce codes and their Ruby on Rails symbol mappings.
Status Code Symbol
1xx Informational
100 :continue
101 :switching_protocols
102 :processing
@thadeusdev
thadeusdev / git-collaborative-workflow.md
Created November 5, 2022 18:47 — forked from adamloving/git-collaborative-workflow.md
Simple Git workflow for collaborating on a project. I wrote this to help a co-worker learn Git (and help me remember after a year of working on my own).

Creating the change

$ git checkout -b my-feature

... modify code ....

$ git add <filename> 
$ git commit -m “my feature is this”
@thadeusdev
thadeusdev / VSCode-live-server-setup.md
Created August 22, 2022 06:32 — forked from ihollander/VSCode-live-server-setup.md
Setup instructions for Live Server in VSCode (how to prevent issues working with json-server)

Problem Statement

Live Server is a great tool for working with Javscript. It automatically reloads our code any time changes are made to files in the folder where Live Server is running. This becomes an issue when using a tool like json-server with a .json file in the same directory - since changes you make using POST/PATCH/DELETE requests will update the .json file, these changes will also cause your app to reload.

Solution

You can solve this by telling Live Server to ignore changes to certain files. Open your VSCode preferences by pressing command + shift + p in VSCode and searching for "Preferences: Open Settings (JSON)". Then, add the following lines to the settings.json file:

"liveServer.settings.ignoreFiles": [