Skip to content

Instantly share code, notes, and snippets.

View gambinish's full-sized avatar
🦊

Nick Gambino gambinish

🦊
View GitHub Profile
@gambinish
gambinish / regexTutorial2.md
Created June 16, 2022 04:35
This is my regex tutorials

Title (replace with your title)

Introductory paragraph (replace this with your text)

Summary

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.

Table of Contents

@gambinish
gambinish / regexTutorial.md
Created June 16, 2022 04:23
Regex-Tutorial.md

Title (replace with your title)

Introductory paragraph (replace this with your text)

Summary

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.

Table of Contents

// this is a test gist
class Device {
constructor(ipAddress) {
this.ipAddress = ipAddress;
}
sendStatus() {
const data = { ipAddress: this.ipAddress, deviceStatus: Math.floor(Math.random() * 3) };
@gambinish
gambinish / vpcnotes.md
Last active August 31, 2019 06:47
AWS VPC notes
@gambinish
gambinish / .gitignore
Created May 16, 2019 21:22
wpengine .gitignore
*~
.DS_Store
.svn
.cvs
*.bak
*.swp
Thumbs.db
node_modules
# wordpress specific
@gambinish
gambinish / docker-compose.yml
Last active May 29, 2019 19:52
Wordpress docker-compose.yml
version: "3.3"
services:
db:
image: mysql:5.7
volumes:
- db_data:/var/lib/mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: somewordpress
@gambinish
gambinish / useScroll.js
Created April 13, 2019 06:37 — forked from joshuacerbito/useScroll.js
Custom React hook for listening to scroll events
/**
* useScroll React custom hook
* Usage:
* const { scrollX, scrollY, scrollDirection } = useScroll();
*/
import { useState, useEffect } from "react";
export function useScroll() {
const [lastScrollTop, setLastScrollTop] = useState(0);
@gambinish
gambinish / remove-node-modules.md
Created January 27, 2019 09:18 — forked from lmcneel/remove-node-modules.md
How to remove node_modules after they have been added to a repo

How to remove node_modules

  1. Create a .gitignore file in the git repository if it does not contain one

touch .gitignore 2. Open up the .gitignore and add the following line to the file

node_modules 3. Remove the node_modules folder from the git repository

@gambinish
gambinish / PythonSetup.md
Created January 6, 2019 21:06 — forked from patriciogonzalezvivo/PythonSetup.md
How to install Python correctly on Mac OSX

Install Homebrew

ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"

Add PATH to ~/.bash_profile and ~/.zshrc

export PATH=/usr/local/bin:$PATH