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
#Hide directories and files | |
Options -Indexes | |
#Set Enviroment Varaibles | |
SetEnv APPLICATION_ENV "development" | |
# Enable the rewrite engine | |
RewriteEngine On | |
# redirect non www to www |
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 App\Entity; | |
use App\Model\Account\MembershipInterface; | |
use App\Model\Resource\TimestampableTrait; | |
use App\Model\Resource\ToggleableTrait; | |
use App\Model\Resource\UuidTrait; | |
use App\Model\User\UserInterface; | |
use Doctrine\Common\Collections\Collection; |
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
APP_COOKIE_DOMAIN=.example.test | |
CORS_ALLOW_ORIGIN=^https?://app.example.test(:[0-9]+)?$ |
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
# DOCKER COMPOSE | |
#################################################################### | |
docker-compose exec {CONTAINER_ID} sh |
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
<div class="row"> | |
<? | |
$i = 0; | |
foreach ($cars as $car) { | |
?> | |
Your code here | |
<? | |
$i++; | |
if ($i % 3 == 0) { | |
echo '</div><div class="row">'; |
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
<template> | |
<div id="payment-form"> | |
<div class="q-mt-md q-mb-md text-negative" v-if="submissionError"> | |
<div id="card-errors" role="alert">{{ submissionError }}</div> | |
</div> | |
<q-field label="Card Number" | |
stack-label | |
class="q-mb-md" |
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
"""Convert submit_sm to deliver_sm and reinject it back in rabbitmq | |
as coming from connector's CID same as submit_sm's uid | |
Design is diagrammed here: https://sketchboard.me/nAvXcoQqcbIt#/""" | |
import cPickle as pickle | |
import logging | |
import uuid | |
import pika | |
from datetime import datetime |
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
{ | |
"AF": { | |
"name": "Afghanistan", | |
"iso2": "AF", | |
"iso3": "AFG", | |
"nationality": "Afghan", | |
"code": "004", | |
"prefix": "93" | |
}, | |
"AL": { |
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 | |
class Website_Model_Product extends Object_Concrete | |
{ | |
/** | |
* Retreive the values in an array | |
* | |
* @return array | |
*/ | |
public function toArray() |
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 App\Entity\Embeddable; | |
use App\Model\Intl\MoneyInterface; | |
use Brick\Math\BigNumber; | |
use Brick\Math\Exception\NumberFormatException; | |
use Brick\Math\RoundingMode; | |
use Brick\Money\Context\CustomContext; | |
use Doctrine\ORM\Mapping as ORM; |