Skip to content

Instantly share code, notes, and snippets.

View AlexMercedCoder's full-sized avatar
🎯
Focusing

Alex Merced AlexMercedCoder

🎯
Focusing
View GitHub Profile

title: ExpressJS Cheatsheet 2022 date: "2022-04-09" description: "Easy reference for using express" author: "Alex Merced" category: "javascript" bannerImage: "/images/postbanner/2022/batch-streaming.png" tags:

  • backend
  • javascript
@AlexMercedCoder
AlexMercedCoder / readme.md
Last active April 8, 2022 20:56
How to Connect to Dremio Arctic using Spark in a Docker container

How to Connect to Dremio Arctic with Spark in a Docker Container

If you need a docker image for this purpose, this should do the job.

from the spark docker container create a bash script:

touch arctic.bash

In file copy the following with the variables with the right values:

@AlexMercedCoder
AlexMercedCoder / dom-cheatsheet.md
Created March 12, 2022 15:59
DOM & jQuery cheatsheet

Alex's DOM Cheatsheet

Join the slack and discord community at devNursery.com

DOM/jQuery Video Playlist

Window Object

Represents the entire browser window

action syntax notes
@AlexMercedCoder
AlexMercedCoder / index.md
Last active January 3, 2022 15:02
Self-Taught Developer Road Map
@AlexMercedCoder
AlexMercedCoder / readme.md
Last active December 3, 2021 16:08
Masonite Refence

Masonite Reference

CLI Reference

CLI REFERENCE

purpose command
new app craft new <appName>
generate key and initial setup craft install
@AlexMercedCoder
AlexMercedCoder / readme.md
Last active August 6, 2023 18:50
Data Terms/Concepts Cheatsheet

Data Analytics/Science Terms and Concepts Cheatsheet

Structured Data

Data that is organized to meet a schema. Think tables which organize data into rows and columns.

Unstructured Data

Data is unorganized and lacks a schema. Imagine collections of html documents including text and images not organized in any consistent way.

@AlexMercedCoder
AlexMercedCoder / readme.md
Last active October 20, 2021 02:41
Express Templating Cheatsheet

Intro

Express can be used several different templating engines, most engines will assume by default that all your templates are in a "views" folder. To render a template you'll use the render function in side the response object in your express routes.

res.render("template.extension", {data: [1,2,3,4]})

Render will search for a template file called "template.extension" in the views folder and pass the object to the template engine to use when rendering the template.

@AlexMercedCoder
AlexMercedCoder / resume.md
Last active October 4, 2021 23:22
Alex Merced Resume

Alex Merced

Developer, Educator, Problem Solver, Tech Evangelist

alex@alexmerced.dev - 860 995 1048 - AlexMercedCoder.com

Mission: To leverage my ability to educate about and promote technology with passion and charisma into a role as a Developer Advocate where I can empower developers to use cutting edge technologies to develop the ground breaking apps of tomorrow.

Skills

Skill Detail
@AlexMercedCoder
AlexMercedCoder / expressmongo.js
Created August 13, 2021 15:25
Ways of Writing Express/MongoDB routes (Callback, Async/Await, .then)
///////////////////////////////////////
// Writing the Index Route all three ways
// (Callback,.then, async/await)
///////////////////////////////////////
// callback
app.get("/dogs", (req, res) => {
Dog.find({}, (err, data) =>
err ? res.status(400).json(err) : res.json(data)
);