In PHP
<?php
$vars = [
'name' => 'Loz'
];
$template = 'Hello {{ name }}!';In PHP
<?php
$vars = [
'name' => 'Loz'
];
$template = 'Hello {{ name }}!';| 1) Create a branch with the tag | |
| git branch {tagname}-branch {tagname} | |
| git checkout {tagname}-branch | |
| 2) Include the fix manually if it's just a change .... | |
| git add . | |
| git ci -m "Fix included" | |
| or cherry-pick the commit, whatever is easier | |
| git cherry-pick {num_commit} | |
| <?php | |
| // This can be found in the Symfony\Component\HttpFoundation\Response class | |
| const HTTP_CONTINUE = 100; | |
| const HTTP_SWITCHING_PROTOCOLS = 101; | |
| const HTTP_PROCESSING = 102; // RFC2518 | |
| const HTTP_OK = 200; | |
| const HTTP_CREATED = 201; | |
| const HTTP_ACCEPTED = 202; |
| function sendXmlOverPost($url, $xml) { | |
| $ch = curl_init(); | |
| curl_setopt($ch, CURLOPT_URL, $url); | |
| // For xml, change the content-type. | |
| curl_setopt ($ch, CURLOPT_HTTPHEADER, Array("Content-Type: text/xml")); | |
| curl_setopt($ch, CURLOPT_POST, 1); | |
| curl_setopt($ch, CURLOPT_POSTFIELDS, $xml); |
| #!/bin/sh | |
| # google chrome | |
| google-chrome www.soundcloud.com/you/likes | |
| echo "Ready to listen music" | |
| # open guake terminal and up laradock containers | |
| # move to a specific directory on laradock workspace | |
| WORKSPACE_URL="~/workspace/" | |
| PROJECT_NAME="first_project" |