Use of the coral ui - markup from http://dev.day.com/docs/en/cq/current/touch-ui/coral-ui/index.html
A Pen by Chris Pilsworth on CodePen.
| $(document).on('keyup input paste', 'textarea[maxlength]', function() { | |
| var limit = parseInt($(this).attr('maxlength')); | |
| var text = $(this).val(); | |
| var chars = text.length; | |
| if (chars > limit) { | |
| var new_text = text.substr(0, limit); | |
| $(this).val(new_text); | |
| } | |
| }); |
| package uk.co.diffa.ssltest; | |
| import java.io.BufferedReader; | |
| import java.io.IOException; | |
| import java.io.InputStream; | |
| import java.io.InputStreamReader; | |
| import java.net.MalformedURLException; | |
| import java.net.URL; | |
| import javax.net.ssl.HttpsURLConnection; |
| cat error.log | select-string "\tat" -context 1,0 |
| # Remove the file metadata included in TAR files | |
| gci . -r -include ._* -force | remove-item -r -force | |
| # Remove SVN files from a project directory tree | |
| # http://stackoverflow.com/questions/2210193/powershell-how-to-recursivelly-delete-all-svn-files | |
| gci . -r -include .svn -force | remove-item -r -force |
| Note 1: The following CQ curl commands assumes a admin:admin username and password. | |
| Note 2: For Windows/Powershell users: use two "" when doing a -F cURL command. | |
| Example: -F"":operation=delete"" | |
| Note 3: Quotes around name of package (or name of zip file, or jar) should be included. | |
| Uninstall a bundle (use http://localhost:4505/system/console/bundles to access the Apache Felix web console) | |
| curl -u admin:admin -daction=uninstall http://localhost:4505/system/console/bundles/"name of bundle" | |
| Install a bundle | |
| curl -u admin:admin -F action=install -F bundlestartlevel=20 -F |
| package uk.co.diffa; | |
| import org.apache.felix.scr.annotations.Activate; | |
| import org.apache.felix.scr.annotations.Component; | |
| import org.apache.felix.scr.annotations.Reference; | |
| import org.apache.felix.scr.annotations.Service; | |
| import org.apache.sling.api.resource.LoginException; | |
| import org.apache.sling.api.resource.Resource; | |
| import org.apache.sling.api.resource.ResourceResolver; | |
| import org.apache.sling.api.resource.ResourceResolverFactory; |
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| # Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
| VAGRANTFILE_API_VERSION = "2" | |
| Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
| # All Vagrant configuration is done here. The most common configuration | |
| # options are documented and commented below. For a complete reference, | |
| # please see the online documentation at vagrantup.com. |
Use of the coral ui - markup from http://dev.day.com/docs/en/cq/current/touch-ui/coral-ui/index.html
A Pen by Chris Pilsworth on CodePen.
| <?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> | |
| <groupId>com.day</groupId> | |
| <artifactId>cq5-parent</artifactId> | |
| <packaging>pom</packaging> | |
| <version>0.0.1-SNAPSHOT</version> | |
| <dependencyManagement> | |
| <dependencies> |
I hereby claim:
To claim this, I am signing this object: