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
phpunit --coverage-html ./phpunitCache/ Request/ | |
<html> | |
<head> | |
<style type="text/css"> | |
body { | |
font-family: monospace; | |
background-color: #F6FFE9; | |
} | |
#code_error td.title { | |
font-weight: bold; |
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 getSudoku(self): | |
sudoku = [[0] * 9 for x in range(9)] | |
for x, rows in enumerate(self.sudoku): | |
for y, cell in enumerate(rows): | |
if len(cell) == 1: | |
sudoku[x][y] = cell[0] | |
return sudoku |
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 | |
class Phergie_Plugin_Cache_Backend_SqLite extends Phergie_Plugin_Cache_Backend | |
{ | |
protected $db; | |
protected $prepareIsset; | |
protected $prepareFetch; | |
protected $prepareStoreUpdate; | |
protected $prepareStoreInsert; | |
protected $prepareExpire; |
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
App.php | |
Autoload.php | |
Cache/Disk.php | |
Config.php | |
Dispatch.php | |
Helper.php | |
Model/Upload.php | |
Session.php | |
Vendor/Smarty/Config_File.class.php | |
Vendor/Smarty/internals/core.load_plugins.php |
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/Phergie/Plugin/Weather.php b/Phergie/Plugin/Weather.php | |
index c12d15e..531c8e7 100644 | |
--- a/Phergie/Plugin/Weather.php | |
+++ b/Phergie/Plugin/Weather.php | |
@@ -32,6 +32,7 @@ | |
* @license http://phergie.org/license New BSD License | |
* @link http://pear.phergie.org/package/Phergie_Plugin_Weather | |
* @link http://www.weather.com/services/xmloap.html | |
+ * @uses Phergie_Plugin_Cache pear.phergie.org | |
* @uses Phergie_Plugin_Command pear.phergie.org |
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 | |
// A class to help work with Sessions | |
// In our case, primarily to manage logging users in and out | |
// Keep in mind when working with sessions that it is generally | |
// inadvisable to store DB-related objects in sessions | |
class Session { | |
private $logged_in=false; |
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
LICENSE | |
Phergie/Autoload.php | |
Phergie/Bot.php | |
Phergie/Config/Exception.php | |
Phergie/Config.php | |
Phergie/Connection/Exception.php | |
Phergie/Connection/Handler.php | |
Phergie/Connection.php | |
Phergie/Driver/Abstract.php | |
Phergie/Driver/Exception.php |
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
create table general { | |
id INTEGER UNIQUE PRIMARY KEY, | |
userhash BLOB UNIQUE, | |
userid INTEGER, | |
ship TEXT, | |
time INT, | |
version TEXT, | |
fate TEXT, | |
player TEXT, | |
score INT, |
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
db cache.db | |
table namespace1 | |
key | |
value | |
expire | |
table namespace2 | |
key | |
value | |
expire | |
table namespace3 |
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 | |
function curl_get_contents($url, $timeout = 30, $settings_array = array()) | |
{ | |
$return false; | |
if (function_exists("curl_init")) { | |
$curl_options = array( | |
CURLOPT_URL => $url, | |
CURLOPT_RETURNTRANSFER => true, | |
CURLOPT_TIMEOUT => intval($timeout), | |
CURLOPT_HEADER => false |