update deps

This commit is contained in:
uetchy 2017-11-20 21:34:36 +09:00
parent e5d2681f2c
commit 1fb5aa3f11
11 changed files with 2150 additions and 185 deletions

View File

@ -1,9 +1,21 @@
FROM ruby:2.3 FROM ruby:2.4
WORKDIR /usr/src/app/ WORKDIR /usr/src/app/
# see http://stackoverflow.com/questions/38453963/gitlab-ci-setup-error-could-not-find-a-javascript-runtime # see http://stackoverflow.com/questions/38453963/gitlab-ci-setup-error-could-not-find-a-javascript-runtime
RUN apt-get update && apt-get install nodejs -y RUN apt-get update && apt-get install nodejs -y
# set locale
RUN apt-get install -y locales
RUN dpkg-reconfigure locales && \
locale-gen C.UTF-8 && \
/usr/sbin/update-locale LANG=C.UTF-8
RUN echo 'en_US.UTF-8 UTF-8' >> /etc/locale.gen && \
locale-gen
ENV LC_ALL C.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US.UTF-8
# install gems
COPY Gemfile /usr/src/app/ COPY Gemfile /usr/src/app/
RUN bundle install RUN bundle install

View File

@ -1,3 +1,3 @@
source 'https://rubygems.org' source 'https://rubygems.org'
gem 'github-pages', '124', group: :jekyll_plugins # workaround https://github.com/github/pages-gem#usage gem 'github-pages', group: :jekyll_plugins # workaround https://github.com/github/pages-gem#usage

View File

