Skip to content

Instantly share code, notes, and snippets.

@b-durand
b-durand / placeholder.js
Last active December 15, 2015 14:09 — forked from aaronmccall/placeholder.js
Emulate placeholder HTML5 with JavaScript (for IE less than 10)
setup_placeholders = (function() {
$.support.placeholder = false;
test = document.createElement('input');
if ('placeholder' in test) {
$.support.placeholder = true;
return function() {}
} else {
return function() {
$(function() {
@b-durand
b-durand / sample1.txt
Created July 5, 2012 19:48 — forked from anonymous/sample1.txt
email log sample code
application.ini
resources.log.stream.writerName = "Mail"
resources.log.stream.writerParams.subjectPrependText = "website ERROR: "
resources.log.stream.writerParams.email = "info@example.com"
resources.log.stream.writerParams.replyto = "info@example.com"
resources.log.stream.writerParams.to = "me@example.com"
ErrorController.php
// Log exception, if logger available
if ($log = $this->getLog()) {