conf.py に以下の設定を追加する
html_theme_options = { 'nosidebar': True, }ドキュメントの先頭に以下の内容を書く
This file contains hidden or 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
| # add vagrant box with using veewee | |
| $ cd ~/vagrant | |
| $ vagrant basebox define centos_48_i386 CentOS-4.8-i386 | |
| $ vi definitions/centos_48_i386/ks.cfg | |
| $ vi definitions/centos_48_i386/definition.rb | |
| $ cp /path/to/CentOS-4.8-i386-bin-DVD.iso iso/ | |
| $ vagrant basebox build centos_48_i386 | |
| $ vagrant basebox export centos_48_i386 | |
| $ vagrant box add centos_48_i386 centos_48_i386.box |
This file contains hidden or 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
| class a0: | |
| class b0: | |
| class c0: | |
| text = "1-1" | |
| children = [0, 1, 2] | |
| class c1: | |
| text = "1-2" | |
| children = [3, 4] | |
| text = "1" | |
| children = [c0, c1] |
This file contains hidden or 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
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| Vagrant.configure("2") do |config| | |
| config.vm.box = "dummy" | |
| config.vm.provider :aws do |aws, override| | |
| aws.access_key_id = ENV['AWS_ACCESS_KEY_ID'] | |
| aws.secret_access_key = ENV['AWS_SECRET_ACCESS_KEY'] |
This file contains hidden or 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
| ; て ゙ -> で | |
| (while (re-search-forward "\\(.\\)゙" nil t) | |
| (replace-match (char-to-string (1+ (string-to-char (match-string 1)))))) |
This file contains hidden or 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
| from __future__ import print_function | |
| import operator | |
| __all__ = [ | |
| "Monad", | |
| "MonadPlus", | |
| "Maybe", | |
| "Just", | |
| "Nothing", |
こんなコードを書いて
#include "Cello.h" var hello = $(String, "Hello");
マクロを展開すると、こうなる (一部のみ)
This file contains hidden or 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
| #include "Cello.h" | |
| int main(int argc, char** argv) { | |
| lambda(add_print, args) { | |
| int fst = as_long(cast(at(args, 0), Int)); | |
| int snd = as_long(cast(at(args, 1), Int)); | |
| println("%i + %i = %i", $(Int, fst), $(Int, snd), $(Int, fst + snd)); | |
| return None; | |
| } |
This file contains hidden or 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
| #include "Cello.h" | |
| int main(int argc, char** argv) { | |
| lambda(add_print, args) { | |
| int fst = as_long(cast(at(args, 0), Int)); | |
| int snd = as_long(cast(at(args, 1), Int)); | |
| println("%i + %i = %i", $(Int, fst), $(Int, snd), $(Int, fst + snd)); | |
| return None; | |
| } |
This file contains hidden or 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
| #include "Cello.h" | |
| try { | |
| do_some_work(); | |
| } catch (e in TypeError, ClassError) { | |
| if (e is TypeError) { print("Got TypeError!\n"); } | |
| if (e is ClassError) { print("Got ClassError!\n"); } | |
| } |