Skip to content

Instantly share code, notes, and snippets.

@pjbeardsley
pjbeardsley / st2_php_build_system
Created March 23, 2012 13:59
Sublime Text 2 PHP build system
Place the following in a file named 'PHP.sublime-build' in your Sublime Text 2 'User' package dir:
{
"cmd": ["php", "-l", "$file"],
"file_regex": "*",
"selector": "source.php"
}
@pjbeardsley
pjbeardsley / gist:2972792
Created June 22, 2012 13:40
An Event Apart Boston 2012 Summary Notes

An Event Apart Boston 2012 Summary Notes

Day One

Jeffrey Zeldman: Content First

  • For years web developers have been trying to control the user's experience. For a while this has worked out, but ultimately it's a futile gesture
    • "Screen scraper" tools like Instapaper and Readablity are now a geek niche tool, but will soon become mainstream
    • Users have been changing browser defaults since day one for accessibility reasons.
  • Developers need to work harder to make the default tolerable.
@pjbeardsley
pjbeardsley / New Text Document.txt
Created July 11, 2012 13:42
New Text Document.txt
--_----------=_132252751668780
Content-type: TEXT/PLAIN;
Content-Disposition: attachment; filename=KDELTD20111129.dat
Content-Transfer-Encoding: BASE64
Content-Description:
base64datafollowshere==
@pjbeardsley
pjbeardsley / fCRUD.php.patch
Created July 11, 2012 13:53
fCRUD.php.patch
Index: fCRUD.php
===================================================================
--- fCRUD.php (revision 71)
+++ fCRUD.php (working copy)
@@ -2,14 +2,15 @@
/**
* Provides miscellaneous functionality for [http://en.wikipedia.org/wiki/Create,_read,_update_and_delete CRUD-like] pages
*
- * @copyright Copyright (c) 2007-2009 Will Bond
+ * @copyright Copyright (c) 2007-2011 Will Bond
@pjbeardsley
pjbeardsley / fFile.php.patch
Created July 11, 2012 14:01
fFile.php.patch
===================================================================
--- fFile.php (revision 71)
+++ fFile.php (working copy)
@@ -740,7 +740,7 @@
unlink($this->file);
- fFilesystem::updateDeletedMap($this->file, debug_backtrace());
+ fFilesystem::updateDeletedMap($this->file, fCore::backtrace());
@pjbeardsley
pjbeardsley / fDirectory.php.patch
Created July 11, 2012 14:02
fDirectory.php.patch
Index: fDirectory.php
===================================================================
--- fDirectory.php (revision 71)
+++ fDirectory.php (working copy)
@@ -237,7 +237,7 @@
rmdir($this->directory);
- fFilesystem::updateDeletedMap($this->directory, debug_backtrace());
+ fFilesystem::updateDeletedMap($this->directory, fCore::backtrace());
@pjbeardsley
pjbeardsley / fEmail.php.patch
Created July 11, 2012 14:04
fEmail.php.patch
Index: fEmail.php
===================================================================
--- fEmail.php (revision 71)
+++ fEmail.php (working copy)
@@ -12,12 +12,15 @@
* @copyright Copyright (c) 2008-2011 Will Bond, others
* @author Will Bond [wb] <will@flourishlib.com>
* @author Bill Bushee, iMarc LLC [bb-imarc] <bill@imarc.net>
* @author netcarver [n] <fContrib@netcarving.com>
* @license http://flourishlib.com/license
@pjbeardsley
pjbeardsley / fPagination.php.patch
Created July 11, 2012 14:07
fPagination.php.patch
Index: fPagination.php
===================================================================
--- fPagination.php (revision 71)
+++ fPagination.php (working copy)
@@ -373,23 +373,44 @@
);
}
+ $size = self::$templates[$template]['size'];
if (self::$templates[$template]['type'] == 'without_first_last') {
@pjbeardsley
pjbeardsley / fRequest.php.patch
Created July 11, 2012 14:09
fRequest.php.patch
Index: fRequest.php
===================================================================
--- fRequest.php (revision 71)
+++ fRequest.php (working copy)
@@ -10,13 +10,15 @@
*
* @copyright Copyright (c) 2007-2011 Will Bond, others
* @author Will Bond [wb] <will@flourishlib.com>
+ * @author Will Bond, iMarc LLC [wb-imarc] <will@imarc.net>
* @author Alex Leeds [al] <alex@kingleeds.com>
@pjbeardsley
pjbeardsley / fTemplating.php.patch
Created July 11, 2012 14:10
fTemplating.php.patch
Index: fTemplating.php
===================================================================
--- fTemplating.php (revision 71)
+++ fTemplating.php (working copy)
@@ -100,6 +100,20 @@
* @var integer
*/
private $buffered_id;
+
+ /**