HUGOとは一体何か? HUGOは、静的なhtmlを生成する事ができる静的ページジェネレータです。HUGOの場合、ローカル環境ではHUGOの動的機能を使って動的にサイトを開発し、成果物の出力時に動的要素を全て静的要素(html,css,js,img等)として出力します。 生成された成果物にはサーバサイドの処理を含まないため、サイトの表示速度は高速になり、サーバサイドの処理が無い分セキュリティリスクが減ります。 ちなみに今見ているこのサイトはHUGOで作っています。テンプレートはフルスクラッチで記述しています。 初心者にも使える? もしhtmlやjavascriptを書いた事が無い、コマンドラインでコマンドを実行した経験が無い、という状態であれば、HUGOは非常に敷居が高いものになると思います。静的ページジェネレータは最低限初歩的なプログラムが理解できている中級者向けであると私は考えています
<!-- article-list --> <section class="article-list"> <h2 class="article-list__head" itemprop="name">記事一覧</h2> <ol class="article-list__list"> {{ range .Data.Pages.ByDate.Reverse }} {{ .Render "li" }} {{ end }} </ol> </section> <!-- /article-list --> <li class="article-list__item"> <!-- article-sneak --> <article class="article-sneak {{ if .Params.image }}article-sneak--thumb{{ end }}"> <div class=
HUGOについて サイトジェネレーターのHUGOを使ってみたので、紹介します。一応、テンプレートをダウンロードしてきて、設定をビルドし、HTMLをサーバーにアップロード。ブラウザから WAN 経由でアクセスするところまでをやります。 HUGOの特徴としては、一つに、とてもシンプルだということ。具体的には、各々の動作が独立しており、サイトジェネレーターとしての本来的な役割を果たします。これは、golangで書かれたツールの特徴的なものだという印象を受けますね。 golang で書かれたツールというのは、基本的に、必要最小限のシンプルなことを実行するだけ、ということが多く、余計な機能など付いていないという印象を私は持っています。 今回紹介する HUGO も基本的には同じで、例えば、同系統のツールであるOctopressやMiddlemanは、デプロイから何からやるまでのコマンドが用意されていま
ニューロンの個数を2パタン。 データへの依存度を3パタン用意すると、2×3=6パタンも試さなければなりません。 大変に面倒ですが、このハイパーパラメタを雑に設定すると予測精度が落ちてしまうこともよくあります。 めんどくさいですが、なるべくやったほうがいいです。 4.モデルを使って予測する これは簡単。単に予測をするだけです。 パッケージを使っていれば、たいていは予測用の関数が用意されています。 5.予測の評価をする 最後は評価です。 評価をすることによって、 ・どの手法の ・どのパッケージの ・どのパラメタを 採用すべきかを判断します。 で、一番予測精度がいいやつを使って予測することになります。 たくさんの手法、たくさんのパッケージ、たくさんのパラメタの組み合わせをしらみつぶしに評価する。 普通にこれをやろうと思うと、気が遠くなってしまいますね。 そこで登場するのがパッケージ「caret」
ブラウザでスライドを表示し、HTMLベースで作成できるプレゼンテーション用のスライドを簡単な操作方法と合わせて紹介します。
勉強会で発表資料を作る際などに プレゼン用スライドを作る方法は たくさんあります。 この前、ふとしたきっかけで Reveal.jsを使ってみたところ とても好評だったので、類似のライブラリを 探してみました。 デフォルトのテンプレートから綺麗なものが 多く、すぐに勉強会の発表資料などに 作れるものがたくさんありました。 個人的には ・Impress.js ・Reveal.js ・Jmpress.js 合わせて読みたい 【Tig全まとめ】Gitを自由自在に操るための必殺ツール 【おすすめ】MacのFinderをカスタマイズする魔法のコマンドたち たった一行でブラウザをメモ帳に変える不思議なコード ライブラリ一覧 1. Deck.js Demo http://imakewebthings.com/deck.js/#intro GitHub https://github.com/imakeweb
Overview Code snippets are text macros that are used for quickly inserting common snippets of code. For example, the fun snippet inserts an R function definition: If you select the snippet from the completion list it will be inserted along with several text placeholders which you can fill in by typing and then pressing tab to advance to the next placeholder: Other useful snippets include: lib, req
You can now customize keyboard shortcuts in the RStudio IDE -- you can bind keys to execute RStudio application commands, editor commands, or (using RStudio Addins) even user-defined R functions. Access the keyboard shortcuts by clicking Tools -> Modify Keyboard Shortcuts...: You will then see the set of available editor commands (commands that affect the current document's contents, or the curren
Microsoft Learn. Spark possibility. Build skills that open doors. See all you can do with documentation, hands-on training, and certifications to help you get the most from Microsoft products. Learn by doing Gain the skills you can apply to everyday situations through hands-on training personalized to your needs, at your own pace or with our global network of learning partners. Take training Find
Welcome the R graph gallery, a collection of charts made with the R programming language. Hundreds of charts are displayed in several sections, always with their reproducible code available. The gallery makes a focus on the tidyverse and ggplot2. Feel free to suggest a chart or report a bug; any feedback is highly welcome! Stay in touch with the gallery by following it on Twitter. Oh and if you wa
polymode 20170307.322(in MELPA) Versatile multiple modes with extensive literate programming support 1つのバッファに複数の言語のテキストを含ませることがあります。 たとえば、org-modeやmarkdown-modeでのコードブロック、 PHP/ERBなどのWeb関係のテキストなどです。 polymode.el はバッファ内の『言語』を瞬時に判別し、 カーソル位置によって適切なメジャーモードに切り替えます。 org-modeでC-c 'を使わずにモードを切り替えてくれるのは便利です。 以下のモードに対応していて、現在はWeb関係には対応していません。 Webのテンプレートを編集するにはweb-mode.el(レビュー) があります。 org-mode markdown-mode R言語
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く