Skip to content

Instantly share code, notes, and snippets.

View matthendrix's full-sized avatar

Matt Emery matthendrix

View GitHub Profile
@vikpe
vikpe / css_responsive_border.css
Last active May 3, 2021 14:22
CSS responsive border using box-shadow to simulate the same behavior as "border-collapse: collapse"
.responsive-border {
box-shadow: 1px 0 0 0 black,
0 1px 0 0 black,
1px 1px 0 0 black,
1px 0 0 0 black inset,
0 1px 0 0 black inset;
}
@afischoff
afischoff / pardot-form-handler-iframe.html
Last active December 1, 2022 20:51
Example of using a hidden iframe to pass data to a Pardot form handler before continuing with normal form submission.
<html>
<head>
<title>Pardot Example Form Handler Submit</title>
<!-- Include jQuery -->
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<!-- Post to Pardot function -->
<script type="text/javascript">
// set the pardot form handler url and form element id
@nikcub
nikcub / README.md
Created October 4, 2012 13:06
Facebook PHP Source Code from August 2007
<!doctype html>
<!-- http://taylor.fausak.me/2015/01/27/ios-8-web-apps/ -->
<html>
<head>
<title>iOS 8 web app</title>
<!-- CONFIGURATION -->
@tjlytle
tjlytle / imageColor.php
Created November 17, 2009 19:19
Class to find 'average' image color.
<?php
/**
* imageColor
*
* Shows three methods to find the 'average' image color.
*
* Each function expects a gd image object.
*
* imageColor::averageResize($image) resizing to 1px, and checking the color.
* imageColor::averageBorder($image) find the average color of all border pixels.