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
FROM php:7.2.2-apache | |
LABEL Denis Georgiev | |
RUN useradd -ms /bin/bash -u 1337 sylar | |
RUN apt-get update \ | |
&& apt-get install -y git zip unzip \ | |
&& apt-get -y autoremove \ | |
&& apt-get clean \ |
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 | |
return array( | |
'di' => array( | |
'definition' => array( | |
//teaching DI to use the factory | |
'class' => array( | |
'Zend\Db\Db' => array( | |
'methods' => array( | |
'factory' => array( | |
'adapter' => 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
function throttle( fn, time ) { | |
var t = 0; | |
return function() { | |
var args = arguments, ctx = this; | |
clearTimeout(t); | |
t = setTimeout( function() { | |
fn.apply( ctx, args ); | |
}, time ); | |
}; |