Skip to content

Instantly share code, notes, and snippets.

$ python []
Python 2.7.8 (default, Aug 24 2014, 21:25:57)
[GCC 4.2.1 Compatible Apple LLVM 5.1 (clang-503.0.40)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import calendar
>>> print calendar.month(2015, 3)
March 2015
Mo Tu We Th Fr Sa Su
1
$ gem install anemone [40/62]
Fetching: mini_portile-0.6.2.gem (100%)
Successfully installed mini_portile-0.6.2
Fetching: nokogiri-1.6.6.2.gem (100%)
Building native extensions. This could take a while...
ERROR: Error installing anemone:
ERROR: Failed to build gem native extension.
/usr/local/Cellar/ruby/2.1.2_2/bin/ruby extconf.rb
checking if the C compiler accepts ... yes
[local :~]$ gem install review
Fetching: review-1.5.0.gem (100%)
Successfully installed review-1.5.0
1 gem installed
Installing ri documentation for review-1.5.0...
Installing RDoc documentation for review-1.5.0...
[local :~]$ gem install md2review
Fetching: redcarpet-3.2.3.gem (100%)
Building native extensions. This could take a while...
---
layout: default
---
{% assign index = true %}
{% for post in paginator.posts %}
{% assign content = post.content %}
<article class="post">{% include article.html %}</article>
{% endfor %}
<nav id="pagenavi">
Hyphenator.js says:
An Error occurred:
QuotaExceededError: DOM Exception 22
@kamatari
kamatari / online_machine_learning.markdown
Last active September 13, 2018 00:02
オンライン機械学習を読みながら書いたメモ

【第一章】導入の話

  • オンライン機械学習の特徴
  • 良い点
  • 学習データを捨てられる、学習速度が速い、学習結果がいつでも使える、実装が簡単、性能解析しやすい
  • 悪い点
  • 学習するデータの順番に結果が大きく依存する  + ノイズに弱い  + しかし、この本を読めばこれらの解決方法が書いてある…!らしい。

#【第二章】数学の話

@kamatari
kamatari / vagrant_ipynb.markdown
Last active August 29, 2015 14:22
ipython notebook 環境構築のメモ
@kamatari
kamatari / anaconda_python_setting.txt
Created June 1, 2015 02:54
anaconda_python_setting
vagrant@vagrant-ubuntu-trusty-64:~$ conda update conda
Fetching package metadata: ....
Solving package specifications: .
Package plan for installation in environment /home/vagrant/anaconda:
The following packages will be downloaded:
package | build
---------------------------|-----------------
conda-env-2.1.4 | py27_0 15 KB
@kamatari
kamatari / jupyter_box.markdown
Last active September 5, 2015 01:05
anaconda入りjupyter環境 vagrant box
HEADS UP! Haml 4.0 has many improvements, but also has changes that may break
your application:
* Support for Ruby 1.8.6 dropped
* Support for Rails 2 dropped
* Sass filter now always outputs <style> tags
* Data attributes are now hyphenated, not underscored
* html2haml utility moved to the html2haml gem
* Textile and Maruku filters moved to the haml-contrib gem