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
| #!/bin/bash | |
| # Branch Effort Summary Script | |
| # | |
| # Generates a concise report of commits, files changed, and line statistics | |
| # for commits matching a pattern or within a commit range. | |
| # | |
| # Usage: | |
| # ./branch-summary.sh # All commits vs 'main' | |
| # ./branch-summary.sh <start-hash>^..HEAD # From commit to HEAD (recommended) | |
| # ./branch-summary.sh <start-hash>..<end-hash> # Specific commit range |
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
Show hidden characters
| "Vue 3 SFC": { | |
| "scope": "javascript, typescript, vue", | |
| "prefix": "vue-sfc", | |
| "body": [ | |
| "<script setup lang=\"ts\">", | |
| "\t$1", | |
| "</script>", | |
| "\n", | |
| "<template>", | |
| "\t<${2: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
| /* https://github.com/LinkedInLearning/simplifying-web-development-with-accessibility-best-practices-2883015 */ | |
| .sr-only { | |
| clip: rect(1px, 1px, 1px, 1px); | |
| clip-path: inset(50%); | |
| height: 1px; | |
| width: 1px; | |
| margin: -1px; | |
| overflow: hidden; | |
| padding: 0; |
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":"Front End: Vue","settings":"{\"settings\":\"{\\n \\\"workbench.colorCustomizations\\\": {\\n \\\"tree.indentGuidesStroke\\\": \\\"#f8f8f2\\\",\\n \\\"editorIndentGuide.activeBackground\\\": \\\"#f8f8f2\\\",\\n \\\"editorIndentGuide.background\\\": \\\"#44475a\\\"\\n },\\n \\\"editor.trimAutoWhitespace\\\": true,\\n \\\"editor.tabSize\\\": 2,\\n \\\"emmet.includeLanguages\\\": {\\n \\\"vue-html\\\": \\\"html\\\",\\n \\\"vue\\\": \\\"html\\\"\\n },\\n \\\"[vue]\\\": {\\n \\\"editor.defaultFormatter\\\": \\\"esbenp.prettier-vscode\\\"\\n },\\n \\\"[typescript]\\\": {\\n \\\"editor.defaultFormatter\\\": \\\"esbenp.prettier-vscode\\\"\\n }\\n}\"}","snippets":"{\"snippets\":{\"vue-sfc-setup-ts-scss.code-snippets\":\"{\\n\\t// Place your global snippets here. Each snippet is defined under a snippet name and has a scope, prefix, body and \\n\\t// description. Add comma separated ids of the languages where the snippet is applicable in the scope fi |
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
| /* Limit character to repeat 3 times maximum */ | |
| 'ffdttttyyqqqqqqq'.replace(/(.)\1{3,}/g, '$1$1$1'); | |
| // 'ffdtttyyqqq' |
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
| /* Table structure | |
| <table> | |
| <tr> | |
| <th>Email</th> | |
| <th>Username</th> | |
| </tr> | |
| <tr> | |
| <td>[email protected]</td> | |
| <td>UsernameHere</td> | |
| </tr> |
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
| str.substring(str.lastIndexOf('/') + 1); |
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 | |
| // Convert Deep Object to Associative Array | |
| $adata = json_decode(json_encode($odata), true); |
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
| [System.Net.Dns]::GetHostByAddress($ipAddress).Hostname |
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 -Recurse to do child directories | |
| # Remove -WhatIf when satisfied with test run | |
| Get-ChildItem | Rename-Item -NewName { $_.name -replace ' \(.*\)','' } -WhatIf | |
NewerOlder