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
| $a = array ('zero','one','two', 'three'); | |
| foreach ($a as &$v) { | |
| } | |
| foreach ($a as $v) { | |
| echo $v.PHP_EOL; | |
| } |
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
| 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 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
| 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 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 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 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
| 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 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
| #!/usr/bin/env python | |
| from BeautifulSoup import BeautifulSoup | |
| import click | |
| import requests | |
| @click.group() | |
| def cli(): | |
| pass | |
| @click.command() |
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
| package com.example.game.game; | |
| import android.util.Log; | |
| import com.badlogic.gdx.ApplicationListener; | |
| import com.badlogic.gdx.Gdx; | |
| import com.badlogic.gdx.assets.AssetManager; | |
| import com.badlogic.gdx.graphics.Color; | |
| import com.badlogic.gdx.graphics.FPSLogger; | |
| import com.badlogic.gdx.graphics.OrthographicCamera; |
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
| // | |
| // Change the following piece of code | |
| // | |
| CGContextSaveGState(context); | |
| CGContextClip(context); | |
| if (_privateGradientBool == YES) { | |
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
| #!/usr/bin/python | |
| from __future__ import with_statement | |
| import time | |
| from shodan import WebAPI | |
| import re,socket | |
| import sys | |
| import gevent | |
| from gevent import socket | |
| from gevent.pool import Pool | |
| from gevent import monkey |