Skip to content

Instantly share code, notes, and snippets.

View mecachisenros's full-sized avatar

Andrei Mondoc mecachisenros

View GitHub Profile
@eldadfux
eldadfux / .env
Last active June 29, 2022 05:24
Appwrite 0.14 - Stack
_APP_ENV=production
_APP_LOCALE=en
_APP_OPTIONS_ABUSE=enabled
_APP_OPTIONS_FORCE_HTTPS=disabled
_APP_OPENSSL_KEY_V1=your-secret-key
_APP_DOMAIN=localhost
_APP_DOMAIN_TARGET=localhost
_APP_CONSOLE_WHITELIST_ROOT=enabled
_APP_CONSOLE_WHITELIST_EMAILS=
_APP_CONSOLE_WHITELIST_IPS=
@ayyybe
ayyybe / ccdl.command
Last active May 20, 2024 22:48
Adobe Offline Package Builder v0.1.2 (macOS only) --- No longer being maintained.
#!/bin/bash
CYAN="$(tput bold; tput setaf 6)"
RESET="$(tput sgr0)"
clear
if command -v python3 > /dev/null 2>&1; then
if [ $(python3 -c "print('ye')") = "ye" ]; then
clear
@michaelmcandrew
michaelmcandrew / civicrm_user_fields.php
Last active November 22, 2018 02:26
Proof of concept WP shortcode to display fields from logged in and other contacts
<?php
/*
This is very much WIP / proof of concept / scratching an itch. Lots of stuff missing, like ACL.
Just sharing some early attempts at WP plugin development. Feedback welcome.
For example...
@totten
totten / notes.md
Last active February 16, 2021 14:27
An Opinionated Hierarchy of Unified Page Architectures (OHUPA)

An Opinionated Hierarchy of Unified Page Architectures (OHUPA)

OHUPA is a classification scheme for page/form/layout/composition-systems. The main concern of OHUPA is how much your ecosystem relies on you to provide clear, stable, high-quality components.

Table of Contents

  • Context
  • Level 0: Non-Componentized
  • Level 1: Component-Oriented; Component-Library
  • Level 2: Developer Customization (e.g Hook, Selector)
@Shelob9
Shelob9 / config.php
Created May 10, 2016 18:29
Code examples for creating Caldera Forms add-on UI, excerpted from https://calderawp.com/downloads/braintree-for-caldera-forms/
<?php
//////////////////////////////////////////////////////////////////////////
//This is the config.php file that generates the processor admin UI /////
////////////////////////////////////////////////////////////////////////
//When you register your processor on the caldera_forms_get_form_processors filter, you set an argument for "template" with the path to this file.
if ( class_exists( 'Caldera_Forms_Processor_UI' ) ) {
//show an SSL required notice if is_ssl() is false
@utsengar
utsengar / Sync_Async_loading_handlebars.js
Created April 2, 2012 20:41
synchronous and asynchronous loading of handlebars templates
/*
* This decorates Handlebars.js with the ability to load
* templates from an external source, with light caching.
*
* To render a template, pass a closure that will receive the
* template as a function parameter, eg,
* T.render('templateName', function(t) {
* $('#somediv').html( t() );
* });
* Source: https://github.com/wycats/handlebars.js/issues/82
<?php
/*
Plugin Name: Instrument Hooks for WordPress
Description: Instruments Hooks for a Page. Outputs during the Shutdown Hook.
Version: 0.1
Author: Mike Schinkel
Author URI: http://mikeschinkel.com
*/
if (isset($_GET['instrument']) && $_GET['instrument']=='hooks') {