- descriptionはREADMEに書いてあるのにupload時のコマンドのオプションに指定してあげないといけない
- 前回uploadしたURLをどこにも保持していないのでファイルを更新して再度uploadする時にURLを指定しないといけない
- ファイル指定しないといけない (そのディレクトリにあるファイル全てをuploadする時に ワイルドカードをいちいち指定しないといけない)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
COMPOSE_YAML := compose.yml | |
VOLUME_YAML := volumes.yml | |
MACHINE:= docker-machine | |
COMPOSE := docker-compose -f $(COMPOSE_YAML) | |
VOLUME := docker-volume | |
VOLUME_OPTIONS := --conf $(VOLUME_YAML) -m $(DOCKER_MACHINE_NAME) | |
INFRA_SERVICES := redis mysql fakes3 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import io | |
import pycurl | |
import progressbar | |
fp = io.BytesIO() | |
curl = pycurl.Curl() | |
curl.setopt(pycurl.URL, 'おおきなファイルのURL') # noqa | |
curl.setopt(pycurl.NOPROGRESS, 0) | |
curl.setopt(pycurl.WRITEDATA, fp) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import bs4 | |
import requests | |
res = requests.get('PyPIのURL') | |
soup = bs4.BeautifulSoup(res.content, 'html.parser') | |
package_names = [elm.getText() for elm in soup.select('#content table.list tr td a')] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NG_CONF_ROOT_CONF := $(CURDIR)/etc/ng | |
NG_CONF_DIR := $(CURDIR)/etc/ng.d | |
NG_LOCAL := $(CURDIR)/local | |
NG_LOCAL_CONF_NG := $(NG_CONF_DIR)/100-ng-local.sh | |
.PHONY: create | |
create: | |
mkdir -p \ | |
etc \ | |
home \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# frozen_string_literal: true | |
source "https://rubygems.org" | |
gem "fake_sns" |
HTMLのちょっとしたsampleをgistに置いているとそれを表示したくなります。 そんなとき以下の記事を見たので真似してみました。 http://qiita.com/hnakamur/items/ad1346bc9cfb0288ff60
このgistはその作業メモです。
- index.htmlを作成します。