Skip to content

Instantly share code, notes, and snippets.

View mediasittich's full-sized avatar

Regina Galambos mediasittich

View GitHub Profile
@mediasittich
mediasittich / .gitignore
Created March 13, 2019 21:01 — forked from octocat/.gitignore
Some common .gitignore configurations
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
@mediasittich
mediasittich / palindrome_checker.js
Created February 17, 2019 21:25
freeCodeCamp Algorithms and Data Structures Project
function palindrome(str) {
// Convert input string to lower case
// remove special characters
var original = str.toLowerCase().replace(/\s/g, '').replace(/[^a-zA-Z0-9]/g, '');
// split string into characters
// reverse cleaned created array and join to string
var reverseStr = original.split('').reverse().join('');
// check if original string equals reversed string
return original === reverseStr;
}
## How to hide API keys from github ##
1. If you have already pushed commits with sensitive data, follow this guide to remove the sensitive info while
retaining your commits: https://help.github.com/articles/remove-sensitive-data/
2. In the terminal, create a config.js file and open it up:
touch config.js
atom config.js
@mediasittich
mediasittich / 0_reuse_code.js
Created June 21, 2017 07:57
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console