Skip to content

Instantly share code, notes, and snippets.

View muuvmuuv's full-sized avatar
🎱
Working on @m8finder

Marvin Heilemann muuvmuuv

🎱
Working on @m8finder
View GitHub Profile
@muuvmuuv
muuvmuuv / .devcontainer_Dockerfile
Last active October 16, 2023 22:20
ARM64 (Silicon) Tensorflow IO devcontainer configuration with Poetry to avoid the headache
FROM mcr.microsoft.com/devcontainers/python:3.10
RUN curl -sSL https://install.python-poetry.org | POETRY_HOME=/usr/local python3 -
USER vscode
RUN /usr/local/bin/poetry config virtualenvs.in-project true
@muuvmuuv
muuvmuuv / how-to-php-fpm-pm-optimized.md
Last active September 5, 2024 12:43
Get optimized PHP-fpm "pm" config
@muuvmuuv
muuvmuuv / angular-example-data.ts
Last active July 5, 2021 21:14
Prepare your Angular application with example data without deploying it to production
import { Storage } from '@capacitor/storage'
import * as ME from 'src/data/me.json'
import { STORAGE_KEY_ME_DATA } from './app/models/auth'
/**
* Prepare the application for development by pushing some example
* data into the cache. See {@link main.ts} for implementation details.
*/
@muuvmuuv
muuvmuuv / hide-angular-component.ts
Last active June 10, 2021 12:37
Hide Angular element from dom with Angular animations
@Component({
animations: [
trigger('visible', [
state(
'false',
style({
height: '0',
display: 'none',
})
),
@muuvmuuv
muuvmuuv / cypress-plugin-use-puppeteer.js
Last active June 10, 2021 12:38
Use puppeteer browser with Cypress to avoid installing browsers on your system yourself or in CI
const puppeteer = require('puppeteer')
/**
* Because no browsers are bundled with Cypress we will use the already installed
* puppeteer binary that we use for Karma. This function returns information
* about the latest downloaded binary for Chrome by Puppeteer. It works for now
* but might throw errors in future, it is a workaround not a plugin.
*
* @see https://docs.cypress.io/guides/guides/launching-browsers.html#Customize-available-browsers
*/