This file contains hidden or 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 | |
/** | |
* Extension to Controller_Website that enforces authentication | |
* | |
* @package | |
* @author Jeremy Bush | |
* @copyright (c) 2011 Jeremy Bush | |
*/ | |
class Controller_Website_Authenticated extends Controller_Website | |
{ |
This file contains hidden or 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
#!/bin/bash | |
git diff --cached --name-status | awk '$1 != "D" && $1 != "R" { print $2 }' | xargs /usr/bin/env phpcs --tab-width=4 --extensions=php --report-width=140 --ignore=target/*,www/docroot/*,test/behat/ |
This file contains hidden or 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
[user] | |
name = Jeremy Bush | |
email = [email protected] | |
[color] | |
diff = auto | |
status = auto | |
branch = auto | |
[core] | |
autocrlf = input | |
[mergetool "diffmerge"] |
This file contains hidden or 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
def triangle(a, b, c) | |
raise TriangleError unless valid_triangle?(a,b,c) | |
[:equilateral, :isosceles, :scalene][[a,b,c].uniq.size - 1] | |
end | |
def valid_triangle?(a,b,c) | |
ax,bx,cx = [a,b,c].sort | |
ax + bx > cx | |
end |
This file contains hidden or 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
diff --git a/classes/kohana/view.php b/classes/kohana/view.php | |
index 5427ad9..dbd5261 100644 | |
--- a/classes/kohana/view.php | |
+++ b/classes/kohana/view.php | |
@@ -41,7 +41,7 @@ class Kohana_View { | |
* @param array $kohana_view_data variables | |
* @return string | |
*/ | |
- protected static function capture($kohana_view_filename, array $kohana_view_data) | |
+ protected function capture($kohana_view_filename, array $kohana_view_data) |
This file contains hidden or 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
diff --git a/Gentoo/www-apps/mythweb/mythweb-0.25_rc20120329.ebuild b/Gentoo/www-apps/mythweb/mythweb-0.25_rc20120329.ebuild | |
index ec2fd17..8e9edef 100644 | |
--- a/Gentoo/www-apps/mythweb/mythweb-0.25_rc20120329.ebuild | |
+++ b/Gentoo/www-apps/mythweb/mythweb-0.25_rc20120329.ebuild | |
@@ -15,8 +15,7 @@ DESCRIPTION="PHP scripts intended to manage MythTV from a web browser." | |
IUSE="" | |
KEYWORDS="~amd64 ~x86 ~ppc" | |
-RDEPEND="<dev-lang/php-5.4[curl,json,mysql,session,posix] | |
- || ( <dev-lang/php-5.3[spl,pcre] =dev-lang/php-5.3 ) |
This file contains hidden or 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
diff --git a/classes/automodeler/gateway/database/orm.php b/classes/automodeler/gateway/database/orm.php | |
new file mode 100644 | |
index 0000000..0d6c8fb | |
--- /dev/null | |
+++ b/classes/automodeler/gateway/database/orm.php | |
@@ -0,0 +1,36 @@ | |
+<?php | |
+ | |
+class AutoModeler_Gateway_Database_ORM extends AutoModeler_Gateway_Database | |
+{ |
This file contains hidden or 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
-> % ./phpspec-composer.php specs -f d -b -c | |
AutoModelerDAO | |
should create a loaded model (PENDING: No reason given) | |
should create a model with an id (PENDING: No reason given) | |
should throw exception when creating loaded model (PENDING: No reason given) | |
should update one row (PENDING: No reason given) | |
should throw exception when updating non loaded model (PENDING: No reason given) | |
should delete persisted model (PENDING: No reason given) | |
should throw exception when deleting non loaded model (PENDING: No reason given) | |
AutoModeler |
This file contains hidden or 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
% irb | |
1.9.3-p194 :001 > require 'date' | |
=> true | |
1.9.3-p194 :002 > date = Date.new(2001,2,3) | |
=> #<Date: 2001-02-03 ((2451944j,0s,0n),+0s,2299161j)> | |
1.9.3-p194 :003 > date.strftime('%Z') | |
=> "+00:00" |
This file contains hidden or 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
2012-06-17 13:22:45.391296 I [27429] ProcessRequest mainserver.cpp:1360 (HandleAnnounce) - MainServer::ANN Monitor | |
2012-06-17 13:22:45.391473 I [27429/27692] ProcessRequest mainserver.cpp:1362 (HandleAnnounce) - adding: htpc as a client (events: 2) | |
2012-06-17 13:22:45.391921 I [27429/27692] ProcessRequest mainserver.cpp:1360 (HandleAnnounce) - MainServer::ANN Monitor | |
2012-06-17 13:22:45.391931 I [27429/27692] ProcessRequest mainserver.cpp:1362 (HandleAnnounce) - adding: htpc as a client (events: 2) | |
2012-06-17 13:22:45.466376 I [27429/27446] Scheduler scheduler.cpp:2069 (HandleReschedule) - Scheduled 105 items in 0.2 = 0.00 match + 0.19 place | |
2012-06-17 13:22:45.467312 I [27429/27446] Scheduler scheduler.cpp:2011 (HandleReschedule) - Reschedule requested for id 0. | |
2012-06-17 13:22:45.610965 I [27429/27446] Scheduler scheduler.cpp:2069 (HandleReschedule) - Scheduled 105 items in 0.1 = 0.00 match + 0.14 place | |
2012-06-17 13:22:46.083551 I [27429/27692] ProcessRequest mainserver.cpp:1410 (HandleAnnounce) - adding: |