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> | |
<head> | |
<title>Checkbox</title> | |
<style> | |
input[type=checkbox] { | |
display:none; | |
} | |
input[type=checkbox] + label | |
{ |
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 | |
// http://michelf.com/projects/php-markdown/extra/ | |
require_once( dirname(__FILE__) . '/markdown-extra/markdown-extra.php' ); | |
/** | |
* Format posts/comments with Markdown at display time. Only process | |
* blocks starting with \^md\s+. | |
**/ | |
function p2mis_comment_markdown( $text ) { |
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
img.grayscale.disabled { | |
filter: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'grayscale\'><feColorMatrix type=\'matrix\' values=\'1 0 0 0 0, 0 1 0 0 0, 0 0 1 0 0, 0 0 0 1 0\'/></filter></svg>#grayscale"); | |
-webkit-filter: grayscale(0%); | |
} |
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
@timezones = [ | |
{name: 'MIT', info: 'Midway Islands Time', seconds: -39600}, | |
{name: 'MIT', info: 'Hawaii Standard Time', seconds: -36000}, | |
{name: 'AKST', info: 'Alaska Standard Time', seconds: -32400}, | |
{name: 'AKDT', info: 'Alaska Daylight Savings Time', seconds: -28800}, | |
{name: 'PST', info: 'Pacific Standard Time', seconds: -28800}, | |
{name: 'PDT', info: 'Pacific Daylight Savings Time', seconds: -25200}, | |
{name: 'MST', info: 'Mountain Standard Time', seconds: -25200, country: "United States"}, | |
{name: 'MDT', info: 'Mountain Daylight Savings Time', seconds: -21600}, | |
{name: 'CST', info: 'Central Standard Time', seconds: -21600, country: "United States"}, |
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 | |
//made up x start positions... obviously, I think they are a pixel offset? | |
//days | |
$text = $interval->format('%D'); | |
imagettftext ($image , $font['size'] , $font['angle'] , 10 , $font['y-offset'] , $font['color'] , $font['file'], $text ); | |
//separator | |
$text = $interval->format(':'); |
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 | |
/* | |
* Podcast URL Extractor | |
* implemented at http://itunes.so-nik.com | |
* | |
* All code has been re-written by lasavior. | |
* Original code & inspiration from Michael Sitarzewski, zerologic.com | |
* | |
* Ex: http://ax.phobos.apple.com.edgesuite.net/WebObjects/MZStore.woa/wa/viewPodcast?id=269238657 |
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 | |
$fp = @fopen( $file_path, 'rb' ); | |
$size = filesize( $file_path ); | |
$length = $size; | |
$start = 0; | |
$end = $size - 1; | |
header( "Accept-Ranges: 0-$length" ); |
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<title>Single-Column Responsive Email Template</title> | |
<style> | |
@media only screen and (min-device-width: 541px) { | |
.content { |
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
////////////////////////////////////////////////////////////// | |
// Font Variables (http://cssfontstack.com/) | |
////////////////////////////////////////////////////////////// | |
// | |
// Serif font-stacks | |
// | |
$baskerville-font-stack: "Big Caslon", "Book Antiqua", "Palatino Linotype", Georgia, serif !default; |
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 | |
header('Content-type: text/xml'); | |
/* | |
Runs from a directory containing files to provide an | |
RSS 2.0 feed that contains the list and modification times for all the | |
files. | |
*/ | |
$feedName = "My Audio Feed"; | |
$feedDesc = "Feed for the my audio files in some server folder"; |
OlderNewer