Introductory paragraph (replace this with your text)
Briefly summarize the regex you will be describing and what you will explain. Include a code snippet of the regex. Replace this text with your summary.
// this is a test gist | |
class Device { | |
constructor(ipAddress) { | |
this.ipAddress = ipAddress; | |
} | |
sendStatus() { | |
const data = { ipAddress: this.ipAddress, deviceStatus: Math.floor(Math.random() * 3) }; |
Assumptions:
Networking & Content Delivery
> VPC
*~ | |
.DS_Store | |
.svn | |
.cvs | |
*.bak | |
*.swp | |
Thumbs.db | |
node_modules | |
# wordpress specific |
version: "3.3" | |
services: | |
db: | |
image: mysql:5.7 | |
volumes: | |
- db_data:/var/lib/mysql | |
restart: always | |
environment: | |
MYSQL_ROOT_PASSWORD: somewordpress |
/** | |
* useScroll React custom hook | |
* Usage: | |
* const { scrollX, scrollY, scrollDirection } = useScroll(); | |
*/ | |
import { useState, useEffect } from "react"; | |
export function useScroll() { | |
const [lastScrollTop, setLastScrollTop] = useState(0); |