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 | |
// www/routing.php | |
// http://gonzalo123.com/2012/10/15/how-to-rewrite-urls-with-php-5-4s-built-in-web-server/ | |
if (preg_match('/\.(?:png|jpg|jpeg|gif)$/', $_SERVER["REQUEST_URI"])) { | |
return false; | |
} else { | |
include __DIR__ . '/index.php'; | |
} | |
// cd ./ |
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
[ | |
{ | |
"code": "001", | |
"name": "Banco do Brasil", | |
"short_name": "BB", | |
"jurisdiction": "Federal", | |
"website": "www.bb.com.br" | |
}, | |
{ | |
"code": "002", |
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
<div id="demo"> | |
<h1>{{bob.fields.firstName}} {{bob.fields.lastName}}</h1> | |
</div> | |
<ul id="humans-list"> | |
<li v-repeat="humans"> | |
{{fields.firstName}} {{fields.lastName}} | |
</li> | |
</ul> |
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
<template> | |
(...) | |
<parallax-scene :scalar-x="25" :scalar-y="15"> | |
<parallax-layer :depth="0.00"> | |
<img src="~assets/parallax/0_sun.png" style="position: relative; top: -4px;" draggable="false" alt=""> | |
</parallax-layer> | |
<parallax-layer :depth="0.33"> | |
<img src="~assets/parallax/1_mountains.png" style="position: relative; top: 40px;" draggable="false" alt=""> | |
</parallax-layer> | |
<parallax-layer :depth="0.67"> |
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
FROM node:10.15-alpine as base | |
RUN apk --no-cache --virtual build-dependencies add \ | |
python \ | |
make \ | |
g++ \ | |
&& rm -f /var/cache/apk/* \ | |
&& npm config set unsafe-perm true \ | |
&& npm install --quiet node-gyp -g --cache /tmp/empty-cache |
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 | |
$array = array( | |
array('texto'=>'Olá ' . $_POST['nome'] . '!'), | |
array('texto'=>'Bem-vindo(a) ' . $_POST['nome']), | |
array('texto'=>'Tudo bem ' . $_POST['nome']) | |
); | |
echo json_encode($array); |
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 criaArrayPrimos = x => | |
criaArray(x) | |
.slice(2) | |
.filter(checaFatores) | |
const criaArray = tamanho => Array.from({ length: tamanho }, (el, index) => index) | |
const checaFatores = n => | |
criaArray(maiorDivisor(n)) | |
.slice(2) |