git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
<script> | |
export default { | |
props: ['value', 'city'], | |
template: '<input type="text" \ | |
id="address-autocomplete"\ | |
ref="input" \ | |
v-bind:value="value" \ | |
v-on:input="$emit(\'input\', $event.target.value)"/>', | |
mounted: function () { |
<?php | |
/** | |
* truncate_html() | |
* | |
* Truncates a HTML string to a given length of _visisble_ (content) characters. | |
* E.g. | |
* "This is some <b>bold</b> text" has a visible/content length of 22 characters, | |
* though the total string length is 29 characters. | |
* This function allows you to limit the visible/content length whilst preserving any HTML formatting. |
/<img .*?(?=src)src="([^"]+)"/si |
preg_replace('/<a(.*?)>(.*?)<\/a>/is', '$2', $content); |
server { | |
listen 80; | |
listen [::]:80; | |
root /home/mikhail/projects/test.local; | |
index index.html index.htm index.php; | |
# Make site accessible from http://localhost/ | |
server_name test.local; |