Skip to content

Instantly share code, notes, and snippets.

Avatar

Gheorghe Daniel the-codepunker

View GitHub Profile
View pmcomfort-logic.php
<?php
$input = JFactory::getApplication()->input;
$menu = JFactory::getApplication()->getMenu();
$menuitem = $menu->getActive();
$removeTopModules = false;
$removecomponent = false;
$class_suffix = (!empty($menuitem)) ? $menuitem->params->get('pageclass_sfx') : '';
@the-codepunker
the-codepunker / MandrillApi.js
Last active Oct 21, 2021
Send emails with attachments using the Mandrill API and JavaScript
View MandrillApi.js
var MandrillApi = {};
MandrillApi.key = 'KpRWQQv1hIhKhkS1i7Az2A';
MandrillApi.theform = $('#demo');
MandrillApi.arrayBufferToProperBase64 = function(buffer) {
var binary = '';
var bytes = new Uint8Array( buffer );
var len = bytes.byteLength;
for (var i = 0; i < len; i++) {
binary += String.fromCharCode( bytes[ i ] );
View 3dwow.html
<!DOCTYPE HTML>
<html>
<head>
<title>3D Cube Flip Effect for WOW.js</title>
<link href='//fonts.googleapis.com/css?family=Lato:300,400' rel='stylesheet' type='text/css'>
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<style>
@-ms-viewport{
width: device-width;
}