Skip to content

Instantly share code, notes, and snippets.

View Knighton910's full-sized avatar
🐝

kelvin knighton Knighton910

🐝
View GitHub Profile
@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);