{{ path('article_show', { 'slug': article.slug }) }}
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
set :application, "Music Tube" | |
set :domain, "server.yourserver.com" | |
set :deploy_to, "~/www/serverfolder.yourserver.com" | |
set :app_path, "app" | |
set :repository, "git://github.com/yourname/yourrepo.git" | |
set :scm, :git | |
set :scm_verbose, true | |
# Or: `accurev`, `bzr`, `cvs`, `darcs`, `subversion`, `mercurial`, `perforce`, or `none` |
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
//... | |
if(!$this->get('security.context')->isGranted('IS_AUTHENTICATED_FULLY')){ | |
throw new AccessDeniedException(); | |
} | |
//... | |
$user = $this->get('security.context')->getToken()->getUser(); |
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
/* ============================================================= | |
* bootstrap-scrollspy.js v2.0.1 | |
* http://twitter.github.com/bootstrap/javascript.html#scrollspy | |
* ============================================================= | |
* Copyright 2012 Twitter, Inc. | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* |
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
require "hello2" | |
cocos2d.CCLuaLog("result is " .. myadd(3, 5)) | |
-- create scene & layer | |
layerFarm = cocos2d.CCLayer:node() | |
layerFarm:setIsTouchEnabled(true) | |
layerMenu = cocos2d.CCLayer:node() |
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
#include "tolua++.h" | |
#include "Scene.h" | |
char* Scene::getData() { | |
printf("Something %s",data); | |
return data; | |
} | |
void Scene::setData(const char* pData){ | |
sprintf(data, "%s",pData); |
NewerOlder