Some usefull and often used snippets of code for Laravel framework or any other php framework with similar design.
List will be extended in future.
FROM maven:3-openjdk-11 | |
# Compile BaseX, install | |
COPY basex/basex /usr/src/basex/ | |
# install git as "buildnumber-maven-plugin" requires git: | |
RUN apt-get update && apt-get install git && \ | |
cd /usr/src/basex && \ | |
ln -s /usr/src/basex/bin/* /usr/local/bin |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>JavaScript Reads Excel</title> | |
<style> | |
body { | |
background-color: darkslategrey; |
Array.prototype.groupBy = function(prop) { | |
return this.reduce(function(groups, item) { | |
var val = item[prop]; | |
groups[val] = groups[val] || []; | |
groups[val].push(item); | |
return groups; | |
}, {}); | |
} | |
var myList = [ |
<?php | |
$characterMap = [ | |
'ð' => 'th', 'Ð' => 'Th', 'Þ' => 'Th', 'þ' => 'th', 'đ' => 'd', | |
'Ƿ' => 'W', 'ƿ' => 'w', 'Ȝ' => 'G', 'ȝ' => 'g', 'æ' => 'ae', | |
'Æ' => 'AE' | |
]; |