This file contains hidden or 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
eval { | |
local $SIG{ALRM} = sub { die "timed out" }; | |
alarm 5; # 5 seconds | |
# do something | |
alarm 0; # Clears alarm. | |
}; |
This file contains hidden or 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
{% stylesheets '@MynatnetWebsiteBundle/Resources/less/mynatnet.less' %} | |
<link rel="stylesheet" href="{{ asset_url }}"> | |
{% endstylesheets %} |
This file contains hidden or 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 | |
namespace Ibms\JobBundle\Twig; | |
use Doctrine\Common\Collections\Collection; | |
use Ibms\JobBundle\Entity\Job; | |
use Ibms\JobBundle\Entity\JobAppliance; | |
use Ibms\UserBundle\Entity\Technician; | |
use DateTime; | |
use Symfony\Component\DependencyInjection\ContainerInterface; |
This file contains hidden or 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 | |
namespace Ibms\Helper; | |
use Symfony\Bundle\FrameworkBundle\Templating\GlobalVariables as BaseGlobalVariables; | |
use Symfony\Component\DependencyInjection\ContainerInterface; | |
use DateTime; | |
class GlobalVariables extends BaseGlobalVariables | |
{ |
NewerOlder