Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.
| Ctrl+C | copy current line (if no selection) |
| Ctrl+X | cut current line (if no selection) |
| Ctrl+⇧+K | delete line |
| Ctrl+↩ | insert line after |
| <!-- | |
| How to load Font Awesome asynchronously | |
| Use: Just put this script on the bottom/footer of your web | |
| --> | |
| <script type="text/javascript"> | |
| (function() { | |
| var css = document.createElement('link'); | |
| css.href = '//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.min.css'; |
| // callback request | |
| const request = require('request') | |
| request('http://localhost:3000/', (err, res, body) => { | |
| console.log('callback: ', body) | |
| }) | |
| // promise request | |
| const requestpromise = require('request-promise') | |
| requestpromise('http://localhost:3000/') | |
| .then(res => { |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="UTF-8" /> | |
| <title>React Playground</title> | |
| <script src="https://unpkg.com/react@16/umd/react.development.js"></script> | |
| <script src="https://unpkg.com/react-dom@16/umd/react-dom.development.js"></script> | |
| <script src="https://unpkg.com/[email protected]/babel.min.js"></script> | |
| </head> |
Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.
| Ctrl+C | copy current line (if no selection) |
| Ctrl+X | cut current line (if no selection) |
| Ctrl+⇧+K | delete line |
| Ctrl+↩ | insert line after |
| <%@ include file="/WEB-INF/jsp/include/imports.jsp" %> | |
| <jsp:useBean id="random" class="java.util.Random" scope="application"/> | |
| <hst:link var="themesLink" siteMapItemRefId="themesId"/> | |
| <hst:link var="artistsLink" siteMapItemRefId="artistsId"/> | |
| <hst:link var="countriesLink" siteMapItemRefId="countriesId"/> | |
| <div class="panel"> | |
| <c:if test="${ not empty info.heading }"> |
| package org.acm.artists.componentinfo; | |
| import org.hippoecm.hst.core.parameters.DropDownList; | |
| import org.hippoecm.hst.core.parameters.FieldGroup; | |
| import org.hippoecm.hst.core.parameters.FieldGroupList; | |
| import org.hippoecm.hst.core.parameters.Parameter; | |
| @FieldGroupList({ | |
| @FieldGroup(titleKey = "group.heading", value = {"heading", "heading.level"}), | |
| @FieldGroup(titleKey = "group.themes", value = {"showthemes", "isopenthemes"}), |
| package org.acm.artists.components; | |
| import java.util.List; | |
| import org.acm.components.BaseComponent; | |
| import org.acm.artists.common.dao.ArtistsDao; | |
| import org.acm.artists.common.domain.Artist; | |
| import org.acm.artists.common.domain.ArtistCountry; | |
| import org.acm.artists.common.domain.ArtistTheme; | |
| import org.acm.artists.componentinfo.ArtistsListComponentInfo; | |
| import org.hippoecm.hst.core.component.HstComponentException; |
| package org.acm.artists.common.dao; | |
| import java.io.IOException; | |
| import org.acm.common.Constants; | |
| import org.acm.common.dao.BaseRestClientDao; | |
| import org.acm.common.dao.DaoException; | |
| import org.acm.common.utils.Labels; | |
| import org.acm.artists.common.domain.FilmObj; | |
| import org.acm.artists.common.domain.ArtistCountryList; | |
| import org.acm.artists.common.domain.ArtistList; |
| /* | |
| * Base template for Gulp builds | |
| * Assumes the following structure: | |
| . | |
| ├── app | |
| │ ├── css | |
| │ ├── fonts | |
| │ ├── img | |
| │ ├── js | |
| │ └── src |