@ -1,9 +1,8 @@
GEM GEM
remote: https://rubygems.org/ remote: https://rubygems.org/
specs: specs:
activesupport (4.2.7) activesupport (4.2.9)
i18n (~> 0.7) i18n (~> 0.7)
json (~> 1.7, >= 1.7.7)
minitest (~> 5.1) minitest (~> 5.1)
thread_safe (~> 0.3, >= 0.3.4) thread_safe (~> 0.3, >= 0.3.4)
tzinfo (~> 1.1) tzinfo (~> 1.1)
@ -12,9 +11,10 @@ GEM
coffee-script (2.4.1) coffee-script (2.4.1)
coffee-script-source coffee-script-source
execjs execjs
coffee-script-source (1.12.2) coffee-script-source (1.11.1)
colorator (1.1.0) colorator (1.1.0)
ethon (0.10.1) concurrent-ruby (1.0.5)
ethon (0.11.0)
ffi (>= 1.3.0) ffi (>= 1.3.0)
execjs (2.7.0) execjs (2.7.0)
faraday (0.13.1) faraday (0.13.1)
@ -22,50 +22,49 @@ GEM
ffi (1.9.18) ffi (1.9.18)
forwardable-extended (2.6.0) forwardable-extended (2.6.0)
gemoji (3.0.0) gemoji (3.0.0)
github-pages (124) github-pages (168)
activesupport (= 4.2.7) activesupport (= 4.2.9)
github-pages-health-check (= 1.3.1) github-pages-health-check (= 1.3.5)
jekyll (= 3.3.1) jekyll (= 3.6.2)
jekyll-avatar (= 0.4.2) jekyll-avatar (= 0.5.0)
jekyll-coffeescript (= 1.0.1) jekyll-coffeescript (= 1.0.2)
jekyll-default-layout (= 0.1.4) jekyll-default-layout (= 0.1.4)
jekyll-feed (= 0.9.1) jekyll-feed (= 0.9.2)
jekyll-gist (= 1.4.0) jekyll-gist (= 1.4.1)
jekyll-github-metadata (= 2.3.1) jekyll-github-metadata (= 2.9.3)
jekyll-mentions (= 1.2.0) jekyll-mentions (= 1.2.0)
jekyll-optional-front-matter (= 0.1.2) jekyll-optional-front-matter (= 0.2.0)
jekyll-paginate (= 1.1.0) jekyll-paginate (= 1.1.0)
jekyll-readme-index (= 0.0.4) jekyll-readme-index (= 0.1.0)
jekyll-redirect-from (= 0.12.1) jekyll-redirect-from (= 0.12.1)
jekyll-relative-links (= 0.3.0) jekyll-relative-links (= 0.5.1)
jekyll-sass-converter (= 1.5.0) jekyll-sass-converter (= 1.5.0)
jekyll-seo-tag (= 2.1.0) jekyll-seo-tag (= 2.3.0)
jekyll-sitemap (= 1.0.0) jekyll-sitemap (= 1.1.1)
jekyll-swiss (= 0.4.0) jekyll-swiss (= 0.4.0)
jekyll-theme-architect (= 0.0.3) jekyll-theme-architect (= 0.1.0)
jekyll-theme-cayman (= 0.0.3) jekyll-theme-cayman (= 0.1.0)
jekyll-theme-dinky (= 0.0.3) jekyll-theme-dinky (= 0.1.0)
jekyll-theme-hacker (= 0.0.3) jekyll-theme-hacker (= 0.1.0)
jekyll-theme-leap-day (= 0.0.3) jekyll-theme-leap-day (= 0.1.0)
jekyll-theme-merlot (= 0.0.3) jekyll-theme-merlot (= 0.1.0)
jekyll-theme-midnight (= 0.0.3) jekyll-theme-midnight (= 0.1.0)
jekyll-theme-minimal (= 0.0.3) jekyll-theme-minimal (= 0.1.0)
jekyll-theme-modernist (= 0.0.3) jekyll-theme-modernist (= 0.1.0)
jekyll-theme-primer (= 0.1.7) jekyll-theme-primer (= 0.5.2)
jekyll-theme-slate (= 0.0.3) jekyll-theme-slate (= 0.1.0)
jekyll-theme-tactile (= 0.0.3) jekyll-theme-tactile (= 0.1.0)
jekyll-theme-time-machine (= 0.0.3) jekyll-theme-time-machine (= 0.1.0)
jekyll-titles-from-headings (= 0.1.4) jekyll-titles-from-headings (= 0.4.0)
jemoji (= 0.8.0) jemoji (= 0.8.1)
kramdown (= 1.13.2) kramdown (= 1.14.0)
liquid (= 3.0.6) liquid (= 4.0.0)
listen (= 3.0.6) listen (= 3.0.6)
mercenary (~> 0.3) mercenary (~> 0.3)
minima (= 2.0.0) minima (= 2.1.1)
nokogiri (= 1.6.8.1) rouge (= 2.2.1)
rouge (= 1.11.1)
terminal-table (~> 1.4) terminal-table (~> 1.4)
github-pages-health-check (1.3.1) github-pages-health-check (1.3.5)
addressable (~> 2.3) addressable (~> 2.3)
net-dns (~> 0.8) net-dns (~> 0.8)
octokit (~> 4.0) octokit (~> 4.0)
@ -74,100 +73,116 @@ GEM
html-pipeline (2.7.1) html-pipeline (2.7.1)
activesupport (>= 2) activesupport (>= 2)
nokogiri (>= 1.4) nokogiri (>= 1.4)
i18n (0.8.6) i18n (0.9.1)
jekyll (3.3.1) concurrent-ruby (~> 1.0)
jekyll (3.6.2)
addressable (~> 2.4) addressable (~> 2.4)
colorator (~> 1.0) colorator (~> 1.0)
jekyll-sass-converter (~> 1.0) jekyll-sass-converter (~> 1.0)
jekyll-watch (~> 1.1) jekyll-watch (~> 1.1)
kramdown (~> 1.3) kramdown (~> 1.14)
liquid (~> 3.0) liquid (~> 4.0)
mercenary (~> 0.3.3) mercenary (~> 0.3.3)
pathutil (~> 0.9) pathutil (~> 0.9)
rouge (~> 1.7) rouge (>= 1.7, < 3)
safe_yaml (~> 1.0) safe_yaml (~> 1.0)
jekyll-avatar (0.4.2) jekyll-avatar (0.5.0)
jekyll (~> 3.0) jekyll (~> 3.0)
jekyll-coffeescript (1.0.1) jekyll-coffeescript (1.0.2)
coffee-script (~> 2.2) coffee-script (~> 2.2)
coffee-script-source (~> 1.11.1)
jekyll-default-layout (0.1.4) jekyll-default-layout (0.1.4)
jekyll (~> 3.0) jekyll (~> 3.0)
jekyll-feed (0.9.1) jekyll-feed (0.9.2)
jekyll (~> 3.3) jekyll (~> 3.3)
jekyll-gist (1.4.0) jekyll-gist (1.4.1)
octokit (~> 4.2) octokit (~> 4.2)
jekyll-github-metadata (2.3.1) jekyll-github-metadata (2.9.3)
jekyll (~> 3.1) jekyll (~> 3.1)
octokit (~> 4.0, != 4.4.0) octokit (~> 4.0, != 4.4.0)
jekyll-mentions (1.2.0) jekyll-mentions (1.2.0)
activesupport (~> 4.0) activesupport (~> 4.0)
html-pipeline (~> 2.3) html-pipeline (~> 2.3)
jekyll (~> 3.0) jekyll (~> 3.0)
jekyll-optional-front-matter (0.1.2) jekyll-optional-front-matter (0.2.0)
jekyll (~> 3.0) jekyll (~> 3.0)
jekyll-paginate (1.1.0) jekyll-paginate (1.1.0)
jekyll-readme-index (0.0.4) jekyll-readme-index (0.1.0)
jekyll (~> 3.0) jekyll (~> 3.0)
jekyll-redirect-from (0.12.1) jekyll-redirect-from (0.12.1)
jekyll (~> 3.3) jekyll (~> 3.3)
jekyll-relative-links (0.3.0) jekyll-relative-links (0.5.1)
jekyll (~> 3.3) jekyll (~> 3.3)
jekyll-sass-converter (1.5.0) jekyll-sass-converter (1.5.0)
sass (~> 3.4) sass (~> 3.4)
jekyll-seo-tag (2.1.0) jekyll-seo-tag (2.3.0)
jekyll (~> 3.3) jekyll (~> 3.3)
jekyll-sitemap (1.0.0) jekyll-sitemap (1.1.1)
jekyll (~> 3.3) jekyll (~> 3.3)
jekyll-swiss (0.4.0) jekyll-swiss (0.4.0)
jekyll-theme-architect (0.0.3) jekyll-theme-architect (0.1.0)
jekyll (~> 3.3) jekyll (~> 3.5)
jekyll-theme-cayman (0.0.3) jekyll-seo-tag (~> 2.0)
jekyll (~> 3.3) jekyll-theme-cayman (0.1.0)
jekyll-theme-dinky (0.0.3) jekyll (~> 3.5)
jekyll (~> 3.3) jekyll-seo-tag (~> 2.0)
jekyll-theme-hacker (0.0.3) jekyll-theme-dinky (0.1.0)
jekyll (~> 3.3) jekyll (~> 3.5)
jekyll-theme-leap-day (0.0.3) jekyll-seo-tag (~> 2.0)
jekyll (~> 3.3) jekyll-theme-hacker (0.1.0)
jekyll-theme-merlot (0.0.3) jekyll (~> 3.5)
jekyll (~> 3.3) jekyll-seo-tag (~> 2.0)
jekyll-theme-midnight (0.0.3) jekyll-theme-leap-day (0.1.0)
jekyll (~> 3.3) jekyll (~> 3.5)
jekyll-theme-minimal (0.0.3) jekyll-seo-tag (~> 2.0)
jekyll (~> 3.3) jekyll-theme-merlot (0.1.0)
jekyll-theme-modernist (0.0.3) jekyll (~> 3.5)
jekyll (~> 3.3) jekyll-seo-tag (~> 2.0)
jekyll-theme-primer (0.1.7) jekyll-theme-midnight (0.1.0)
jekyll (~> 3.3) jekyll (~> 3.5)
jekyll-theme-slate (0.0.3) jekyll-seo-tag (~> 2.0)
jekyll (~> 3.3) jekyll-theme-minimal (0.1.0)
jekyll-theme-tactile (0.0.3) jekyll (~> 3.5)
jekyll (~> 3.3) jekyll-seo-tag (~> 2.0)
jekyll-theme-time-machine (0.0.3) jekyll-theme-modernist (0.1.0)
jekyll (~> 3.3) jekyll (~> 3.5)
jekyll-titles-from-headings (0.1.4) jekyll-seo-tag (~> 2.0)
jekyll-theme-primer (0.5.2)
jekyll (~> 3.5)
jekyll-github-metadata (~> 2.9)
jekyll-seo-tag (~> 2.2)
jekyll-theme-slate (0.1.0)
jekyll (~> 3.5)
jekyll-seo-tag (~> 2.0)
jekyll-theme-tactile (0.1.0)
jekyll (~> 3.5)
jekyll-seo-tag (~> 2.0)
jekyll-theme-time-machine (0.1.0)
jekyll (~> 3.5)
jekyll-seo-tag (~> 2.0)
jekyll-titles-from-headings (0.4.0)
jekyll (~> 3.3) jekyll (~> 3.3)
jekyll-watch (1.5.0) jekyll-watch (1.5.0)
listen (~> 3.0, < 3.1) listen (~> 3.0, < 3.1)
jemoji (0.8.0) jemoji (0.8.1)
activesupport (~> 4.0) activesupport (~> 4.0, >= 4.2.9)
gemoji (~> 3.0) gemoji (~> 3.0)
html-pipeline (~> 2.2) html-pipeline (~> 2.2)
jekyll (>= 3.0) jekyll (>= 3.0)
json (1.8.6) kramdown (1.14.0)
kramdown (1.13.2) liquid (4.0.0)
liquid (3.0.6)
listen (3.0.6) listen (3.0.6)
rb-fsevent (>= 0.9.3) rb-fsevent (>= 0.9.3)
rb-inotify (>= 0.9.7) rb-inotify (>= 0.9.7)
mercenary (0.3.6) mercenary (0.3.6)
mini_portile2 (2.1.0) mini_portile2 (2.3.0)
minima (2.0.0) minima (2.1.1)
jekyll (~> 3.3)
minitest (5.10.3) minitest (5.10.3)
multipart-post (2.0.0) multipart-post (2.0.0)
net-dns (0.8.0) net-dns (0.8.0)
nokogiri (1.6.8.1) nokogiri (1.8.1)
mini_portile2 (~> 2.1.0) mini_portile2 (~> 2.3.0)
octokit (4.7.0) octokit (4.7.0)
sawyer (~> 0.8.0, >= 0.5.3) sawyer (~> 0.8.0, >= 0.5.3)
pathutil (0.16.0) pathutil (0.16.0)
@ -176,9 +191,9 @@ GEM
rb-fsevent (0.10.2) rb-fsevent (0.10.2)
rb-inotify (0.9.10) rb-inotify (0.9.10)
ffi (>= 0.5.0, < 2) ffi (>= 0.5.0, < 2)
rouge (1.11.1) rouge (2.2.1)
safe_yaml (1.0.4) safe_yaml (1.0.4)
sass (3.5.2) sass (3.5.3)
sass-listen (~> 4.0.0) sass-listen (~> 4.0.0)
sass-listen (4.0.0) sass-listen (4.0.0)
rb-fsevent (~> 0.9, >= 0.9.4) rb-fsevent (~> 0.9, >= 0.9.4)
@ -191,7 +206,7 @@ GEM
thread_safe (0.3.6) thread_safe (0.3.6)
typhoeus (0.8.0) typhoeus (0.8.0)
ethon (>= 0.8.0) ethon (>= 0.8.0)
tzinfo (1.2.3) tzinfo (1.2.4)
thread_safe (~> 0.1) thread_safe (~> 0.1)
unicode-display_width (1.3.0) unicode-display_width (1.3.0)
@ -199,7 +214,7 @@ PLATFORMS
ruby ruby
DEPENDENCIES DEPENDENCIES
github-pages (= 124) github-pages
BUNDLED WITH BUNDLED WITH
1.15.4 1.15.4

