Skip to content

Instantly share code, notes, and snippets.

View craigpotter's full-sized avatar

Craig Potter craigpotter

View GitHub Profile
@craigpotter
craigpotter / issuu.php
Created August 10, 2012 11:40 — forked from fdc263/issuu.php
Issuu API Client for PHP
<?php
/**
* IssuuClient hooks into Issuu's API
*
* example:
* include 'IssuuClient.php';
* $issuu = new IssuuClient(pubKey, privKey, apiAdr);
* $issuu->openAction('issuu.document.url_upload');
* $issuu->slurpUrl = 'pdfurl.pdf';
* $issuu->executeAction();
@craigpotter
craigpotter / ssl_on_wamp.pl
Created August 15, 2017 11:44 — forked from muthuishere/ssl_on_wamp.pl
Setup SSL on WAMP for virtual server Virtual hosts on wamp
set WAMP_INSTALL_LOCATION="c:\wamp" #modify
1. Open command prompt as admin Goto %WAMP_INSTALL_LOCATION%\bin\apache\apache2.x.x\bin>
2. Type => set OPENSSL_CONF=%WAMP_INSTALL_LOCATION%\bin\apache\apache2.x.x\conf\openssl.cnf
@craigpotter
craigpotter / equalheightslick.js
Created June 28, 2018 11:43 — forked from proweb/equalheightslick.js
Slick carousel equal height slides
$(window).load(function() {
$('.slides').on('setPosition', function () {
$(this).find('.slick-slide').height('auto');
var slickTrack = $(this).find('.slick-track');
var slickTrackHeight = $(slickTrack).height();
$(this).find('.slick-slide').css('height', slickTrackHeight + 'px');
});
})