This file contains hidden or 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
| { | |
| "name": "phpmyadmin/phpmyadmin", | |
| "type": "project", | |
| "description": "A web interface for MySQL and MariaDB", | |
| "keywords": ["phpmyadmin","mysql","web"], | |
| "homepage": "https://www.phpmyadmin.net/", | |
| "support": { | |
| "forum": "https://www.phpmyadmin.net/support/", | |
| "issues": "https://github.com/phpmyadmin/phpmyadmin/issues", | |
| "wiki": "https://wiki.phpmyadmin.net/", |
This file contains hidden or 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
| <?php | |
| //------------------------------------------------------- | |
| // Send Email | |
| //------------------------------------------------------- | |
| $to = 'test@example.com'; | |
| $subject = 'Test mail'; | |
| $message = 'Hello! This is a simple email message.'; | |
| $from = 'someone@example.com'; |
This file contains hidden or 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
| months = [ 'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December' ]; |
This file contains hidden or 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
| <div class="info"></div> |
This file contains hidden or 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
| .box | |
| { | |
| position: sticky; | |
| bottom: 20px; | |
| width: 600px; | |
| margin: auto; | |
| } |
This file contains hidden or 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
| Bug: | |
| Feature: | |
| Improvement: | |
| Change: | |
| Other: |
This file contains hidden or 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
| let fruits = [ 'apple', 'orange', 'mango' ]; | |
| // for / of loop | |
| for ( e of fruits ) | |
| { | |
| // e is now an element of the array | |
| console.log( e ); // Output: apple, orange, mango | |
| } | |
| // for / in loop |
This file contains hidden or 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
| .box | |
| { | |
| position: static; | |
| position: absolute; | |
| position: fixed; | |
| position: relative; | |
| position: sticky; | |
| } |
This file contains hidden or 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
| //------------------------------------------------------- | |
| // Add target="_blank" attribute to all anchor tags | |
| //------------------------------------------------------- | |
| // Add target="_blank" to all anchor tags, v 2.1 | |
| for ( let x of document.links ) x.setAttribute( 'target', '_blank' ); | |
| //------------------------------------------------------- | |
| // Functions to shorten querySelector* calls |
This file contains hidden or 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
| // One time event | |
| setTimeout( function(){}, 1000 ); | |
| // Repetitive event | |
| setInterval( function(){}, 1000 ); | |
| // If these need to be canceled, then assign them | |
| // to a variable and then clear them like this. | |
| clearTimeout( assignedVar ); | |
| clearInterval( assignedVar ); |