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
| <!-- From https://codepen.io/thomashigginbotham/pen/aYqvqQ --> | |
| <style> | |
| @import url("https://fonts.googleapis.com/css?family=Open+Sans:400,400i,700"); | |
| body { | |
| font-family: 'Open Sans', sans-serif; | |
| } | |
| details { | |
| margin: 1rem; | |
| } |
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://codepen.io/irksum/pen/qxbarb */ | |
| @supports ( (--plx: 0) and (position: sticky) ) { | |
| :root { | |
| --plx-perspective: 1; | |
| } | |
| .parallax { | |
| position: sticky; | |
| width: 100vw; | |
| height: 100vh; |
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 | |
| /* | |
| * Password protect a WordPress site, with a redirect to the requested URL after successful login | |
| * | |
| * Based on: | |
| * http://wordpress.stackexchange.com/a/64999 | |
| * http://kovshenin.com/2012/current-url-in-wordpress/ | |
| * | |
| **/ |
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
| <!-- from: http://www.creativebloq.com/features/the-pro-s-guide-to-responsive-web-design --> | |
| <img | |
| <!-- Declare the fallback image for all non picture supporting browsers --> | |
| src="horse-350.jpg" | |
| <!-- Declare all of the image sizes in srcset. Include the image width using the w descriptor to inform the browser of the width of each image.--> | |
| srcset="horse-350.jpg 350w, | |
| horse-500.jpg 500w, | |
| horse-1024.jpg 1024w, | |
| horse.jpg 2000w" |
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 | |
| #eg: bash ~/govcms-alias-creator-4000.sh "Tim" abc123abc123 | |
| # API keys | |
| USER=$1 | |
| KEY=$2 | |
| # Variables. | |
| SERVER=${3:-production} |
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
| /* | |
| Based of http://blog.mojotech.com/ | |
| */ | |
| .post-content>p:first-of-type:first-letter { | |
| background-color: #28ba00; | |
| border-radius: 3px; | |
| color: #fff; | |
| float: left; | |
| font-size: 46px; |
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
| // Run with: | |
| // casperjs govcms-all-sites-check.js | |
| // First will get all links from a page | |
| // then save 'href' attributes to an array, | |
| // then will iterate over this array and then open each link one by one | |
| // and echo the response code, url and title | |
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
| // from: https://css-tricks.com/glitch-effect-text-images-svg/ | |
| /* | |
| (TEXT) PARAMS | |
| ================= | |
| 1. Namespace | |
| 2. Intensity | |
| 3. Text color | |
| 4. Background color (flat) | |
| 5. Highlight #1 color |
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
| # simply run: | |
| # curl https://gist.githubusercontent.com/fribibb/74f8b9fa5835738fb1eb123c0d6ed93d/raw/Basic-Mac-Setup--Work.sh > ~/Desktop/Basic-Mac-Setup--Work.sh && bash ~/Desktop/Basic-Mac-Setup--Work.sh | |
| # Starting | |
| clear | |
| echo "This will kick off a LOT of downloads." | |
| echo "...distract everyone with [tea/coffee/cake/lunch/fire alarms], so you can use all the bandwidths!" | |
| echo "" | |
| read -p "Press enter to start." |