Let's say you want to host domains first.com
and second.com
.
Create folders for their files:
Handy helpers for controlling visibility of elements until Vue has compiled.
Use like:
<div v-cloak>
<h1>
<span class="v-cloak--inline">Loading...</span> <!-- Only displayed before compiling -->
<span class="v-cloak--hidden">{{ post.title }}</span> <!-- Hidden until compiling is finished -->
<?php | |
class TestCase extends Illuminate\Foundation\Testing\TestCase { | |
/** | |
* Creates the appliation. | |
* | |
* @return \Symfony\Component\HttpKernel\HttpKernelInterface | |
*/ | |
public function createApplication() |
<?php | |
/** | |
* Converts numbers in string from western to eastern Arabic numerals. | |
* | |
* @param string $str Arbitrary text | |
* @return string Text with western Arabic numerals converted into eastern Arabic numerals. | |
*/ | |
function arabic_w2e($str) { | |
$arabic_eastern = array('٠', '١', '٢', '٣', '٤', '٥', '٦', '٧', '٨', '٩'); |
As configured in my dotfiles.
start new:
tmux
start new with session name:
alias server='open http://localhost:8000 && python -m SimpleHTTPServer' |