Skip to content

Instantly share code, notes, and snippets.

View Knighton910's full-sized avatar
🐝

kelvin knighton Knighton910

🐝
View GitHub Profile
@Knighton910
Knighton910 / readme.md
Created June 30, 2022 18:22
DOM Manipulation with Vanilla JS
@Knighton910
Knighton910 / reactNtypescript.md
Created May 25, 2022 16:58
React and Typescript
@Knighton910
Knighton910 / interview1.md
Last active May 17, 2022 19:08
Interview Questions to Ask Your Interviewer

Interview Questions to Ask Your Interviewer

How big is the company?

Why did you choose to work here?

Do you enjoy this particular project?

Is there flexibility within the org to move around to different projects?

@Knighton910
Knighton910 / .md
Last active April 25, 2022 22:38
React State in Classes refresh

The state of a React class is a special property that controls the rendering of a page. When you change the state, React knows that the component is out-of-date and will automatically re-render.

The state property is a standard class property, which means

that it is accessible in other methods, not just the render method.

Another important change you made was to create the getTotal() method

@Knighton910
Knighton910 / .js
Created April 23, 2022 14:06
React Classes refresh
class Human {
constructor() {
this.gender = 'female'
}
printGender() {
console.log(this.gender)
}
}
@Knighton910
Knighton910 / mongodb_shell_commands.md
Created December 24, 2019 18:32 — forked from michaeltreat/mongodb_shell_commands.md
Quick Cheat Sheet for Mongo DB Shell commands.

MongoDB Shell Commands Cheat Sheet.

This is a Cheat Sheet for interacting with the Mongo Shell ( mongo on your command line). This is for MongoDB Community Edition.

Preface:

Mongo Manual can help you with getting started using the Shell.

FAQ for MongoDB Fundamentals and other FAQs can be found in the side-bar after visiting that link.

@Knighton910
Knighton910 / async.js
Created September 6, 2019 08:04 — forked from coryhouse/async.js
Async/Await example
getPosts().then(posts => {
console.log(posts.length);
});
async function getPosts() {
try {
const response = await fetch("https://jsonplaceholder.typicode.com/posts");
return response.json();
} catch(error) {
console.log(error);
@Knighton910
Knighton910 / docker-help.md
Created August 28, 2019 03:05 — forked from bradtraversy/docker-help.md
Docker Commands, Help & Tips

Docker Commands, Help & Tips

Show commands & management commands

$ docker

Docker version info

@Knighton910
Knighton910 / FizzBuzz.js
Last active August 31, 2015 07:40 — forked from jaysonrowe/FizzBuzz.js
FizzBuzz JavaScript solution
for (var i=1; i <= 20; i++)
{
if (i % 15 == 0)
console.log("FizzBuzz");
else if (i % 3 == 0)
console.log("Fizz");
else if (i % 5 == 0)
console.log("Buzz");
else
console.log(i);