Skip to content

Instantly share code, notes, and snippets.

View casimiroarruda's full-sized avatar
🖊️
Keep Writing

Anderson Casimiro casimiroarruda

🖊️
Keep Writing
View GitHub Profile
@casimiroarruda
casimiroarruda / 0_reuse_code.js
Last active August 29, 2015 14:08
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@casimiroarruda
casimiroarruda / HtmlHandler.php
Created February 12, 2012 17:20 — forked from thiagophx/HtmlHandler.php
ViewHandler
<?php
namespace MyApp;
class HtmlHandler implements ViewHandler
{
public function __invoke(Response $response)
{
foreach ($response->getHeaders() as $header)
header($header);
@casimiroarruda
casimiroarruda / HtmlHandler.php
Created February 12, 2012 17:19 — forked from thiagophx/HtmlHandler.php
ViewHandler
<?php
namespace MyApp;
class HtmlHandler implements ViewHandler
{
public function __invoke(Response $response)
{
foreach ($response->getHeaders() as $header)
header($header);