cd ~/contribs/php-manual
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# vim: set fileencoding=utf-8 : | |
# | |
# How to store and retrieve gzip-compressed objects in AWS S3 | |
########################################################################### | |
# | |
# Copyright 2015 Vince Veselosky and contributors | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
systems({ | |
"my-app": { | |
image: {"docker": "azukiapp/php-fpm"}, | |
provision: [ | |
// "composer install", | |
], | |
workdir: "/azk/#{manifest.dir}", | |
mounts: { | |
'/azk/#{manifest.dir}': path("."), | |
'/etc/nginx/sites-enabled/nginx_public.conf': path("./nginx_public.conf") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// TODO: Redirect stdin/stdout streams to local unix socket | |
class AsyncClosure | |
{ | |
private static $shutdownFunctionSet = false; | |
public static function create(callable $closure, $callback = null) | |
{ | |
if (!self::$shutdownFunctionSet) { |
Hoje algo cômico e surreal aconteceu na comunidade FrontEnd Brasil. Algo chocante a ponto de desanimar o mais engajado dos participantes.
Após postar um Gist sobre moment com um código bastante didático, Berger foi rechaçado pelo moderador da comunidade, Jean Carlo Nascimento. Ao notar que o gist era escrito em CoffeeScript, o moderador comentou uma piadinha:
Prefiro usar moment a coffee.
A comunidade não gostou e reagiu, criticando o comentário infeliz e prezando o autor por compartilhar um código útil. Não satisfeito, as agressões sobre o uso de CoffeeScript continuaram.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Respect\Rest\Router; | |
$r3 = new Router(); | |
$routes = []; | |
$routes['singleAuthor'] = $r3->any('/authors/*', 'MySingleAuthorClass'); | |
$routes['singlePost'] = $r3->any('/posts/*', 'MySinglePostClass'); | |
$routes['postsList'] = $r3->any('/posts', 'MyPostsListClass'); |
Twelve Go Best Practices
Francesc Campoy Flores Gopher at Google @francesc http://campoy.cat/+
- Best practices
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.