Skip to content

Instantly share code, notes, and snippets.

@simivar
simivar / print_r_reverse.php
Last active November 4, 2023 23:27
PHP function to reverse print_r function
<?php
/**
* I've published a fully-tested Composer library with type-casting.
* @see https://github.com/simivar/reverse-print-r
*/
/**
* Matt: core
* Trixor: object handling
* lech: Windows suppport
@betobaz
betobaz / custom_clients_base_views_map-dashlet_map-dashlet.js
Last active December 19, 2022 02:07
SugarCRM::Sidecar::Load Google Maps Api Async
({
plugins: ['Dashlet'],
initialize: function (options) {
var self = this;
this._super('initialize', [options]);
// Escuchador que se detona cuando se ha detectado que el api de
self.context.on('google:maps:api:load', _.bind(self._googleMapsApiLoadHandler, self));
// Se define la función callback que se va a ejecutar cuando google maps api ya esta disponible
window.mapsApiCallback = function(){
console.log('hola mundo, maps api cargado');
@krisanalfa
krisanalfa / macosx-install-php-oracle-oci8-pdo_oci.md
Last active January 11, 2024 22:00 — forked from gido/macosx-install-php-oracle-oci8.md
Install OCI8 and / or PDO_OCI on OSX via Brew

Installation

This procedure is tested on Mac OS X 10.10.5 with Developpers tools installed (xCode).

PHP 5.6 installed with Homebrew.

Preparation

Download the following files from Oracle website (yes, you need to create an account and accept terms):