2017-01-01から1年間の記事一覧
hexo hexo.io githubのアカウントあれば誰でもブログを公開できる まずはリポジトリ作成 [username].github.io というリポジトリを作成 hexoの準備 公式通りに hexoをグローバルにインストール $ npm install hexo-cli -g 以下のコマンドでディレクトリを作…
Promise.resolve().then(function() { return new Promise(function(fulfilled, rejected) { //処理1 fulfilled(); }); }).then(function() { return new Promise(function(fulfilled, rejected) { //処理2 fulfilled(); }); }).then(function() { return ne…
sudo npm install --no-bin-links --no-bin-linksをつければうまくいく
はじめに vagrantを使ってDjango開発環境を構築する vagrantでUbuntu 16.04 LTSの準備 ubuntu 16.04 LTSのboxを持っていることが前提 Vagrantfileの作成 $ vagrant init ubuntu/xenial64 作成されたVagrantfileのポートを設定 $ vim Vagrantfile 下記の部分…
curl を使ってシェルをダウンロード curl https://raw.githubusercontent.com/Shougo/dein.vim/master/bin/installer.sh -o /tmp/installer.sh シェルの実行 sh /tmp/installer.sh ~/.vim/dein "dein Scripts----------------------------- if &compatible s…
import datetime today = datetime.date.today() today.isoformat()
num_lines = sum(1 for line in open(text))
sudo apt-get update apt-get install -y software-properties-common sudo apt-get install apt-transport-https ca-certificates curl software-properties-common curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - sudo ap…