Skip to content

Instantly share code, notes, and snippets.

View stevecalla's full-sized avatar

Steve Calla (he/him) stevecalla

  • Boulder, Colorado
  • 21:44 (UTC -06:00)
View GitHub Profile
<img width="1062" alt="Screenshot 2024-08-12 at 12 05 42 PM" src="https://gist.github.com/user-attachments/assets/4010cc94-9dc4-4f57-8160-80a1c284c62b">
// Port, host and auth token of Redis server might be defined as environment
// variables. If not, fall back to defaults.
var redisPort = process.env.REDIS_PORT || 6379,
redisHost = process.env.REDIS_HOST || '127.0.0.1',
redisAuth = process.env.REDIS_AUTH || null,
redis = require('redis');
// Since we are waiting for the error event, we don't have to check for errors
// individually after each Redis command.
var onError = function (error) {

REGEX TUTORIAL

REGEX is short for regular expression. A regular expression is way to search for a sequence of characters or a character pattern in a body of text. REGEX uses a search pattern that can be difficult to understand but can find multiple instances of a character pattern throughout a text document.

For example, if I want to find a phone number in a body of text (such as a markdown document or javascript code or simply an article or word document), I can use a REGEX search pattern.

The following REGEX search pattern will find all phone numbers (e.g. 123-456-7899) that match this pattern of 3 digits followed by a "-" followed by 3 digits followed by a "-" followed by 4 digits. The REGEX to do so is

REGEX = "\d{3}-\d{3}-\d{4f}"
@stevecalla
stevecalla / README.md
Created July 21, 2022 02:42 — forked from joyrexus/README.md
curl tutorial

An introduction to curl using GitHub's API.

Basics

Makes a basic GET request to the specifed URI

curl https://api.github.com/users/caspyin

Includes HTTP-Header information in the output

Overview - What's For Dinner README.md

What’s for dinner? The ultimate question. The What's for dinner app allows a user to randomly generate recipe ideas for a side, main course, dessert or the entire email.

The site is accessible at here. All the project requirements can be found here.

Website Preview

Small GIF (400x192)

Functionality

Template for DTR Memo
Project: Mod1 Paired Project - Rom Com
Group Member Names: Matt McVey & Steve Calla
Goals and Expectations for the Project (What does each group member hope to get out of this project?
- Deeper understanding and learning of javascript.
- Solid team dynamics and collaborations.
- Score at least a 3 or better for each rubric requirement.
- Well balanced contributions from each team member.

Career Journal: Mod 4 XX-XX-2020.md

Note: Mod 4 Prompts will be provided to you by your Career Specialist at that time.

Week 1: [Link here to your gist]

  • (completed)
  • (partially complete)
  • (not started)

If you will not be able to complete your journal this week, please provide an update for the Career Dev team on when you'll have it completed here:

Career Journal: Mod 3 XX-XX-2020.md

Week 1: [Link here to your gist]

  • (completed)
  • (partially complete)
  • (not started)

If you will not be able to complete your journal this week, please provide an update for the Career Dev team on when you'll have it completed here:

Week 2: [Link here to your gist]

Career Journal: Mod 2 XX-XX-2020.md

Week 1: [Link here to your gist]

  • (completed)
  • (partially complete)
  • (not started)

If you will not be able to complete your journal this week, please provide an update for the Career Dev team on when you'll have it completed here:

Week 2: [Link here to your gist]

Career Journal: Mod 1 Steve Calla


Mod 1 First Time - Journal Reflections (Dec '20 to Jan '21)


Mod 1 Week 1: Understanding your strengths (status = COMPLETE) Answer the below questions in a separate gist and link them into your career journal using this template:

Week 1: [Link here to your gist]

  • (completed)
  • (partially complete)