This file contains 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
/** | |
* IR a: https://si3.bcentral.cl/Indicadoressiete/secure/IndicadoresDiarios.aspx | |
* IR a: "Unidad de Reajustabilidad" > "Unidad de fomento (UF)" > "Ver serie" | |
* Luego ejecutar el siguiente script en la consola del navegador: | |
*/ | |
const year = parseInt(document.getElementById("lblAnioValor").innerText); | |
const output = { bulk: [] }; | |
for (let month=1; month<=12; month++){ |
This file contains 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
#!/usr/bin/env bash | |
# Script to download asset file from tag release using GitHub API v3. | |
# See: http://stackoverflow.com/a/35688093/55075 | |
CWD="$(cd -P -- "$(dirname -- "$0")" && pwd -P)" | |
# Ask for Github API Token | |
stty -echo | |
printf "Enter your Github API Token: " | |
read GITHUB_API_TOKEN | |
stty echo |
This file contains 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 SECRET="XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"; | |
const CRYPTOJS_CDN="https://cdnjs.cloudflare.com/ajax/libs/crypto-js/4.1.1/crypto-js.min.js"; | |
const JSONABC_CDN="https://novicelab.org/jsonabc/dist/jsonabc.js"; | |
(()=>{pm.sendRequest(CRYPTOJS_CDN,(e,r)=>{eval(r.text()),pm.sendRequest(JSONABC_CDN,(e,r)=>{const c=eval(r.text())("jsonabc"),g=(r,e)=>{r=c.sortObj(r);let t="";return Object.keys(r).sort().forEach(e=>{"signature"!==e&&r.hasOwnProperty(e)&&(t+=e+JSON.stringify(r[e]))}),CryptoJS.HmacSHA256(t,e).toString(CryptoJS.enc.Hex)};if("GET"===pm.request.method){const p={};pm.request.url.query.each(e=>{e.disabled||(p[e.key]=e.value)}),pm.request.url.query.add({key:"signature",value:g(p,SECRET)})}else{const p=JSON.parse(pm.request.body.raw);p.signature=g(p,SECRET),pm.request.body.raw=JSON.stringify(p)}})})})(); |
This file contains 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
imports: | |
- { resource: image_variations.yml } | |
- { resource: views.yml } | |
ezpublish: | |
locale_conversion: | |
eng-GB: en_GB | |
fre-FR: fr_FR | |
esp-ES: es_ES |
This file contains 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
{ | |
"require": { | |
"onaxis/ezplatform-extra": "@dev" | |
}, | |
"repositories": { | |
"dev-package": { | |
"type": "path", | |
"url": "../ezplatform-extra", | |
"options": { | |
"symlink": true |
This file contains 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
<a href="{{ path( "ez_urlalias", {"locationId": 80} ) }}{{ viewparametersgenerator.generate({'item': content.id}) }}">My link</a> |
This file contains 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
# Twig Configuration | |
twig: | |
globals: | |
viewparametersgenerator: "@app.service.viewparametersgenerator" |
This file contains 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
return new RedirectResponse( | |
sprintf('%s%s', $this->urlAliasGenerator->getPathPrefixByRootLocationId( | |
$first_child->locations[0]->contentInfo->mainLocationId | |
), $this->viewParametersGenerator->getFromRequest($request)) | |
); |
This file contains 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
<?php | |
/** | |
* Created by PhpStorm. | |
* User: vguyard | |
* Date: 11/21/18 | |
* Time: 1:11 AM | |
*/ | |
namespace AppBundle\Service; |
This file contains 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
function isPrime(num) { | |
var prime = num != 1; | |
for (var i = 2; i < num; i++) { | |
if (num % i === 0) { | |
prime = false; | |
break; | |
} | |
} | |
return prime; | |
} |
NewerOlder