Skip to content

Instantly share code, notes, and snippets.

@olimsaidov
olimsaidov / Geatest.php
Created September 8, 2016 05:24
Doctrine Greatest Function
<?php
use Doctrine\ORM\Query\AST\Functions\FunctionNode;
use Doctrine\ORM\Query\AST\Node;
use Doctrine\ORM\Query\Lexer;
use Doctrine\ORM\Query\Parser;
use Doctrine\ORM\Query\SqlWalker;
class Greatest extends FunctionNode
{
@davidkpiano
davidkpiano / app.js
Created September 4, 2015 14:41
Simple way to namespace React components
import React from 'react';
import * as My from './components/my-components.js';
export default class App extends React.Component {
render() {
return (
<div>
<My.Foo />
<My.Bar />