Instantly share code, notes, and snippets.

View casey changelog.txt
05/08/2011 - Creation of Casey
xx/xx/2014 - Further Updates
20/12/2017 - Use bcrypt for storing passwords instead of md5
- Use header() when logging in instead of meta refresh
- Show error message when image fails to upload
- Fixed errors in installer
- Fixed mistakes in chmod instructions in installer
View default tumblr theme.html
<!DOCTYPE html>
<!--[if IE 8]><html class="lt-ie10 lt-ie9"> <![endif]-->
<!--[if IE 9]><html class="lt-ie10"> <![endif]-->
<!--[if gt IE 9]><!--> <html> <!--<![endif]-->
<meta charset="utf-8">
<title>{Title}{block:SearchPage} ({lang:Search results for SearchQuery}){/block:SearchPage}{block:PermalinkPage}{block:PostSummary} — {PostSummary}{/block:PostSummary}{/block:PermalinkPage}</title>
<meta name="description" content="{MetaDescription}">
View dabblet.css
margin: 0 auto;
width: 600px;
View stopforumspam.php
function get_web_page($url, $cookiesIn = '')
$options = array(
CURLOPT_RETURNTRANSFER => true, // return web page
CURLOPT_HEADER => true, //return headers in addition to content
CURLOPT_FOLLOWLOCATION => true, // follow redirects
CURLOPT_ENCODING => "", // handle all encodings
CURLOPT_AUTOREFERER => true, // set referer on redirect
CURLOPT_CONNECTTIMEOUT => 120, // timeout on connect
View gist:2f75a58cc8b9f86c84c5ff7b8945f2b4
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "">
<html xmlns="" xml:lang="en" lang="en">
View breadcrumbs.css
.breadcrumb {
list-style: none;
overflow: hidden;
font-size: 0.8em;
.breadcrumb li {
View autopagination.js
////////javascript libraries used
//// jquery
//// scrollPagination
//// aeImageResize
//// masonry
var offset = 0;
'contentPage': 'themes/[var.theme]/ajaxcontrols.php?page=products&offset='+offset, // the page where you are searching for results
'contentData': {}, // you can pass the children().size() to know where is the pagination