View File

@ -26,20 +26,23 @@ logo: "/images/icon.png"
highlighter: highlighter:
excerpt_separator: "#" excerpt_separator: "#"
google_analytics: UA-28919359-12 google_analytics: UA-28919359-12
gems: plugins:
- jekyll-redirect-from - jekyll-redirect-from
- jekyll-sitemap - jekyll-sitemap
- jekyll-seo-tag - jekyll-seo-tag
- jekyll-feed - jekyll-feed
- jemoji - jemoji
include: include:
- _pages - _pages
exclude: exclude:
- README.md - README.md
- LICENSE - LICENSE
- CNAME - CNAME
- Gemfile - Gemfile
- Gemfile.lock - Gemfile.lock
- package.json - package.json
- script - node_modules
- vendor - script
- vendor
- docker-compose.yml
- Dockerfile

View File

@ -8,25 +8,42 @@
<link rel="icon" type="image/png" href="{{ site.baseurl }}/images/favicon-32x32.png" sizes="32x32"> <link rel="icon" type="image/png" href="{{ site.baseurl }}/images/favicon-32x32.png" sizes="32x32">
<link rel="icon" type="image/png" href="{{ site.baseurl }}/images/favicon-16x16.png" sizes="16x16"> <link rel="icon" type="image/png" href="{{ site.baseurl }}/images/favicon-16x16.png" sizes="16x16">
<link rel="mask-icon" href="{{ site.baseurl }}/images/safari-pinned-tab.svg" color="#5bbad5"> <link rel="mask-icon" href="{{ site.baseurl }}/images/safari-pinned-tab.svg" color="#5bbad5">
<link rel='stylesheet' href='{{ site.baseurl }}/css/index.css'>
{% seo %} {% seo %}
{% feed_meta %} {% feed_meta %}
<!-- Normalize.js --> <!-- Normalize.js -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css" /> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/7.0.0/normalize.min.css" />
<!-- Highlight.js --> <!-- Highlight.js -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.9.0/styles/default.min.css"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/default.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.9.0/highlight.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/highlight.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.9.0/languages/go.min.js"></script> <script defer src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/languages/go.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.9.0/languages/scss.min.js"></script> <script defer src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/languages/scss.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.9.0/languages/lua.min.js"></script> <script defer src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/languages/lua.min.js"></script>
<script> <script>
hljs.initHighlightingOnLoad() hljs.initHighlightingOnLoad()
</script> </script>
<!-- Main CSS --> <link rel='stylesheet' href='/css/index.css'>
<link rel="stylesheet" href="/css/index.css">
<!-- MathJax -->
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
tex2jax: {
inlineMath: [['$','$'], ['\\(','\\)']],
displayMath: [['$$','$$'], ['\[','\]']],
processEscapes: false,
processEnvironments: false,
skipTags: ['script', 'noscript', 'style', 'textarea', 'pre', 'a']
}
});
</script>
<script type="text/javascript" async
src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.2/MathJax.js?config=TeX-AMS_SVG">
</script>
<!-- Share -->
<script defer src="https://connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.8" id="facebook-jssdk"></script>
<script defer src="https://platform.twitter.com/widgets.js" id="twitter-wjs"></script>
</head> </head>

