Skip to content

Instantly share code, notes, and snippets.

View richardsaci's full-sized avatar

Richard Allen richardsaci

View GitHub Profile
@richardsaci
richardsaci / Troubleshoot Problem With My-Aggregate-Query-Route.md
Last active April 9, 2022 14:24
Troubleshoot Problem With My Aggregate Query Route

Troubleshoot Problem With My Aggregate Query Route


Aggregate Query

// Requires official MongoShell 3.6+
db = db.getSiblingDB("projectsDB");
db.getCollection("subscribers").aggregate(
    [
@richardsaci
richardsaci / Code_UpWork_Project-03-24-2022.md
Last active March 24, 2022 17:29
Code for UpWork Project 03-24-2022

Code for UpWork Project 03-24-2022

  • Create an HTML Table using node.js, express, ejs, json
  • Included project files.
    • app.js
    • subscribers.js - JSON data.
    • subscribers.ejs - This version is static just for showing you how I need the dynamically built page to look.

Please let me know if you need any additional information or if you have any questions.

@richardsaci
richardsaci / upWork-Table-Row-Span.md
Last active December 30, 2021 19:26
Upwork - Prepare and Post and RFP to have a Table Built via the DOM API that will allow Tags, Notes, Long Description to be on their own rows

Upwork - Prepare and Post an RFP to have a Table Built via the DOM API that will allow Tags, Notes, Long Description to be on their own rows

I am overwhelmed at Work!


Write a title for your job post; (Must be less than 100 characters.)

  • I need an HTML Table built using the DOM API that will allow multiple fields from my JSON source file (Tags, Notes, Long Description) to be on their own rows. (tr).

@richardsaci
richardsaci / calculateDisplayAverage.md
Created December 26, 2021 01:52
Calculate Average value in a Array of Numbers
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
    <title>Document</title>
@richardsaci
richardsaci / randomMonth.md
Created December 25, 2021 23:54
Generate a Random Month From an Array of Months
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Random Month</title>
@richardsaci
richardsaci / GitHubOverview.md
Last active April 11, 2025 21:36
Git, GitHub, GitHub Desktop, GitHub Pages, GitHub Gists, GitHub CoPilot, and Markdown

Git, GitHub, GitHub Desktop, GitHub Pages, GitHub Gists, GitHub CoPilot, Git Bash, Visual Studio Code GistPad, and Markdown

My GitHub understanding is from a web app developer (JavaScript, CSS, HTML).


  • git add .
  • git status
  • git commit -m "Message"
  • git push -u origin master
@richardsaci
richardsaci / selectElement.md
Last active December 15, 2021 18:16
Dynamically, Programmatically Build a Select Element

HTML Select Element, Built with JavaScript and the Document Object Model API with Options Coming from a JavaScript Set.

  • Here, I want to build a select element using the document object model API.
  • The Development folder is called select-element
  • For simplicity, all of this code is contained in my index.html
  • The Select Element Options are held in a JavaScript Set to ensure they are unique.
  • The JavaScript Set is converted to an Array for Sorting.
  • The Sorted Array Elements are used to populate the options of the select element.
  • Open the Chrome or Edge console to see more valuable information.
@richardsaci
richardsaci / simple-news-website-listing.md
Last active December 11, 2021 01:54
Medium Article - I built my simple website listing the 48 best online news publishers.

Medium Article - I built my simple website listing the 48 best online news publishers.

Todo List for this Project - DELETE BEFORE POSTING

  1. Create a working title
  2. build out the app.
  3. Add rich comments to serve as instructions.
  4. simple-news-website-listing.md is the first section and explains the overall project.
  5. index.html
  6. styles.css
@richardsaci
richardsaci / JavaScriptDates.md
Last active September 24, 2022 23:19
Playing With JavaScript Dates

Playing With JavaScript Dates


Formatting a date inside of a MongoDB Aggregation

$project: {
        vendorId: 1,
        // dateCreated: 1,
        dateCreated: { $dateToString: {format: "%m/%d/%Y", date: "$dateCreated"}},
        createdBy: 1,