Skip to content

Instantly share code, notes, and snippets.

View the-codepunker's full-sized avatar

Gheorghe Daniel the-codepunker

View GitHub Profile
<!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;
}
@the-codepunker
the-codepunker / MandrillApi.js
Last active October 21, 2021 05:44
Send emails with attachments using the Mandrill API and JavaScript
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 ] );
@the-codepunker
the-codepunker / pmcomfort-logic.php
Last active January 27, 2016 18:21
pmcomfort-logic
<?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') : '';
DESC