View File

@ -5,8 +5,10 @@ layout: default
<section> <section>
<article class="article"> <article class="article">
<hgroup class="article__metadata"> <hgroup class="article__metadata">
<h2 class="article__title">{{ page.title }}</h1> <h2 class="article__title">{{ page.title }}</h2>
<h3 class="article__pubdate"><time pubdate>{{ page.date | date: '%B %d, %Y' }}</time></h3> <h3 class="article__pubdate">
<time pubdate>{{ page.date | date: '%B %d, %Y' }}</time>
</h3>
</hgroup> </hgroup>
<div class="article__content"> <div class="article__content">
{{ content }} {{ content }}
@ -14,43 +16,9 @@ layout: default
<!-- Social buttons --> <!-- Social buttons -->
<div id="fb-root"></div> <div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.8";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<div class="article__social"> <div class="article__social">
<a href="https://twitter.com/share" class="twitter-share-button" data-size="large">Tweet</a> <a href="https://twitter.com/share" class="twitter-share-button" data-size="large">Tweet</a>
<div class="fb-like" data-layout="button" data-action="like" data-size="large" data-show-faces="false" data-share="true"></div> <div class="fb-like" data-layout="button" data-action="like" data-size="large" data-show-faces="false" data-share="true"></div>
</div> </div>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>
</article> </article>
</section> </section>
<!-- Include MathJax -->
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
tex2jax: {
inlineMath: [['$','$'], ['\\(','\\)']],
displayMath: [['$$','$$'], ['\[','\]']],
processEscapes: false,
processEnvironments: false,
skipTags: ['script', 'noscript', 'style', 'textarea', 'pre', 'a']
}
});
</script>
<!-- <script type="text/x-mathjax-config">
MathJax.Hub.Queue(function() {
// Fix <code> tags after MathJax finishes running. This is a
// hack to overcome a shortcoming of Markdown. Discussion at
// https://github.com/mojombo/jekyll/issues/199
var all = MathJax.Hub.getAllJax(), i;
for(i = 0; i < all.length; i += 1) {
all[i].SourceElement().parentNode.className += ' has-jax';
}
});
</script> -->
<script type="text/javascript" async src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_SVG">
</script>

