// source : http://stackoverflow.com/questions/18378720/bootstrap-3-with-remote-modal
// deprecated in Bootstrap 3.3 and will be removed in v4. Try this instead:
// Fill modal with content from link href
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
[Unit] | |
Description=HipHop Virtual Machine | |
[Service] | |
User=apache | |
Group=www-data | |
PIDFile=/var/run/hhvm/hhvm.pid | |
ExecStart=/usr/local/bin/hhvm -m daemon -c /etc/hhvm/www.ini | |
ExecStop=/usr/bin/rm -f /var/run/hhvm/hhvm.pid |
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
/** | |
* Caches the return value of get accessors and methods. | |
* | |
* Notes: | |
* - Will reset the get accessor cache if a new value is set. | |
* - Doesn't really make sense to put this on a method with parameters | |
*/ | |
export function Memoize(target: any, propertyName: string, descriptor: TypedPropertyDescriptor<any>) { | |
if (descriptor.value != null) { | |
memoizeMethod(descriptor); |
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
/* | |
* refercence | |
* http://joelb.me/blog/2011/code-snippet-accessing-clipboard-images-with-javascript/ | |
*/ | |
// We start by checking if the browser supports the | |
// Clipboard object. If not, we need to create a | |
// contenteditable element that catches all pasted data | |
if (!window.Clipboard) { |
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 ExampleBundle\Form; | |
use Symfony\Component\Form\AbstractType; | |
use Symfony\Component\Form\FormBuilder; | |
use Symfony\Component\DependencyInjection\ContainerInterface; | |
use ExampleBundle\Form\EventListener\addTranslatedFieldSubscriber; |
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
# /etc/my.cnf | |
bind-address=127.0.0.1 | |
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 Acme\AppBundle\DependencyInjection; | |
use Symfony\Component\DependencyInjection\ContainerBuilder; | |
use Symfony\Component\Config\FileLocator; | |
use Symfony\Component\HttpKernel\DependencyInjection\Extension; | |
use Symfony\Component\DependencyInjection\Loader; | |
/** |
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
# http://codepen.io/Rowno/pen/Afykb | |
.carousel-fade { | |
.carousel-inner { | |
.item { | |
opacity: 0; | |
transition-property: opacity; | |
} | |
.active { | |
opacity: 1; |
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 Project\ServiceBundle\DataFixtures\ORM; | |
use Doctrine\Common\DataFixtures\FixtureInterface; | |
use Doctrine\Common\Persistence\ObjectManager; | |
use Project\ServiceBundle\Entity\Question; | |
/** | |
* Description of QuestionData | |
* |
NewerOlder