Skip to content

Instantly share code, notes, and snippets.

View cparthiv's full-sized avatar
👀
school

parthiv cparthiv

👀
school
View GitHub Profile
@advaith1
advaith1 / discordjs-slash-commands.md
Last active September 27, 2025 00:18
Slash Commands in Discord.js
@ryanve
ryanve / blacklist.js
Created May 9, 2017 02:11
JavaScript regex to blacklist words
/^(?!(corn|bread)$).+/.test('corn') // false (blacklisted)
/^(?!(corn|bread)$).+/.test('bread') // false (blacklisted)
/^(?!(corn|bread)$).+/.test('cornbread') // true (not blacklisted)
/^(?!(corn|bread)$).+/.test('corndog') // true (not blacklisted)
/^(?!(corn|bread)$).+/.test('read') // true (not blacklisted)
@paulallies
paulallies / gist:0052fab554b14bbfa3ef
Last active August 3, 2024 16:45
Remove node_modules from git repo
#add 'node_modules' to .gitignore file
git rm -r --cached node_modules
git commit -m 'Remove the now ignored directory node_modules'
git push origin <branch-name>