Skip to content

Instantly share code, notes, and snippets.

<?php
define('T', ' ');
define('N', PHP_EOL);
$functions = array();
$classes = array();
$constant_prefix = 'X_';
$php = '<?php' . N;
### Keybase proof
I hereby claim:
* I am theshadow on github.
* I am xanderguzman (https://keybase.io/xanderguzman) on keybase.
* I have a public key whose fingerprint is 7EEC 327A C87B 495B 87B9 E71A AAD5 68B7 835E 601C
To claim this, I am signing this object:
<?php
class Result
{
public function fetch()
{
static $rows = [
['id' => 1, 'name' => 'one', 'value' => 1.0],
['id' => 2, 'name' => 'two', 'value' => 2.0],
['id' => 3, 'name' => 'three', 'value'=> 3.00],
The following packages have unmet dependencies:
php5-adodb : Depends: phpapi-20100525
E: Unable to correct problems, you have held broken packages.
[06:32 PM]-[vagrant@packer-virtualbox-iso]-[~]
$ sudo apt-get install php5-adodb
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
[06:50 PM]-[vagrant@packer-virtualbox-iso]-[~]
$ dpkg -l
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-=============================================================-===================================-===================================-================================================================================================================================
ii acpi 1.6-1 amd64 displays information on ACPI devices
ii acpi-support-base 0.140-5+deb7u3 all scripts for handling base ACPI events such as the power b
[06:55 PM]-[vagrant@packer-virtualbox-iso]-[~]
$ apt-cache policy
Package files:
100 /var/lib/dpkg/status
release a=now
500 http://repo.puphpet.com/dotdeb/ wheezy/all amd64 Packages
release o=packages.dotdeb.org,a=stable,n=wheezy,l=packages.dotdeb.org,c=all
origin repo.puphpet.com
500 http://repo.puphpet.com/dotdeb/ wheezy-php55/all amd64 Packages
release o=packages.dotdeb.org,a=stable,n=wheezy-php55,l=packages.dotdeb.org,c=all
<?php
from Org/Namespace use {
ClassA,
ClassB,
ClassC,
function_foobar
};
$a = new ClassA();

Keybase proof

I hereby claim:

  • I am theshadow on github.
  • I am xanderguzman (https://keybase.io/xanderguzman) on keybase.
  • I have a public key whose fingerprint is 5259 B549 6FA3 D18E 1403 80AC A2C1 F2A2 E310 4F85

To claim this, I am signing this object:

/*
Severity Code Description Project File Line
Error CS1061 'ISetup<IFormatter>' does not contain a definition for 'Returns' and no extension method
'Returns' accepting a first argument of type 'ISetup<IFormatter>' could be found (are you missing a using
directive or an assembly reference?)
*/
var mockFormatter = new Mock<IFormatter>();
mockFormatter.Setup(
formatter => formatter.Serialize(