Skip to content

Instantly share code, notes, and snippets.

View neok's full-sized avatar
👋
hello

Petro Popelyshko neok

👋
hello
View GitHub Profile
@neok
neok / gist:378e1ce693fce0341729
Created January 23, 2015 10:42
Just example
public function setDefaultOptions(OptionsResolverInterface $resolver)
{
$resolver->setDefaults(array(
'csrf_protection' => false,
));
}
@neok
neok / HelloWorld.php
Last active September 2, 2015 20:03
Hello world
<?php echo "Hello world, Neokiev.com";
<html>
<body>
<h3> Как выучить PHP с нуля? </h3>
<?php echo "Очень просто"; ?>
</body>
</html>
<?php
namespace Acme\DemoBundle\Controller
use FOS\RestBundle\Request\ParamFetcher;
use FOS\RestBundle\Controller\Annotations as Rest;
class ItemExampleController
{
/**
* Get Items By Constraints
<?php
namespace Acme\ApiBundle\Entity;
use FOS\UserBundle\Entity\User as BaseUser;
use Doctrine\ORM\Mapping as ORM;
/**
* User
*
var React = require('react');
var About = React.createClass({
render: function() {
return (
<div className="about">
<p>About page</p>
<img src="/public/img/react-logo.png" alt="img" />
</div>);
}