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
import isMember from './is-member' | |
import isLoggedIn from './is-logged-in' | |
/** | |
* contentGate | |
* | |
* @export | |
* @class contentGate | |
/** |
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 to your existing bash instance... | |
## BEGIN NODE VERSION: This helps set the desired version of node in a given project. | |
find-up () { | |
path=$(pwd) | |
while [[ "$path" != "" && ! -e "$path/$1" ]]; do | |
path=${path%/*} | |
done | |
echo "$path" | |
} |
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
/** | |
* @file | |
* scroll depth js. | |
* | |
* Performance optimized scroll depth script based on | |
* findings from https://itnext.io/1v1-scroll-listener-vs-intersection-observers-469a26ab9eb6 | |
*/ | |
/** | |
* ScrollDepth |
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
# This is a sample build configuration for JavaScript. | |
# Check our guides at https://confluence.atlassian.com/x/14UWN for more examples. | |
# Only use spaces to indent your .yml configuration. | |
# ----- | |
# You can specify a custom docker image from Docker Hub as your build environment. | |
image: node:10.15.3 | |
pipelines: | |
branches: | |
master: |
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 | |
# This file is used with a nuxt + aws cli + s3 workflow so that your artifacts get gzipped. | |
# tested only on osx | |
# Create files. | |
nuxt generate | |
wait | |
# Compress dist files. |
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
// Include gulp | |
const gulp = require('gulp'); | |
// Include Our Plugins | |
const sass = require('gulp-sass'); | |
const browserSync = require('browser-sync'); | |
const autoprefixer = require('gulp-autoprefixer'); | |
const file = require('gulp-file'); | |
const headerComment = require('gulp-header-comment'); | |
const rollup = require('rollup'); |
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
// Dependacies: jQuery, ga.js (Async) | |
(function($){ | |
$(window).load(function() { | |
if (this._gat) { | |
// Set trackers | |
tks = this._gat._getTrackers(); |