Skip to content

Instantly share code, notes, and snippets.

View askvortsov1's full-sized avatar

Alexander Skvortsov askvortsov1

View GitHub Profile
#!/bin/bash
shopt -s extglob
set -e
SCRIPT_SRC=`readlink -f "${BASH_SOURCE[0]}"`
# consts for flarum PHP-installable packages.
PHP_PACKAGES_DIR="packages"
PHP_PACKAGES_REPOS=("core" "testing" "phpstan" "akismet" "approval" "bbcode" "emoji" "lang-english" "flags"
@askvortsov1
askvortsov1 / mdarea.js
Last active June 26, 2020 16:48
Updated mdarea.js
(function (root, factory) {
if (typeof define === 'function' && define.amd) {
define([], factory);
} else if (typeof module === 'object' && module.exports) {
module.exports = factory();
} else {
root.MarkdownArea = factory();
}
})(typeof self !== 'undefined' ? self : this, function () {