Skip to content

Instantly share code, notes, and snippets.

View prappo's full-sized avatar
🏍️
Biker

Prappo prappo

🏍️
Biker
View GitHub Profile
@prappo
prappo / animation.html
Created June 14, 2023 15:22
konva js animation
<!DOCTYPE html>
<html lang="en">
<head>
<title>Home</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width" />
<style>
body {
font-family: sans-serif;
}
This file has been truncated, but you can view the full file.
(function(Qi,Pu){typeof exports=="object"&&typeof module<"u"?Pu(exports):typeof define=="function"&&define.amd?define(["exports"],Pu):(Qi=typeof globalThis<"u"?globalThis:Qi||self,Pu(Qi.labelbaker=Qi.labelbaker||{}))})(this,function(Qi){"use strict";const Pu="";var Xx=(A,t,e)=>{if(!t.has(A))throw TypeError("Cannot "+e)},Im=(A,t,e)=>{if(t.has(A))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(A):t.set(A,e)},Tu=(A,t,e)=>(Xx(A,t,"access private method"),e),Yx=Math.PI/180;function Jx(){return typeof window<"u"&&({}.toString.call(window)==="[object Window]"||{}.toString.call(window)==="[object global]")}const is=typeof global<"u"?global:typeof window<"u"?window:typeof WorkerGlobalScope<"u"?self:{},Wt={_global:is,version:"8.4.2",isBrowser:Jx(),isUnminified:/param/.test(function(A){}.toString()),dblClickWindow:400,getAngle(A){return Wt.angleDeg?A*Yx:A},enableTrace:!1,pointerEventsEnabled:!0,autoDrawEnabled:!0,hitOnDragEnabled:!1,capturePointerEventsEnabled:!1,_mouseLis
@prappo
prappo / install_fonts.sh
Created January 27, 2023 15:31 — forked from iacchus/install_fonts.sh
Install all Google Fonts on Linux (Debian/Ubuntu etc.)
#!/usr/bin/env sh
# Original author: Michalis Georgiou <mechmg93@gmail.comr>
# Modified by Andrew http://www.webupd8.org <andrew@webupd8.org>
# Current version by Kassius Iacchus https://github.com/iacchus/
# Depends on: `wget`
#
# Install `wget` on Debian/Ubuntu with:
# apt install wget
@prappo
prappo / .wp-env.json
Last active September 21, 2022 09:10
Enable WordPress debugging and map debug.log file for wp-env
{
"plugins": ["."],
"config": {
"WP_DEBUG": true,
"WP_DEBUG_LOG": true,
"SCRIPT_DEBUG": true,
"WP_DEBUG_DISPLAY": true,
"WP_PHP_BINARY": "php"
},
"mappings": {
version: "3.7"
services:
traefik:
image: traefik:v2.0
command: --providers.docker
ports:
- "80:80"
volumes:
- /var/run/docker.sock:/var/run/docker.sock:rw
web1:
@prappo
prappo / docker-compose.yml
Created October 6, 2021 11:32
Docker WordPress Development Environment
version: "3.3"
services:
db:
container_name: 'wordpress-database'
image: 'mysql:5.7'
volumes:
- './database/mysql:/var/lib/mysql'
ports:
- 18766:3306
environment:
@prappo
prappo / media-query.css
Created June 11, 2021 18:50 — forked from gokulkrishh/media-query.css
CSS Media Queries for Desktop, Tablet, Mobile.
/*
##Device = Desktops
##Screen = 1281px to higher resolution desktops
*/
@media (min-width: 1281px) {
/* CSS */
@prappo
prappo / active.js
Last active March 1, 2021 17:22
menu items active based on hash url
jQuery(document).ready(function() {
if (/Android|webOS|iPhone|iPad|Mac|Macintosh|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {
function setActive() {
setTimeout(function() {
var hash = window.location.hash.substr(1);
if (hash) {
@prappo
prappo / grapesjssearch.js
Created February 23, 2021 12:04
Grapesjs Search blocks
var bm = editor.BlockManager;
var blocks = bm.getAll();
bm.render(blocks.filter(
block => {
let blockName = block.attributes.label;
return blockName.toLowerCase().includes(text);
}));
{
AF: 'Afghanistan',
AL: 'Albania',
DZ: 'Algeria',
AS: 'American Samoa',
AD: 'Andorra',
AO: 'Angola',
AI: 'Anguilla',
AQ: 'Antarctica',
AG: 'Antigua and Barbuda',