Skip to content

Instantly share code, notes, and snippets.

const admin_icons = {};
admin_icons.builtmighty = <svg width="74" height="74" viewBox="0 0 74 74" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M66.711 51.1786L53.0102 37.4669L66.711 23.7646V1H8V16.8045H51.3165L41.8357 26.2929L38.77 29.361L30.6707 37.4669L38.3632 45.175L41.8357 48.6503L50.9096 57.7315H8V73.536H66.711V51.1786Z" fill="#D4121F"/><path d="M17.1213 37.4762L25.2301 29.3608H8V45.1748H24.8043L20.7546 41.1124L17.1213 37.4762Z" fill="#D4121F"/></svg>
export default admin_icons;
@zimaben
zimaben / uploads.ini
Created June 27, 2022 00:29
uploads.ini file for Wordpress Docker
file_uploads = On
memory_limit = 500M
upload_max_filesize = 500M
post_max_size = 500M
max_execution_time = 600
@zimaben
zimaben / docker-compose.yml
Last active June 27, 2022 00:26
Docker compose Wordpress Localhost setup
services:
db:
image: mariadb:10.3
container_name: mariadb-1
volumes:
- db_data:/var/lib/mysql
- ./shared_data:/docker-entrypoint-initdb.d
restart: always
ports:
<?php
use Carbon_Fields\Container;
use Carbon_Fields\Field;
/*
* This File Creates a Theme Options page with Carbon Fields and adds the info
* we need to do basic Slack Integration
*
*/
if( class_exists('Carbon_Fields\Container')){
<?php
namespace justinexample\integrations;
Class SlackIntegration {
#this is here to carry information from the WP environment to Slack, you can add args as needed for your application
private static $allowed_args = array(
'message',
);
@zimaben
zimaben / myscript.sh
Created May 29, 2021 04:30 — forked from bradtraversy/myscript.sh
Basic Shell Scripting
#! /bin/bash
# ECHO COMMAND
# echo Hello World!
# VARIABLES
# Uppercase by convention
# Letters, numbers, underscores
NAME="Bob"
# echo "My name is $NAME"
@zimaben
zimaben / PromiseClass.js
Last active March 26, 2021 15:05
Starting Point for a Promise-based class that returns its state
class PromiseClassStarter {
constructor(object) {
//element to attach state to
this.element = (object.hasOwnProperty('element')) ? object.element : false;
//HTML value of the current state of execution
this.state = (object.hasOwnProperty('state')) ? object.state : '';
//Type. message(default) = self-destructs after timeout,
// confirm = user has buttons to resolve or reject,
// dismiss = Dismissable Message (resolves true)
this.type = (object.hasOwnProperty('type')) ? object.type : 'message';
@zimaben
zimaben / Facial_Detection_Processing.js
Created February 3, 2021 09:18
Facial Detection Squares
/* See the resulting screen:
https://snipboard.io/E3zOoM.jpg
*/
let cameraCheckStateSave = async(button, video, canvas, args, loop, resizedDetections ) => {
video.pause();
/* BLUE */
/* put raw resizedDetections Box on canvas */
faceapi.draw.drawDetections(canvas, resizedDetections);
*{
font-family: "Comic Sans MS", "Comic Sans", cursive;
}