Skip to content

Instantly share code, notes, and snippets.

View SergioLarios's full-sized avatar

Sergio Larios Cerdà SergioLarios

View GitHub Profile
<?php
/*
* 2007-2017 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
<?php
/*
* 2007-2017 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
// assignPairingToCrew
await this.contentService.updateWithQuery({ filledCategories: pairing.filledCategories }, PairingStructure, { id: pairing.id });
// Ayuda con la compilacion en es5 de typescript ya que si no da un error
// https://stackoverflow.com/a/41671440
// https://github.com/webcomponents/custom-elements/blob/master/src/native-shim.js
(function() {
if (
// No Reflect, no classes, no need for shim because native custom elements
// require ES2015 classes or Reflect.
(<any>window).Reflect === undefined ||
window.customElements === undefined ||
@SergioLarios
SergioLarios / cloudSettings
Created December 18, 2018 13:04
Visual Studio Code Settings Sync Gist
{"lastUpload":"2018-12-18T13:04:54.694Z","extensionVersion":"v3.2.4"}
<%@ page trimDirectiveWhitespaces="true"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="format" tagdir="/WEB-INF/tags/shared/format"%>
<%@ taglib prefix="product" tagdir="/WEB-INF/tags/responsive/product"%>
<%@ taglib prefix="component" tagdir="/WEB-INF/tags/shared/component"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="cms" uri="http://hybris.com/tld/cmstags"%>
<spring:htmlEscape defaultHtmlEscape="true" />
{
"compilerOptions": {
/* Especifica la versión de JavaScript de código que se va a compilar, en este caso se usa Node v8+,
con lo cual podemos poner una versión más reciente */
"target": "ES2017",
/* Especifica que libería base utilizará para la API, es
recomendable commonjs para node: http://www.commonjs.org/ */
"module": "commonjs",
/* Carpeta de destino para el código compilado */
"outDir": "./dist/",
var AlexaAppServer = require('alexa-app-server');
var instance = AlexaAppServer.start({
server_root: __dirname,
public_html: "public_html",
app_dir: "apps", // - Carpeta con los modulos alexa-app
app_root: "/alexa/", // - Prefijo del path para generar los endpoints, por ejemplo '/alexa/[app-name]'
port: 9090, // - Puerto a usar para http
debug: true,
httpsPort: 443, // - Importante que este activado el https para
httpsEnabled: true, // que se pueda conectar alexa
{
"compilerOptions": {
/* Basic Options */
"target": "es2017", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', or 'ESNEXT'. */
"module": "commonjs", /* Specify module code generation: 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */
"lib": [
"es2017",
"dom"
], /* Specify library files to be included in the compilation: */
// "allowJs": true, /* Allow javascript files to be compiled. */
nav.bottom-menu {
margin: 0.5em;
position: fixed;
bottom: 0;
right: 0;
}
nav.bottom-menu:hover .buttons:not(:last-of-type) {
width: 30px;
height: 30px;