{{[{]?(.*?)[}]?}}
{{> components/templates/email/includes/email-tr-spacer }}
{{# deliveryAddress }}
// App / app HTTP | commands | console | events | |
/ Http | |
/ Commands | |
/ Messages | |
/ MessageNewHttpCommand.php | |
/ Events | |
/ Messages | |
/ MessageWasCreatedEvent.php |
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Sid": "PackerSecurityGroupAccess", | |
"Action": [ | |
"ec2:CreateSecurityGroup", | |
"ec2:DeleteSecurityGroup", | |
"ec2:DescribeSecurityGroups", | |
"ec2:AuthorizeSecurityGroupIngress", |
<?php | |
if ( ! function_exists('config_path')) | |
{ | |
/** | |
* Get the configuration path. | |
* | |
* @param string $path | |
* @return string | |
*/ |
<?php | |
class ArrUtils | |
{ | |
/** | |
* @param $searchKey | |
* @param $dataArray | |
* @return boolean | |
*/ | |
protected function isKeyInArray($searchKey, $dataArray) | |
{ |
<?php | |
class Helper | |
{ | |
/** | |
* Finds all mustache template tokens ex: | |
* {{> components/templates/email/includes/email-tr-spacer-thin }} | |
* {{# deliveryAddress }} | |
* {{^ deliveryAddress }} | |
* {{{ deliveryAddressReadable }}} | |
* {{ deliveryAddressReadable }} |
<?php | |
/** | |
* Link to original answer http://stackoverflow.com/a/10424516/461712 by http://stackoverflow.com/users/249538/goat | |
*/ | |
class ArrUtils { | |
/** | |
* @param $array | |
* @return array |
{ | |
"status": 200, | |
"data": { | |
"km_per_liter": 10.79, | |
"liters_per_hundred_km": 9.27, | |
"total_trip_km": 355 | |
} | |
} |
<?php | |
/* | |
* Gets the rows from a csv file in laravel. via https://github.com/johnmarkmassey :+1: | |
*/ | |
$rows = array_map('str_getcsv', file(app_path('database/migrations/test_data.csv'))); | |
var_dump($rows); |
# | |
# Credit to http://jimhoskins.com/2013/07/27/remove-untagged-docker-images.html | |
# | |
# Add this to your bash profile. | |
# | |
clean_docker () { | |
# Remove stopped containers | |
docker rm $(docker ps -a -q); | |
# Remove untagged images |