$ docker
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 | |
usage="$(basename "$0") [OPTIONS] -- changes your Slack status to AFK or Working Remotely | |
[OPTIONS]: | |
-h|--help This help message | |
--afk Changes your Slack profile to AFK | |
--remote Changes your Slack profile to Working Remotely | |
--token Your Slack token (see https://api.slack.com/legacy/custom-integrations/legacy-tokens) | |
" |
CloudFlare is an awesome reverse cache proxy and CDN that provides DNS, free HTTPS (TLS) support, best-in-class performance settings (gzip, SDCH, HTTP/2, sane Cache-Control
and E-Tag
headers, etc.), minification, etc.
- Make sure you have registered a domain name.
- Sign up for CloudFlare and create an account for your domain.
- In your domain registrar's admin panel, point the nameservers to CloudFlare's (refer to this awesome list of links for instructions for various registrars).
- From the CloudFlare settings for that domain, enable HTTPS/SSL and set up a Page Rule to force HTTPS redirects. (If you want to get fancy, you can also enable automatic minification for text-based assets [HTML/CSS/JS/SVG/etc.], which is a pretty cool feature if you don't want already have a build step for minification.)
- If you
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
sass/ | |
| | |
|– base/ | |
| |– _reset.scss # Reset/normalize | |
| |– _typography.scss # Typography rules | |
| ... # Etc… | |
| | |
|– components/ | |
| |– _buttons.scss # Buttons | |
| |– _carousel.scss # Carousel |
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
googletag.pubads().addEventListener("slotRenderEnded", function(event) { | |
//console.log("googletag slotRenderEnded", event.slot.b.f); | |
var containerId = ""; | |
// WARN: Fragile access of private object within DFP Slot Object returned with the event | |
// It's the only way to get access to the id of the DOM element attached to the slot | |
// FIXME: Ideally we need to contact Google and request a public API method to return the id | |
if (typeof event.slot !== "undefined") { | |
if (typeof event.slot.b !== "undefined") { |
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
add_action( 'ninja_forms_display_js', 'prefix_track_form_submission' ); | |
function prefix_track_form_submission() { | |
?> | |
<script> | |
//<![CDATA[ | |
$( '.ninja-forms-form' ).on( 'submitResponse', function( e, response ) { | |
var errors = response.errors; | |
if ( errors == false ) { | |
// This is where you put the tracking code. This only fires if form submission is successfull |