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
database.adapter = <driver> (e.g. pdo_mysql) | |
database.params.host = <host> (e.g. localhost) | |
database.params.username = <user> | |
database.params.password = <password> | |
database.params.dbname = <database name> |
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 | |
use Symfony\Component\HttpKernel\Kernel; | |
use Symfony\Component\Config\Loader\LoaderInterface; | |
class AppKernel extends Kernel | |
{ | |
public function registerBundles() | |
{ | |
$bundles = array( |
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
_assetic: | |
resource: . | |
type: assetic | |
_wdt: | |
resource: "@WebProfilerBundle/Resources/config/routing/wdt.xml" | |
prefix: /_wdt | |
_profiler: | |
resource: "@WebProfilerBundle/Resources/config/routing/profiler.xml" |
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
# app/config.yml | |
# | |
# remove the line that imports parameters.ini | |
imports: | |
- { resource: security.yml } | |
framework: | |
#esi: ~ | |
#translator: { fallback: %locale% } |
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
# app/config_dev.yml | |
# | |
# add the import statement for parameters_dev.ini | |
imports: | |
- { resource: config.yml } | |
- { resource: parameters_dev.ini } | |
framework: | |
router: { resource: "%kernel.root_dir%/config/routing_dev.yml" } |
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
# app/config_prod.yml | |
# | |
# add the import statement for parameters.ini | |
imports: | |
- { resource: config.yml } | |
- { resource: parameters.ini } | |
... |
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
<?xml version="1.0" ?> | |
<container xmlns="http://symfony.com/schema/dic/services" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd"> | |
<services> | |
<service id="welcome.mailer.acme.user" class="Acme\UserBundle\WelcomeMailer" public="false"> | |
<tag name="welcome.mailer" /> | |
<argument type="service" id="acme.mailer" /> |
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
FibonacciSequence := Object clone | |
FibonacciSequence cache := List clone | |
FibonacciSequence simple := method (num, | |
if (num <= 2, | |
1, | |
self calc(num) | |
) | |
) |
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
<!-- template.html --> | |
<html> | |
<head> | |
<title>Hello React</title> | |
<script src="build/react.min.js"></script> | |
<script src="build/JSXTransformer.js"></script> | |
<script src="build/showdown.js"></script> | |
<script src="build/jquery-1.8.1.min.js"></script> | |
</head> | |
<body> |
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
" | |
/** | |
* @jsx React.DOM | |
*/ | |
var converter = new Showdown.converter(), | |
CommentBox = React.createClass({displayName: 'CommentBox', | |
loadCommentsFromServer: function() { | |
$.ajax({ | |
url: '/comments.json', |
OlderNewer