A Pen by Brandon Ratzloff on CodePen.
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
| git diff --name-only | grep "^`git rev-parse --show-prefix`[^/]*$" |
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
| # Bang bang - repeats last command | |
| !! | |
| # Kill end of line, paste forward | |
| ctrl + k & ctrl + y |
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
| img.desaturate { | |
| -webkit-filter: grayscale(100%); | |
| filter: grayscale(100%); | |
| filter: gray; | |
| filter: url("data:image/svg+xml;utf8,<svg version='1.1' xmlns='http://www.w3.org/2000/svg' height='0'><filter id='greyscale'><feColorMatrix type='matrix' values='0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0' /></filter></svg>#greyscale"); | |
| } |
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 | |
| // Load the currently logged in user. | |
| global $user; | |
| // Check if the user has the 'editor' role. | |
| if (in_array('editor', $user->roles)) { | |
| // do fancy stuff | |
| } | |
| ?> |
A Pen by Brandon Ratzloff on CodePen.