This is a SCRIPT-8 cassette.
This file contains 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
package main | |
import ( | |
"context" | |
"flag" | |
"fmt" | |
"log" | |
"net/http" | |
"os" | |
"os/signal" |
This file contains 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 | |
$app['parameters.aws.access_key'] = $_SERVER['AWS_ACCESS_KEY_ID']; | |
$app['parameters.aws.secret_key'] = $_SERVER['AWS_SECRET_KEY']; | |
$app['parameters.mailer.host'] = $_SERVER['ASCIIGRAM__MAILER__HOST']; | |
$app['parameters.mailer.port'] = $_SERVER['ASCIIGRAM__MAILER__PORT']; | |
$app['parameters.mailer.username'] = $_SERVER['ASCIIGRAM__MAILER__USER']; | |
$app['parameters.mailer.password'] = $_SERVER['ASCIIGRAM__MAILER__PASS']; | |
$app['parameters.mailer.encryption'] = $_SERVER['ASCIIGRAM__MAILER__ENCRYPTION']; |
This file contains 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
parameters: | |
acme_i18n.listener.locale_listener.class: Acme\Bundle\I18nBundle\EventListener\LocaleListener | |
services: | |
acme_i18n.listener.locale_listener: | |
class: %acme_i18n.listener.locale_listener.class% | |
arguments: [ @service_container, "%locales%" ] | |
tags: | |
- { name: kernel.event_listener, event: kernel.request, method: onKernelRequest, priority: -255 } |
This file contains 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 | |
namespace Acme\Bundle\I18nBundle\EventListener; | |
use Symfony\Component\HttpKernel\HttpKernelInterface; | |
use Symfony\Component\DependencyInjection\ContainerInterface; | |
use Symfony\Component\HttpKernel\Event\GetResponseEvent; | |
class LocaleListener | |
{ |
This file contains 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
{% if app.session.flashbag.peekAll|length > 0 %} | |
{% for type, messages in app.session.flashbag.all %} | |
{% for message in messages %} | |
<div class="{{ type ? type : '' }}"> | |
{{ message|trans({}, domain|default('messages')) }} | |
</div> | |
{% endfor %} | |
{% endfor %} | |
{% endif %} |
This file contains 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
parse_git_branch() | |
{ | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' | |
} | |
export PS1="\[\033[01;34m\] \w\[\033[31m\]\$(parse_git_branch) \[\033[00m\]$\[\033[00m\] " |
This file contains 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 | |
/* /library/Square/Form/Contact.php */ | |
class Square_Form_Contact extends Zend_Form | |
{ | |
public function init() | |
{ |