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
// | |
// Change the following piece of code | |
// | |
CGContextSaveGState(context); | |
CGContextClip(context); | |
if (_privateGradientBool == YES) { | |
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 app import app, render_template, Response, jsonify | |
import json | |
@app.route('/') | |
def index(): | |
return 'index' | |
@app.route('/single') | |
def getDoneQuiz(): | |
json = { |
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 | |
namespace BBG\PrelumBundle\Controller; | |
use Symfony\Bundle\FrameworkBundle\Controller\Controller; | |
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; | |
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template; | |
use Symfony\Component\DependencyInjection\ContainerInterface; | |
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; | |
use BBG\PrelumBundle\Controller\CanonicalMenuController; |
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
liip_imagine: | |
cache_prefix: uploads/cache | |
driver: imagick | |
data_loader: filesystem | |
data_root: %kernel.root_dir%/../web | |
formats : ['jpg', 'jpeg','png', 'gif', 'bmp'] | |
filter_sets: | |
optim: | |
quality: 85 | |
format: jpg |
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
services: | |
bbg.canonical.menu.controller: | |
class: '%bbg.controller.canonical.menu.class%' | |
arguments: ["@templating"] | |
calls: | |
- [setContainer, ["@service_container"]] | |
bbgutrechtscienceparkwebsitebundle.news.menu.adaptor: | |
class: BBG\UtrechtScienceParkWebsiteBundle\Helper\Menu\NewsMenuAdaptor | |
arguments: ["@doctrine.orm.entity_manager"] | |
tags: |
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
$a = array ('zero','one','two', 'three'); | |
foreach ($a as &$v) { | |
} | |
foreach ($a as $v) { | |
echo $v.PHP_EOL; | |
} |
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
(lldb) po self.saveButton | |
<UIButton: 0x796dd8e0; frame = (962 25; 42 42); hidden = YES; opaque = NO; layer = <CALayer: 0x796dda00>> | |
(lldb) po self.cancelButton | |
<UIButton: 0x796e0490; frame = (13 25; 42 42); hidden = YES; opaque = NO; layer = <CALayer: 0x796e05b0>> | |
(lldb) po self.cameraButton | |
<UIButton: 0x796dabb0; frame = (910 25; 42 42); opaque = NO; layer = <CALayer: 0x796dacd0>> | |
(lldb) po self.planningButton |
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
/** | |
* @param ContainerInterface $container The Container | |
* @param Request $request The Request | |
* @param RenderContext $context The Render context | |
* | |
* @return void|RedirectResponse | |
*/ | |
public function service(ContainerInterface $container, Request $request, RenderContext $context) | |
{ | |
$security = $container->get('security.context'); |
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 | |
namespace Kunstmaan\SearchBundle\Configuration; | |
/** | |
* Interface for a SearchConfiguration | |
*/ | |
interface SearchConfigurationInterface | |
{ | |
/** |
OlderNewer