Skip to content

Instantly share code, notes, and snippets.

View tobiastom's full-sized avatar

Tobias Tom tobiastom

View GitHub Profile
<?php
namespace bar {
class bum {}
}
<?php
spl_autoload_register(function ($class) {
if (substr($class, 0, 11) != 'MyFramework') {
return;
}
$directory = dirname(__FILE__).DIRECTORY_SEPARATOR.'Classes'.DIRECTORY_SEPARATOR;
$file = str_replace(array('_', '\\'), DIRECTORY_SEPARATOR, $class).'.php';
if (!file_exists($directory.$file)) {
<?php
namespace MyModule;
spl_autoload_register(function ($class) {
$staticNamespaceLength = strlen(__NAMESPACE__);
if (substr($class, 0, $staticNamespaceLength) != __NAMESPACE__) {
return;
}
@protocol JPImagePicker : UIViewController
UINavigationController *navigationController;
id <JPImagePickerDelegate> delegate;
id <JPImagePickerDataSource> dataSource;
@end
<!DOCTYPE html>
<style type="text/css" media="screen">
#foo { -webkit-transform: rotateY(-45deg); -webkit-perspective: 771; display:table-cell; }
</style>
<div id="foo">Thanks</div>
*** connecting…*** requesting: index
Array
(
[Location] => http://www.apple.com
[Content-Type] => text/html
[Cache-Control] => private
[Connection] => close
)
*** requesting: index
Array
<!DOCTYPE html>
<script type="text/javascript" charset="utf-8">
window.onload = function() {
var baz = function(event){
window.open(this.href,"_blank");
event.preventDefault();
}
document.getElementsByTagName("a")[0].addEventListener("click",baz,true);
}
<!DOCTYPE html>
<style type="text/css" media="screen">
.columnContainer { width: 100%; background: #00f; position: relative; float: left; }
.columnRight, .columnLeft { width: 48%; background: #f00; position: absolute; top: 0px; bottom: 0px;}
.columnLeft { left: 0px; }
.columnRight { right: 0px; }
</style>
<body>
Vergleiche mit git+ssh://[email protected]/tobiastom/Frugal.colloquyStyle.git
** Unbekannter Fehler, Details folgen
** report bug details to http://mercurial.selenic.com/bts/
** oder [email protected] melden
** Mercurial Distributed SCM (version 1.3.1)
** Erweiterungen geladen: bookmarks, hggit
Traceback (most recent call last):
File "/usr/local/bin/hg", line 27, in <module>
mercurial.dispatch.run()
File "/Library/Python/2.6/site-packages/mercurial/dispatch.py", line 16, in run
Index: tests/suite.php
===================================================================
--- tests/suite.php (revision 1549)
+++ tests/suite.php (working copy)
@@ -31,6 +31,7 @@
require 'svn_cli_suite.php';
require 'svn_ext_suite.php';
require 'git_cli_suite.php';
+require 'hg_cli_suite.php';
require 'cvs_cli_suite.php';