Skip to content

Instantly share code, notes, and snippets.

@Darrenmeehan
Darrenmeehan / HN.md
Last active Jan 18, 2021 — forked from xypnox/HN.md
HN but it is not an eyesore
View HN.md

HN but it is not an eyesore

Use Stylus, copy the CSS, tweak colors etc.

View keybase.md

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:

View Facebook Lookback Downloader
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;
@Darrenmeehan
Darrenmeehan / paypal-shortcode.php
Created Aug 5, 2012
This is a simple WordPress shortcode to add a Paypal button
View paypal-shortcode.php
<?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:
@Darrenmeehan
Darrenmeehan / home_functions.php
Created Jun 6, 2012
Code for homepage, displays 6 random members
View home_functions.php
<?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');