Skip to content

Instantly share code, notes, and snippets.

Avatar
:octocat:
Toronto, Canada

Jason Rundell (he/him) jasonrundell

:octocat:
Toronto, Canada
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am jasonrundell on github.
  • I am jasonrundell (https://keybase.io/jasonrundell) on keybase.
  • I have a public key ASBXjb6C2ICWYgXQqjOhos-_q39exxjBbK7I1NTHb4ukggo

To claim this, I am signing this object:

View Columns.html
<html lang="en">
<head>
<meta charset="UTF-8" />
<link
rel="apple-touch-icon"
type="image/png"
href="https://static.codepen.io/assets/favicon/apple-touch-icon-5ae1a0698dcc2402e9712f7d01ed509a57814f994c660df9f7a952f3060705ee.png"
/>
<meta name="apple-mobile-web-app-title" content="CodePen" />
<link
View s3-upload-example.php
<?php
$datestamp = date("Y-m-d"); // used with file naming
$domain = "domain.com"; // change to the domain name of your client
$email = "email@yourdomain.com"; // change to your contact email
$db_host = "YOUR_DB_HOST";
$db_user = "YOUR_DB_USERNAME";
$db_pass = "YOUR_DB_PASSWORD";
$db_name = "YOUR_DB_NAME";
$csv_file_path = "$domain-$datestamp.csv";
$s3_bucket = "your_s3_bucket_name"; // the name of your root backup folder on S3
View designer.html
<link rel="import" href="../smoothie-chart/smoothie-chart.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
View birdnapper-1-1-widget.php
<ul>
<li>
<div class="sidebarbox">
<h2 class="widgettitle">Twitter Feed</h2>
<?php include($_SERVER['DOCUMENT_ROOT']."/wp-content/plugins/birdnapper/birdnapper.php"); ?>
<?php echo birdnapping("TwitterUserName",5); ?>
</div></li>
</ul>
View birdnapper-1-1.php
<?php
function birdnapping($strUsername,$intShowTweets) {
$html_url="http://twitter.com/$strUsername";
$handle = @fopen($html_url, "r");
if ($handle) {
View simple-unicode-decoder-for-php.php
<?php
function simple_unicode_decode($str) {
$str=str_ireplace("u0001","?",$str);
$str=str_ireplace("u0002","?",$str);
$str=str_ireplace("u0003","?",$str);
$str=str_ireplace("u0004","?",$str);
$str=str_ireplace("u0005","?",$str);
$str=str_ireplace("u0006","?",$str);
$str=str_ireplace("u0007","•",$str);
@jasonrundell
jasonrundell / php-akamai-purge.php
Created Dec 21, 2011
A simple function to include into your own project for sending a purge request via PHP SOAP. Follow/Fork me at https://github.com/jasonrundell/PHP-Akamai-Purge.
View php-akamai-purge.php
<?php
/*************************
*
PHP Akamai Purge
*
By: Jason Rundell <jason dot rundell (at) gmail dot com> http://jasonrundell.com @jasonrundell
Started: December 20th 2011
Fork me: https://github.com/jasonrundell/PHP-Akamai-Purge
Cudos: https://github.com/hradtke http://hermanradtke.com @hermanradtke
I came across https://bugs.php.net/bug.php?id=43910 while doing a Google search for