Skip to content

Instantly share code, notes, and snippets.

💻

kelvin knighton Knighton910

💻
Block or report user

Report or block Knighton910

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
@Knighton910
Knighton910 / mongodb_shell_commands.md
Created Dec 24, 2019 — forked from michaeltreat/mongodb_shell_commands.md
Quick Cheat Sheet for Mongo DB Shell commands.
View mongodb_shell_commands.md

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 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);
@Knighton910
Knighton910 / 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

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

Gist Practice yah!!

@Knighton910
Knighton910 / 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.