Skip to content

Instantly share code, notes, and snippets.

View silencesys's full-sized avatar
📚
Lost in space and time.

Martin Rocek silencesys

📚
Lost in space and time.
View GitHub Profile
@silencesys
silencesys / charactermap.php
Last active May 20, 2017 19:58
Anglo-saxon Character map
<?php
$characterMap = [
'ð' => 'th', 'Ð' => 'Th', 'Þ' => 'Th', 'þ' => 'th', 'đ' => 'd',
'Ƿ' => 'W', 'ƿ' => 'w', 'Ȝ' => 'G', 'ȝ' => 'g', 'æ' => 'ae',
'Æ' => 'AE'
];
@silencesys
silencesys / commit-emoji.md
Last active March 5, 2021 08:45 — forked from pocotan001/commit-emoji.md
List of emoji for git commits.

Git Commit Message

All Git Commit Messages MUST meet with this Text Format:

:emoji: Subject
(Only One NewLine)
Message Body
(Only One NewLine)
Ref &lt;###&gt;
@silencesys
silencesys / readme.md
Last active June 18, 2019 09:25
Usefull and often used snippets of code for Laravel or any other php application with similar design.

Snippets for Laravel

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.

@silencesys
silencesys / groupBy.js
Last active June 18, 2019 09:30
Javascript Helper functions
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 = [
@silencesys
silencesys / index.html
Last active December 15, 2019 17:31
Read XLSX file in JavaScript.
<!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;
@silencesys
silencesys / BaseX.Dockerfile
Created January 28, 2023 20:38
Docker file to create BaseX Docker image
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