View File

@ -3,35 +3,39 @@ title: OSXに音声解析エンジンJuliusを入れる with Homebrew
date: 2013-07-07 09:00:00 +09:00 date: 2013-07-07 09:00:00 +09:00
--- ---
Homebrewを使ってmacOSに音声解析エンジンJuliusをインストールします。 Homebrew を使って macOS に音声解析エンジン Julius をインストールします。
# 前提 # 前提
OS X用のパッケージ管理ツール Homebrew がインストールされている必要がある。 OS X 用のパッケージ管理ツール Homebrew がインストールされている必要がある。
インストール方法は[こちら](http://www.engineyard.co.jp/blog/2012/homebrew-os-xs-missing-package-manager/)を参照。 インストール方法
は[こちら](http://www.engineyard.co.jp/blog/2012/homebrew-os-xs-missing-package-manager/)を
参照。
# インストール # インストール
デフォルトのHomebrewリポジトリにJuliusは含まれていないので、[homebrew-nlp](https://github.com/uetchy/homebrew-nlp) をtapする。 デフォルトの Homebrew リポジトリに Julius は含まれていないので
、[homebrew-nlp](https://github.com/uetchy/homebrew-nlp) を tap する。
```bash ```bash
$ brew tap uetchy/nlp $ brew tap uetchy/nlp
``` ```
Tapし終わったら、`julius``julius-dictation-kit`をインストールする。 Tap し終わったら、`julius``julius-dictation-kit`をインストールする。
```bash ```bash
$ brew install julius julius-dictation-kit $ brew install julius julius-dictation-kit
``` ```
これで Julius と Juliusディクテーションキットがインストールされた。 これで Julius と Julius ディクテーションキットがインストールされた。
ディクテーションキットの場所は `brew --prefix julius-dictation-kit` コマンドで調べられる。 ディクテーションキットの場所は `brew --prefix julius-dictation-kit` コマンドで調
べられる。
後は、上記の `brew --prefix` コマンドでディクテーションキット内の **main.jconf****am-gmm.jconf** のパスを調べて `julius` に渡すことで音声認識が出来るようになる。 後は、上記の `brew --prefix` コマンドでディクテーションキット内の **main.jconf**
**am-gmm.jconf** のパスを調べて `julius` に渡すことで音声認識が出来るようにな
る。
```bash ```bash
$ julius \ $ julius \
@ -39,9 +43,11 @@ $ julius \
-C `brew --prefix julius-dictation-kit`/share/am-gmm.jconf -C `brew --prefix julius-dictation-kit`/share/am-gmm.jconf
``` ```
上記のコマンドでJuliusはGMMモードで待機状態になり、喋った内容をリアルタイムで音声認識してくれるようになる。 上記のコマンドで Julius は GMM モードで待機状態になり、喋った内容をリアルタイム
で音声認識してくれるようになる。
Juliusをより精密なDNNモードで起動したい場合は以下のように、**am-gmm.jconf** を **am-dnn.jconf** に変更するだけだ。 Julius をより精密な DNN モードで起動したい場合は以下のように、**am-gmm.jconf**
**am-dnn.jconf** に変更するだけだ。
```bash ```bash
$ julius \ $ julius \

View File

@ -3,15 +3,19 @@ title: Rails Assetsのパッケージをコマンドラインから検索する
date: 2014-03-14 09:00:00 +09:00 date: 2014-03-14 09:00:00 +09:00
--- ---
[Rails Assets](https://rails-assets.org/) はBowerパッケージをBundlerで管理出来る便利なサービスである。 [Rails Assets](https://rails-assets.org/) は Bower パッケージを Bundler で管理出
来る便利なサービスである。
ウェブサイトにアクセスして、Rails Assetsに登録されているパッケージを検索するのは面倒なのでCLIから検索したい。そのためには`gem search --source {url}`オプションを利用したら良い。 ウェブサイトにアクセスして、Rails Assets に登録されているパッケージを検索するの
は面倒なので CLI から検索したい。そのためには`gem search --source {url}`オプショ
ンを利用したら良い。
```bash ```bash
$ gem search {package-name} --source https://rails-assets.org | grep "^rails-assets-" $ gem search {package-name} --source https://rails-assets.org | grep "^rails-assets-"
``` ```
`gem search` はsourceを指定しているにも関わらず RubyGems.org のパッケージも引っかかってしまうのでRails Assetsのプレフィックスで抽出している。 `gem search` は source を指定しているにも関わらず RubyGems.org のパッケージも引
っかかってしまうので Rails Assets のプレフィックスで抽出している。
### シェルスクリプト ### シェルスクリプト
@ -24,8 +28,9 @@ gem search $1 $2 --source https://rails-assets.org | grep "^rails-assets-"
もっと簡単に、シェル関数を定義することも出来る。 もっと簡単に、シェル関数を定義することも出来る。
```bash:~/.zshrc ```bash:~/.zshrc rails-assets(){ gem search $1 $2 --source
rails-assets(){ https://rails-assets.org | grep "^rails-assets-" }
gem search $1 $2 --source https://rails-assets.org | grep "^rails-assets-"
} ```
``` ```

View File

@ -5,19 +5,23 @@ date: 2014-10-27 09:00:00 +09:00
![image](http://randompaper.co.s3.amazonaws.com/brew-cask-downloader/ss3.png) ![image](http://randompaper.co.s3.amazonaws.com/brew-cask-downloader/ss3.png)
homebrew-caskを単純なダウンローダーとして使う。 homebrew-cask を単純なダウンローダーとして使う。
# 理由 # 理由
1. __pkg形式__ で配布されているアプリケーションはインストール時にオプションをカスタマイズ出来ることが多い。 1. **pkg 形式** で配布されているアプリケーションはインストール時にオプションをカ
2. にも関わらず`brew cask install`を使うと、それらのオプションを選べずにインストールされてしまい悲しい。 スタマイズ出来ることが多い。
3. そこで、`brew cask`でfetchまでは自動化して、インストール自体は手動でやろう(スマートではないが。) 2. にも関わらず`brew cask install`を使うと、それらのオプションを選べずにインスト
ールされてしまい悲しい。
3. そこで、`brew cask`で fetch までは自動化して、インストール自体は手動でやろう
( スマートではないが。)
# 方法 # 方法
## 準備 ## 準備
以下のようなシェルスクリプトを書いて、__/usr/local/bin/brew-smash__ など任意の実行パスに配置し、`chmod +x /path/to/brew-smash`等で実行権限を与える。 以下のようなシェルスクリプトを書いて、**/usr/local/bin/brew-smash** など任意の実
行パスに配置し、`chmod +x /path/to/brew-smash`等で実行権限を与える。
```bash:/usr/local/bin/brew-smash ```bash:/usr/local/bin/brew-smash
#!/bin/sh #!/bin/sh
@ -62,7 +66,10 @@ $ brew smash send-to-kindle
# シェルスクリプトの解説 # シェルスクリプトの解説
難しいことはやってないが、`brew cask fetch`コマンドはキャッシュ先に__Casks__ディレクトリを生成するので、それを除去している。また、元々カレントディレクトリにCasksという名前のディレクトリがある場合、それを削除してしまわないようにしている。 難しいことはやってないが、`brew cask fetch`コマンドはキャッシュ先に**Casks**ディ
レクトリを生成するので、それを除去している。また、元々カレントディレクトリに
Casks という名前のディレクトリがある場合、それを削除してしまわないようにしている
# 本当にやりたかったこと # 本当にやりたかったこと

View File

@ -1,8 +1,8 @@
version: '2' version: '3'
services: services:
web: web:
build: . build: .
command: jekyll serve --host 0.0.0.0 --port 4000 --baseurl '' --watch --drafts --unpublished --incremental command: jekyll serve --host 0.0.0.0 --port 4000 --baseurl '' --force_polling --drafts --unpublished --incremental
ports: ports:
- 4000:4000 - 4000:4000
volumes: volumes:

1932
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff