Badges aren't necessary, but they look nice and also looks more professional so other developers know that you know what you're doing. If you need to find some badges a good place to look is shields.io
When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owners of this repository before making a change.
Please note we have a code of conduct, please follow it in all your interactions with the project.
Add numbered steps here describing the process for adding PRs.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* ------------------------------------------------------------- | |
* 1. Removing Duplicates from an array | |
* ------------------------------------------------------------- | |
* @description We make use of sets and create an array from a Set. Sets don't allow duplicates | |
* @returns [1,2,3,1,2,3] -> [1,2,3] | |
*/ | |
const duplicates = [1, 2, 3, 1, 2, 3]; | |
const removedDuplicates = Array.from(new Set(duplicates)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# This could be a folder that has a basic HTML, CSS, JS setup | |
TEMPLATE_PATH="<path/to/templatefolder>" | |
function createTemplate() { | |
echo "Beginning Template Creation..." | |
# Navigate into the new directory | |
cd "${1}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Shebang - Tells Unix the file is executed by bin/bash | |
#!/bin/bash | |
# Template path with your project setup | |
TEMPLATE_PATH="YOUR_PROJECT_PATH" | |
function createTemplate() { | |
echo "Beginning Template Creation..." | |
# Navigate into the new directory |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Pass Through Dependencies */ | |
export default ({ html, props}) => { | |
/* Returns new Component (HTML Element) with access to dependency functions */ | |
return class Example extends HTMLElement { | |
/* When the component is displayed */ | |
connectedCallback() { | |
console.log('Props', this.props); | |
} |