$mapperMock = $this->getMock('Doctor\Mapper\Calendar');
$mapperMock
->expects($this->once())
->method('getDoctorTimeSlots')
->will($this->returnValue([]))
;
$translator = $this->getMock('Zend\Translator');
$translator
This file contains 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
<html style="background: #184b34"> | |
<script> | |
window.color = { | |
red: 0, | |
green: 0, | |
blue: 0 | |
}; | |
window.color2 = [0, 0, 0]; | |
window.steps = 0; |
This file contains 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
public function getServiceConfig() | |
{ | |
return array( | |
'factories' => array( | |
'my-model' => function($sm) { | |
$model = new \My\Model($sm); | |
return $model; | |
} | |
) | |
); |
This file contains 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
// Written by Pioz. | |
// Compile with: gcc -o autoclick autoclick.c -lX11 | |
#include <stdio.h> | |
#include <string.h> | |
#include <X11/Xlib.h> | |
// Simulate mouse click | |
void | |
click (Display *display, int button) |
This file contains 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 | |
$winners = array( | |
array( | |
array(8, 17, 21, 31, 34), | |
array(9, 10), | |
), | |
array( |
This file contains 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
{ | |
"api": "0.13", | |
"space": "The space name", | |
"logo": "http://your-space.com/logo.png", | |
"url": "http://example.com", | |
"location": { | |
"address": "see the documentation", | |
"lon": 5.973817, | |
"lat": 39.240431 | |
}, |
This file contains 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 | |
function convert() | |
{ | |
file="$1" | |
# remove the svg file extension and append .png | |
destination="${file%.svg}.png" | |
# -z is for launching inkscape without the gui |
This file contains 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 | |
$zoom = 0; | |
$n = pow(2, $zoom); | |
$lon = 6.07057; | |
$lat = 49.61629; | |
$xtile = floor((($lon + 180) / 360) * pow(2, $zoom)) + 0.5; | |
$ytile = floor((1 - log(tan(deg2rad($lat)) + 1 / cos(deg2rad($lat))) / pi()) /2 * pow(2, $zoom)) + 0.5; |
- Zend Framework 2
- Twig, rendering engine integration via ZfcTwig
- Doctrine & ZF2 Frontend
NewerOlder