Skip to content

Instantly share code, notes, and snippets.

View asabaylus's full-sized avatar

Asa Baylus asabaylus

View GitHub Profile
~/Dropbox (National Geographic)/Projects/cq-reference/platform feature/AEM-2478* 13s
(vagrant)❯ fab deploy
1.7.0
bpdtool.tasks.aem.deploy WARNING No username argument received, using default: admin
bpdtool.tasks.aem.deploy WARNING No password argument received, using default: admin
[aem.localhost.nationalgeographic.com] Executing task 'check_webapp_access_over_ssh'
[aem.localhost.nationalgeographic.com] run: sudo puppet --version
[aem.localhost.nationalgeographic.com] out: 3.7.3 (Puppet Enterprise 3.7.1)
[aem.localhost.nationalgeographic.com] out:
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.foo.www</groupId>
<artifactId>fe-package</artifactId>
<version>0.1.0</version>
_isUrl = function (str) {
// pass --> http://google.com
// pass --> ftp://google.com
// pass --> google.com
// pass --> localhost
// pass --> 127.0.0.1
// pass --> 1.1.1.1
// pass --> http://127.0.0.1
// pass --> http://localhost
@asabaylus
asabaylus / gist:b0fea14fbcc3d368b044
Last active August 29, 2015 14:04
AEM DOM Based Routing
/*
AEM DOM BASED ROUTING SECTION
The data-controller attribute should point to the module defined JS controller (required)
The data-action attribute should reference a method of that controller, which will be passed an array of dom elements .
(Defaults to init)
The data-config object should contain a JSON object with configuration parameters (optional)
See http://www.paulirish.com/2009/markup-based-unobtrusive-comprehensive-dom-ready-execution/ for inspiration
ex: <div id="${divId}"
data-composer='foo'
data-action='doit'