Here is package.json used for this demo
{
"name": "2026-01-asg-bratislava-demo",
"type": "module",
"private": true,
"devDependencies": {| #!/usr/bin/env bash | |
| sudo rm -rf $(xcode-select --print-path) | |
| xcode-select --install |
| "@editorjs/editorjs": "^2.30.7", | |
| "@react-router/node": "^7.2.0", | |
| "@react-router/serve": "^7.2.0", | |
| "editorjs-html": "^3.4.3", | |
| "react": "^19.0.0", | |
| "react-dom": "^19.0.0", | |
| "react-router": "^7.2.0", | |
| "react-router-aws": "^2.0.0-beta.2", | |
| "typescript": "^5.7.3", |
| <?php | |
| namespace ib\Misc; | |
| /** | |
| * Class Slugifier. | |
| * @author Ivan Barlog <ivan.barlog@everlution.sk> | |
| */ | |
| class Slugifier | |
| { |
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
| /*! | |
| * Nestable jQuery Plugin - Copyright (c) 2014 Ramon Smit - https://github.com/RamonSmit/Nestable | |
| */ | |
| ; | |
| (function($, window, document, undefined) { | |
| var hasTouch = 'ontouchstart' in window; | |
| /** | |
| * Detect CSS pointer-events property | |
| * events are normally disabled on the dragging element to avoid conflicts |
| #!/bin/bash | |
| read -p "repository (owner/repository): " REPO | |
| read -p "user: " USER | |
| read -p "password: " -s PASS | |
| # Delete default labels | |
| curl --user "$USER:$PASS" --include --request DELETE "https://api.github.com/repos/$REPO/labels/bug" | |
| curl --user "$USER:$PASS" --include --request DELETE "https://api.github.com/repos/$REPO/labels/duplicate" | |
| curl --user "$USER:$PASS" --include --request DELETE "https://api.github.com/repos/$REPO/labels/enhancement" |
| #include <stdio.h> | |
| unsigned int factorial(unsigned int x); | |
| int main() { | |
| /* testing code */ | |
| printf("1! = %i\n", factorial(1)); | |
| printf("3! = %i\n", factorial(3)); | |
| printf("5! = %i\n", factorial(5)); | |
| } |
| #!/bin/bash | |
| if [ "$EUID" -ne 0 ]; then | |
| echo "Please run as root" | |
| echo "Provide first argument which is path to project relative to /var/www/src/ folder" | |
| echo "Provide second argument which is domain which will be added to hosts file (.dev is added automatically)" | |
| exit | |
| fi |
| #!/bin/bash | |
| V=${1-"4.2.0"} | |
| curl http://www.adminer.org/latest-en.php -L --create-dirs -o /var/www/src/adminer-${V}/index.php | |
| chown -R ivan:ivan adminer-${V}/ | |
| chmod -R 0755 adminer-${V}/ | |
| cp /etc/apache2/sites-available/000-default.conf /etc/apache2/sites-available/adminer-${V}.conf | |
| sed -i -e 's/#ServerName www.example.com/ServerName adminer.dev/g;s/\/var\/www\/html/\/var\/www\/http\/adminer/g;s/.log/_adminer.log/g' /etc/apache2/sites-available/adminer-${V}.conf |