Skip to content

Instantly share code, notes, and snippets.

@cjohnson74
cjohnson74 / IP-Address-Regex-Tutorial.md
Last active January 27, 2022 16:09
I created this tutorial that explains how a specific regular expression, or regex, functions by breaking down each part of the expression and describing what it does.

Computer Science for JavaScript:

Matching an IP Address with Regex Tutorial

Have you ever needed to find an IP address in a body of text, within code, in an API or Database? Probably not, but after going through this tutorial you will know how to just using regex. After this tutorial you will also be able to utilize regular expressions to find and search anything, by creating your own patterns.

Summary

For the record I did not come up with this regex pattern myself. I will be using this regex pattern as a teaching example. By breakdown this regex down character for character I will be able to show you the different parts and pieces of a regex.

Now lets get into it, here is the pattern we will be deconstructing:

@jlafon
jlafon / dynamodb.md
Created December 3, 2014 05:03
An Introduction to Amazon's DynamoDB

An introduction to DynamoDB

DynamoDB is a powerful, fully managed, low latency, NoSQL database service provided by Amazon. DynamoDB allows you to pay for dedicated throughput, with predictable performance for "any level of request traffic". Scalability is handled for you, and data is replicated across multiple availability zones automatically. Amazon handles all of the pain points associated with managing a distributed datastore for you, including replication, load balancing, provisioning, and backups. All that is left is for you to take your data, and its access patterns, and make it work in the denormalized world of NoSQL.

Modeling your data

The single most important part of using DynamoDB begins before you ever put data into it: designing the table(s) and keys. Keys (Amazon calls them primary keys) can be composed of one attribute, called a hash key, or a compound key called the hash and range key. The key is used to uniquely identify an item in a table. The choice of the primary key is particularl