A Pen by Jason Rundell on CodePen.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function birdnapping($strUsername,$intShowTweets) { | |
$html_url="http://twitter.com/$strUsername"; | |
$handle = @fopen($html_url, "r"); | |
if ($handle) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link rel="import" href="../smoothie-chart/smoothie-chart.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { | |
position: absolute; | |
width: 100%; | |
height: 100%; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$datestamp = date("Y-m-d"); // used with file naming | |
$domain = "domain.com"; // change to the domain name of your client | |
$email = "[email protected]"; // 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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 |
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: