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 / 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 / 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 / fXML.php.patch
Created July 11, 2012 14:11
fXML.php.patch
Index: fXML.php
===================================================================
--- fXML.php (revision 71)
+++ fXML.php (working copy)
@@ -233,17 +233,17 @@
'__sleep' => TRUE,
'__toString' => TRUE,
'__wakeup' => TRUE,
- 'addCustomPrefix' => TRUE,
+ 'addCustomPrefix' => TRUE,
@pjbeardsley
pjbeardsley / fJSONP.php
Created July 11, 2012 14:21
fJSONP.php
<?php
/**
* Extension to Flourish fJSON class to provide methods for JSONP support.
*
* @package Flourish
*/
class fJSONP extends fJSON {
/**
* Overrides fJSON::sendHeader() to send a text/javascript response instead.
*
@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 / fRecordSet.php.patch
Created July 11, 2012 14:13
fRecordSet.php.patch
Index: fRecordSet.php
===================================================================
--- fRecordSet.php (revision 71)
+++ fRecordSet.php (working copy)
@@ -1638,20 +1638,26 @@
if (isset($relationship['join_table'])) {
$table_to_join = $relationship['join_table'];
- $column_to_join = $relationship['join_table'] . '.' . $relationship['join_column'];
+ $column_to_join = $relationship['join_column'];
@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());