View app-routes.php
1 2 3 4 5
<?php
Route::group(['prefix' => 'api/v1'], function() {
Route::group(['prefix' => 'lines'], function(){});
});
View magic-class-alias.php
1 2 3 4 5 6 7 8 9
<?php
class Magic {public function __call($metod, $args=null){return $this;}}
spl_autoload_register(function($c) {
eval("class $c extends Magic {};");
});
(new Foo)->bar()->baz();
View post-expirator.php.patch
1 2 3 4 5 6 7 8 9 10
diff --git a/wp-content/plugins/post-expirator/post-expirator.php b/wp-content/plugins/post-expirator/post-expirator.php
index d9536ff..2d2dc4c 100644
--- a/wp-content/plugins/post-expirator/post-expirator.php
+++ b/wp-content/plugins/post-expirator/post-expirator.php
@@ -1264,17 +1264,17 @@ class Walker_PostExpirator_Category_Checklist extends Walker {
$this->disabled = 'disabled="disabled"';
}
- function start_lvl(&$output, $depth, $args) {
+ function start_lvl(&$output, $depth = 0, $args = array()) {
View hhvm-usort.php
1 2 3 4 5 6 7 8 9 10
<?php
class T {
public function __construct($v)
{
$this->v = $v;
}
public function __toString()
{
return 'a';
View wp-db.php
1 2 3 4 5 6 7 8 9 10
<?php
// workaround for HHVM not supporting case-insensitive constants
// http://www.hhvm.com/blog/113/getting-wordpress-running-on-hhvm
if (! defined( 'HHVM_VERSION' )) {
define( 'OBJECT', 'OBJECT', true );
} else {
define('OBJECT', 'OBJECT');
define('Object', 'OBJECT');
View HHVM Constructor arg promotion
1 2 3 4 5 6 7 8 9 10
$ cat hh.php
<?hh class Foo { public function __construct(private int $num) : void { } }
 
$ hhvm --version
HipHop VM 2.4.0 (rel)
Compiler: tags/HHVM-2.4.0-0-gc82fcd8e6199c500454b1a8b930a876ef2c1522b
Repo schema: a536a1d1567b1fb5d722c0349a3296d4e8589f96
 
$ hhvm hh.php
HipHop Fatal error: Parameters modifiers not allowed on methods in /home/base/hh.php on line 1
View php-timezone-conf.sh
1 2 3 4 5
#!/bin/bash
 
echo "date.timezone = Europe/London" > /etc/php5/conf.d/timezone.ini
ln -s /etc/php5/conf.d/timezone.ini /etc/php5/apache2/conf.d/
ln -s /etc/php5/conf.d/timezone.ini /etc/php5/cli/conf.d/
View bamboo-install.sh
1 2 3 4 5 6 7 8 9 10
#!/bin/bash
 
# bamboo
mkdir /opt/atlassian
wget -O /opt/atlassian/bamboo.tar.gz http://www.atlassian.com/software/bamboo/downloads/binary/atlassian-bamboo-5.1.1.tar.gz
cd /opt/atlassian
tar xzf bamboo.tar.gz
mv atlassian* bamboo
 
mkdir /home/bamboo
View README.md

Base are looking to hire an awesome Midweight Front-end Developer

Here's a quick test to make sure you really are awesome.

  1. Create a HTML page: left half a Google Map, right half a donut chart
  2. Get the JSON(P) data from http://api.opendevicelab.com/?countries=United%20Kingdom
  3. add all the device labs' locations as markers on the Google Map
  4. sum up all the brands_available values and show as percentages on the donut chart (eg 20 labs with Apple devices, out of a total of 50 brands_available values = 40%)

Bonus points:

Something went wrong with that request. Please try again.