Skip to content

Instantly share code, notes, and snippets.

View kolyadin's full-sized avatar

Aleksey kolyadin

  • Easy Commerce
  • Russia
View GitHub Profile
//Выбираем основные новости (большие)
{
$dataMapHelper = new DataMapHelper();
$dataMapHelper->setRelationship([
'popcorn\\model\\dataMaps\\NewsPostDataMap' => NewsPostDataMap::WITH_TAGS,
'popcorn\\model\\dataMaps\\TagDataMap' => TagDataMap::WITH_ENTITY,
'popcorn\\model\\dataMaps\\PersonDataMap' => PersonDataMap::WITH_NONE
]);
$dataMap = new NewsTagDataMap($dataMapHelper);
{
"name": "traffic/popcorn",
"description": "popcornnews",
"minimum-stability": "dev",
"authors": [
{
"name": "Aleksey Kolyadin",
"email": "donflash@gmail.com"
},
{
$this->getApp()->exitWithJsonSuccessMessage([
'comment' => $this->getTwig()->render('/comments/Comment.twig', [
'comment' => $lastComment,
'forceImageLoad' => true
]),
'replyTo' => $replyTo,
'level' => $lastComment->getLevel(),
'id' => $lastComment->getId()
]);
<script type="text/javascript">
brand({
hrz : 'http://upload.wikimedia.org/wikipedia/commons/9/97/2010_Audi_A5_(8T)_3.0_TDI_quattro_Sportback_04.jpg',
vrt : 'http://upload.wikimedia.org/wikipedia/commons/9/97/2010_Audi_A5_(8T)_3.0_TDI_quattro_Sportback_04.jpg',
click : 'http://www.kinoafisha.info',
views : [
'http://ad.adriver.ru/cgi-bin/erle.cgi?sid=92926&target=blank&bt=41&pz=0&rnd=' + Math.random(),
function(){
_gaq.push(['_trackEvent','branding','robocop','show']);
}
<script type="text/javascript">
brand({
hrz : 'http://upload.wikimedia.org/wikipedia/commons/9/97/2010_Audi_A5_(8T)_3.0_TDI_quattro_Sportback_04.jpg',
vrt : 'http://upload.wikimedia.org/wikipedia/commons/9/97/2010_Audi_A5_(8T)_3.0_TDI_quattro_Sportback_04.jpg',
click : 'http://www.kinoafisha.info',
views : function(){
(new Image()).src = 'http://ad.adriver.ru/cgi-bin/erle.cgi?sid=92926&target=blank&bt=41&pz=0&rnd=' + Math.random();
_gaq.push(['_trackEvent','branding','robocop','show']);
}
});
$this
->getSlim()
->get('/archive(/:year(/:month(/:day)))', [$this, 'postsArchive'])
->conditions([
'year' => '2[0-9]{3}',
'month' => '[0-9]+',
'day' => '[0-9]+'
]);
php_value upload_max_filesize 10M
php_value post_max_filesize 10M
php_value xhprof.output_dir /data/sites/popcorn/var/tmp/xhprof
php_value date.timezone "Europe/Moscow"
php_flag session.use_trans_sid Off
php_flag session.use_only_cookies On
SetEnv POPCORN_MODE development
AddDefaultCharset utf-8
SetEnv ENV_MODE development
DirectoryIndex index.php
php_value upload_max_filesize 10M
php_value post_max_filesize 10M
php_value date.timezone "Europe/Moscow"
<?php
namespace Sp\UploadBundle\Controller;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpFoundation\JsonResponse;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
INSERT INTO sobranie_subway SET name="Аэропорт", coords_x="55.79981", coords_y="37.53412"
INSERT INTO sobranie_subway SET name="Академическая", coords_x="55.68808", coords_y="37.57501"
INSERT INTO sobranie_subway SET name="Алексеевская", coords_x="55.80737", coords_y="37.63844"
INSERT INTO sobranie_subway SET name="Александровский сад", coords_x="55.75219", coords_y="37.60836"
INSERT INTO sobranie_subway SET name="Алтуфьево", coords_x="55.89504", coords_y="37.58605"
INSERT INTO sobranie_subway SET name="Аннино (стр.)", coords_x="55.581818", coords_y="37.594978"
INSERT INTO sobranie_subway SET name="Арбатская", coords_x="55.75228", coords_y="37.60357"
INSERT INTO sobranie_subway SET name="Авиамоторная", coords_x="55.75208", coords_y="37.71677"
INSERT INTO sobranie_subway SET name="Автозаводская", coords_x="55.70801", coords_y="37.65858"
INSERT INTO sobranie_subway SET name="Бабушкинская", coords_x="55.86814", coords_y="37.66292"