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
# .htaccess for old domain | |
Options +FollowSymLinks | |
RewriteEngine On | |
RewriteCond %{HTTP:X-FORWARDED-HOST} !(.*)newdomain(.*) [NC] | |
RewriteRule (.*) http://newdomain.com/$1 [R=301,L] | |
# .htaccess for new domain | |
Options +FollowSymLinks | |
RewriteEngine on | |
RewriteRule (.*) http://olddomain.com/$1 [P,L] |
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
angular.module('mdChipDraggable', []) | |
.directive('mdChipDraggable', function () { | |
return { | |
restrict: 'A', | |
scope: {}, | |
bindToController: true, | |
controllerAs: 'vm', | |
controller: ['$document', '$scope', '$element', '$timeout', | |
function ($document, $scope, $element, $timeout) { | |
var vm = this; |
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
{} |
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
import { MJMLElement, helpers } from 'mjml-core' | |
import cloneDeep from 'lodash/cloneDeep' | |
import merge from 'lodash/merge' | |
import React, { Component } from 'react' | |
const tagName = 'mc-section' | |
const parentTag = ['mj-container'] | |
const defaultMJMLDefinition = { | |
attributes: { | |
'mc:hideable': null, |
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
import { MJMLElement } from 'mjml-core' | |
import merge from 'lodash/merge' | |
import min from 'lodash/min' | |
import React, { Component } from 'react' | |
const tagName = 'mc-image' | |
const parentTag = ['mj-column', 'mj-hero-content'] | |
const defaultMJMLDefinition = { | |
attributes: { | |
'mc:edit': null, |
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
import hash from 'object-hash'; | |
import sizeof from 'object-sizeof'; | |
import lruCache from 'lru-cache'; | |
const cacheEnabled = true; | |
const cacheMaxAge = 30 * 60 * 1000; | |
const cacheMaxSize = 128 * 1000 * 1000; | |
const getCacheKey = config => hash({ | |
method: config.method, |
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
/* | |
eslint no-underscore-dangle: 0, max-len: 0, prefer-destructuring: 0, no-nested-ternary: 0 | |
*/ | |
import TweenMax from 'gsap/TweenMax'; | |
import TimelineMax from 'gsap/TimelineMax'; | |
import * as ScrollWizardry from 'scrollwizardry'; | |
// import * as ScrollWizardry from '../../scrollwizardry/src'; | |
const { Controller, Scene } = ScrollWizardry; |
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
const AFRAME = require('aframe'); | |
if (!AFRAME.components['render-enabled']) { | |
AFRAME.registerComponent('render-enabled', { | |
schema: { type: 'boolean', default: true }, | |
init() { | |
const _this = this; | |
this.renderEnabled = this.data; | |
this.el.render = function render() { |
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
import min from 'lodash/min' | |
import { BodyComponent } from 'mjml-core' | |
import widthParser from 'mjml-core/lib/helpers/widthParser' | |
export default class McImage extends BodyComponent { | |
static tagOmission = true | |
static allowedAttributes = { |
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
import { BodyComponent } from 'mjml-core' | |
import { flow, identity, join, filter } from 'lodash/fp' | |
import widthParser from 'mjml-core/lib/helpers/widthParser' | |
const makeBackgroundString = flow(filter(identity), join(' ')) | |
export default class McSection extends BodyComponent { | |
static allowedAttributes = { | |
'mc:hideable': 'boolean', | |
'mc:repeatable': 'string', |
OlderNewer