Skip to content

Instantly share code, notes, and snippets.

@darrenmeehan
darrenmeehan / home_functions.php
Created June 6, 2012 14:01
Code for homepage, displays 6 random members
<?php
/*
* Function Name: buat_shortcode_grabber()
* Description: This function reads shortcodes from page and call template function according to user type
*/
function buat_shortcode_grabber( $atts ) {
$buat_default_type=get_option('buat_default_type');
@darrenmeehan
darrenmeehan / paypal-shortcode.php
Created August 5, 2012 18:01
This is a simple WordPress shortcode to add a Paypal button
<?php
/*
Plugin Name: PayPal Shortcode by Darren
Plugin URI: https://gist.github.com/3266387
Description: This is a simple shortcode to add a Paypal button, just use [paypal] as the shortcode.
Version: 0.1
Author:
Author URI:
License:
License URI:
var xLBD = {};
xLBD.c = function (){
xLBD.f = unescape(document.querySelector("[flashvars]").getAttribute("flashvars")).substring(7);
xLBD.f = JSON.parse(xLBD.f.substring(0, xLBD.f.lastIndexOf("}") + 1)).video_data[0].hd_src;
xLBD.a = "<div style='position:absolute;top:100px;height:300px;left:15%;background:#fff;border:10px solid #000;font-size:5em;padding:100px;'>Click <a download='lookback.mp4' href='"+xLBD.f+"'>here<\/a> to download your lookBack video.</div>";
document.body.innerHTML += xLBD.a;
}
if(document.readyState == "complete")
xLBD.c();
else window.onload = xLBD.c;

Keybase proof

I hereby claim:

  • I am darrenmeehan on github.
  • I am darrenmeehan (https://keybase.io/darrenmeehan) on keybase.
  • I have a public key ASD9sYPrOS8RI-DPWnbq-Nli4Wx1f7r7EcUV-ZOKbiTIFgo

To claim this, I am signing this object:

@darrenmeehan
darrenmeehan / HN.md
Last active January 18, 2021 09:22 — forked from xypnox/HN.md
HN but it is not an eyesore

HN but it is not an eyesore

Use Stylus, copy the CSS, tweak colors etc.

@darrenmeehan
darrenmeehan / Dockerfile
Created March 9, 2023 14:19
Specific awscli version installed along with latest Python3 AWS Lambda base image
FROM public.ecr.aws/lambda/python:3.9
# Get the latest version from https://raw.githubusercontent.com/aws/aws-cli/v2/CHANGELOG.rst
ARG AWSCLI_VERSION="2.11.1"
RUN yum update && yum install unzip -y
RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64-2.0.30.zip" -o "awscliv2.zip" \
&& unzip awscliv2.zip \
&& ./aws/install \