Skip to content

Instantly share code, notes, and snippets.

View muddylemon's full-sized avatar

Lantz Kidwell muddylemon

View GitHub Profile
@muddylemon
muddylemon / gist:3879996
Created October 12, 2012 16:09
I got 99 mime types but .btch ain't one
<?php
$mimes = array(
'hqx' => 'application/mac-binhex40',
'cpt' => 'application/mac-compactpro',
'csv' => array('text/x-comma-separated-values', 'text/comma-separated-values', 'application/octet-stream'),
'bin' => 'application/macbinary',
'dms' => 'application/octet-stream',
'lha' => 'application/octet-stream',
'lzh' => 'application/octet-stream',
@muddylemon
muddylemon / gist:3146475
Created July 19, 2012 20:16
Letter Scrambler
<?php
function scramble($words) {
$letter_array = str_split($words);
shuffle($letter_array);
return implode($letter_array);
}
// usage
echo scramble("Words and stuff");
@muddylemon
muddylemon / standard-privacy-policy.html
Created May 13, 2012 02:44
Standard Privacy Policy
<div class="privacy-policy">
<h1>Privacy Policy</h1>
<section id="privacy-information-we-collect">
<h3>What information do we collect?</h3>
<p>We collect information from you when you register on our site, place an order, subscribe to our newsletter, respond to a survey or fill out a form.</p>
<p>When ordering or registering on our site, as appropriate, you may be asked to enter your: name, e-mail address, mailing address, phone number, credit card information or social security number. You may, however, visit our site anonymously.
Google, as a third party vendor, uses cookies to serve ads on your site. Google's use of the DART cookie enables it to serve ads to your users based on their visit to your sites and other sites on the Internet. Users may opt out of the use of the DART cookie by visiting the Google ad and content network privacy policy.</p>
</section>