Skip to content

Instantly share code, notes, and snippets.

View keevitaja's full-sized avatar
💭
building jedmud

Tanel Tammik keevitaja

💭
building jedmud
View GitHub Profile
const print = obj => {
for (const key in obj) {
console.log(obj[key])
}
}
const num = {}
num[5] = 5
num[2] = 2
@keevitaja
keevitaja / gist:f4c387c9d7a7cb10b8cb8482f7e72f3a
Created April 19, 2024 11:27
Custom docker image based on official php:8.3-apache image which is based on debian.
FROM php:8.3-apache
ARG DOCKER_APP_UID
ARG DOCKER_APP_GID
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL C.UTF-8
RUN apt-get update && apt-get install -y \
<?php
/**
* .htaccess file:
*
* RewriteEngine On
* RewriteBase /
*
* # Skip existing files and directories
* RewriteCond %{REQUEST_FILENAME} !-f
#!/usr/bin/env node
/* Barnsley fern → PNG (Node.js + pngjs)
* Usage: node fern.js [width] [height] [iterations] [outfile]
*/
const fs = require("fs");
const { PNG } = require("pngjs");
const width = parseInt(process.argv[2] || "2000", 10);
const height = parseInt(process.argv[3] || "3000", 10);