#我的 Vim 指令筆記
##vim 的三種模式 ###模式
輸入模式
:輸入內文。指揮模式
:也叫指令模式,主要是進入到可以對文件做修改,複製,剪下貼上,游標移動等動作。執行模式
:文件存檔,離開等等行為。
###常用模式的切換
- 輸入模式 -> 指揮模式 : 鍵盤
Esc
#我的 Vim 指令筆記
##vim 的三種模式 ###模式
輸入模式
:輸入內文。指揮模式
:也叫指令模式,主要是進入到可以對文件做修改,複製,剪下貼上,游標移動等動作。執行模式
:文件存檔,離開等等行為。###常用模式的切換
Esc
<?php | |
final class EmailValueObject | |
{ | |
private $mailbox; | |
private $host; | |
public function __construct($email) | |
{ | |
if (false === strpos($email, '@')) { |
/** | |
* Mass (bulk) insert or update on duplicate for Laravel 4/5 | |
* | |
* insertOrUpdate([ | |
* ['id'=>1,'value'=>10], | |
* ['id'=>2,'value'=>60] | |
* ]); | |
* | |
* | |
* @param array $rows |
<?php | |
declare(strict_types=1); | |
function array_zip(array ...$arrays): array | |
{ | |
// Applied suggestion from reddit | |
// https://www.reddit.com/r/PHP/comments/76czco/php_equivalent_of_pythons_zip_function/doe5j86/ | |
return \array_map(null, ...$arrays); | |
} |
People
![]() :bowtie: |
😄 :smile: |
😆 :laughing: |
---|---|---|
😊 :blush: |
😃 :smiley: |
:relaxed: |
😏 :smirk: |
😍 :heart_eyes: |
😘 :kissing_heart: |
😚 :kissing_closed_eyes: |
😳 :flushed: |
😌 :relieved: |
😆 :satisfied: |
😁 :grin: |
😉 :wink: |
😜 :stuck_out_tongue_winking_eye: |
😝 :stuck_out_tongue_closed_eyes: |
😀 :grinning: |
😗 :kissing: |
😙 :kissing_smiling_eyes: |
😛 :stuck_out_tongue: |
git archive --format=tar.gz -o /tmp/my-repo.tar.gz --prefix=my-repo/ master |
function mg_send($to, $subject, $message) { | |
$ch = curl_init(); | |
curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC); | |
curl_setopt($ch, CURLOPT_USERPWD, 'api:'.MAILGUN_API); | |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); | |
$plain = strip_tags(br2nl($message)); |
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash - | |
echo "Installing NodeJS 6.x" | |
sudo apt-get install nodejs | |
echo "Install webpack globally" | |
sudo npm install webpack -g | |
echo "Install nightwatch globally" | |
sudo npm install webpack -g |
Run this command to install MG-CLI: | |
sudo apt-get update && wget https://minergate.com/download/deb-cli -O minergate-cli.deb && sudo dpkg -i minergate-cli.deb | |
to start miner (4 cores for BCN) use this command: | |
minergate-cli -user <[email protected]> -bcn 4 | |
Feel free to send some of your earnings to me: | |
BTC (Don't attempt to send other coins to this address!): 17f77AYHsQbdsB1Q6BbqPahJ8ZrjFLYH2j |