Skip to content

Instantly share code, notes, and snippets.

:atom:
⚜️Coding ⚜️

kelvin knighton lordKnighton

:atom:
⚜️Coding ⚜️
Block or report user

Report or block lordKnighton

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@lordKnighton
lordKnighton / async.js
Created Sep 6, 2019 — forked from coryhouse/async.js
Async/Await example
View async.js
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);
@lordKnighton
lordKnighton / docker-help.md
Created Aug 28, 2019 — forked from bradtraversy/docker-help.md
Docker Commands, Help & Tips
View docker-help.md

Docker Commands, Help & Tips

Show commands & management commands

$ docker

Docker version info

@lordKnighton
lordKnighton / gistpractice.md
Created Mar 20, 2019
Gist Example i created
View gistpractice.md

Gist Practice yah!!

@lordKnighton
lordKnighton / FizzBuzz.js
Last active Aug 31, 2015 — forked from jaysonrowe/FizzBuzz.js
FizzBuzz JavaScript solution
View FizzBuzz.js
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);
You can’t perform that action at this time.