Skip to content

Instantly share code, notes, and snippets.

<?php
namespace Diveshare\DiveshareBundle\Templating;
/**
* Additional helpful methods that is needed in templates.
*
* @package DiveshareBundle
*/
class GlobalVariables extends \Symfony\Bundle\FrameworkBundle\Templating\GlobalVariables
@SNProject
SNProject / pictures.markdown
Created August 29, 2012 14:05 — forked from sent-hil/pictures.markdown
River (getriver.com): Keep a programming journal.

One of my favorite past times is to look at the notebooks of famous scientists. Da Vinci's notebook is well known, but there plenty others. Worshipping Da Vinci like no other, I bought a Think/Create/Record journal, used it mostly to keep jot down random thoughts and take notes. This was great in the beginning, but the conformity of lines drove me nuts. Only moleskines made blank notebooks, so I had to buy one.

At the same time I started a freelance project. The project itself is irrelevant, but suffice to say it was very complex and spanned several months. It seemed like a perfect opportunity to use the moleskine. Looking back, all my entries fell under few categories:

  • Todo
  • Question
  • Thought
  • Bug
  • Feature
@SNProject
SNProject / Document.php
Created September 17, 2012 17:34 — forked from beberlei/Document.php
My Symfony2 File Upload workflow
<?php
use Symfony\Component\HttpFoundation\File\File;
use Symfony\Component\HttpFoundation\File\UploadedFile;
/**
* @Entity
*/
class Document
{