Skip to content

Instantly share code, notes, and snippets.

@c0urg3tt3
c0urg3tt3 / return-array__i_do_something_like_that.jsx
Last active November 4, 2017 03:15
using return-array with react16
// https://jsfiddle.net/69z2wepo/90437/
....
const Section = ({children, products}) => (
<section>
{
// has products ?
products.length
// yes, map products
@c0urg3tt3
c0urg3tt3 / A_fluid_slider_link_to_glimmer-playground.txt
Last active October 13, 2017 10:51
having fun with glimmerjs building a basic fluid slider in glimmer-playground sandbox
@c0urg3tt3
c0urg3tt3 / Acme\ApiBundle\Entity\Comment.php
Created August 25, 2017 12:41
doctrine entities implements JsonSerializable to avoid nesting max depth error
<?php
namespace Acme\ApiBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* Todo
*
* @ORM\Table(name="acme_comments")
@c0urg3tt3
c0urg3tt3 / class structure
Created March 13, 2012 18:49
class names matchs directory structure
var App = Ember.Application.create();
App.ModuleName = {
Controllers: {},
Models: {},
States: {},
Views: {}
};
App.ModuleName2 = {