共 24 篇文章 |
|
松本行弘为什么开发Ruby?松本行弘为什么开发Ruby?2011-05-24 10:36:42.因为对多种编程语言都很感兴趣,我广泛对比了各种编程语言,哪些特性好,哪些特性没什么用,等等,都一一进行了比较、选择,最终把一些好的特性都吸收到了Ruby编程语言之中。他还撰写了很多拥护Lisp编程语言的文章,在这些文章中他提到,编程语言在这半个世纪以来是向着简... 阅185 转1 评0 公众公开 12-02-21 12:36 |
从C 和C++到Ruby从C 和C++ 到Ruby。这些由C 语言写成的模组能够在Ruby 程式中使用(而且看起来与一般Ruby 模组无异)。与C语言的相似之处与C语言相同,在Ruby中...虽然并没有特殊的const关键字,Ruby利用命名的惯例来强迫变数为常数:第一个字母为大写的变数便为常数。你不能直接存取成员变数,所有对公开的成员变数(在Ruby中称作属性, attrib... 阅826 转3 评0 公众公开 12-02-21 12:16 |
从其他程式语言到Ruby从其他程式语言到Ruby。Ruby 有许多语法和Perl、Python 和Java (以及其他程式语言) 类似,所以如果你已经熟悉这些程式语言,那么学习Ruby 易如反掌。object_id => true irb ( main ): 002 : 0 > " george ". object_id == " george ". object_id => false irb ( main ) : 003 : 0 >o... 阅165 转0 评0 公众公开 12-02-21 12:08 |
Ruby从Perl语言那里借鉴了许多东西(有人形象地说Ruby是Perl的漂亮的妹妹:),和Perl相似,Ruby也擅长于文本处理、系统管理等任务。Python和Ruby都声称自己是面向对象的程序设计语言,但是和Smalltalk不同,你可以在Python和Ruby中编写面向过程的程序代码。你可以到www.ruby-doc.org去下载一个“ruby-doc-bundle”,你们有Ruby的用户手册,参... 阅379 转2 评0 公众公开 12-02-21 10:59 |
Octopress 把關於我加到navibarOctopress 把關於我加到navibar.首先,你必須在octopress的資料夾位置下在console(終端機)下指令。<li><a href="/About">關於我</a></li><ul class="main-navigation"> <li><a href="/">Blog</a></li> <li><a href... 阅223 转0 评0 公众公开 12-02-16 21:51 |
com # blog地址title: My Octopress Blog # blog名称,会出现在左上角subtitle: A blogging framework # title下面的副标题,可以用来放你的喜欢的名人名言,或者简单介绍下自己author: Your Name # 会出现在每篇文章下面的Posted by simple_search: http://google.com/search # 右边搜索框使用的搜索引擎description: # head.html中meta name=... 阅2076 转9 评0 公众公开 12-02-16 17:12 |
Octopress: a blogging framework for hackersOctopress: a blogging framework for hackersInstalling.git octopresscd octopress.先建立 GitHub Repository ,並使用 username.github.com 命名(如果是組織則用 organization.github.com),例如你的 GitHub 帳號是 john2011 就將 Repository 命名為 john2011.github.com,完成後會得到一組 G... 阅187 转1 评0 公众公开 12-02-16 10:01 |
default_asides: [asides/recent_posts.html, asides/twitter.html, asides/delicious.html, asides/pinboard.html]blog_index_asides: [custom/asides/about.html, asides/recent_posts.html, asides/twitter.html, asides/delicious.html, asides/pinboard.html]post_asides: [custom/asides/about.html, asides/recent_posts.html, asides/t... 阅2089 转3 评0 公众公开 12-02-15 22:01 |
$ bash <<(curl -s https://rvm.beginrescueend.com/install/rvm)$ echo "[[ -s $HOME/.rvm/scripts/rvm ]] &&source $HOME/.rvm/scripts/rvm" >>~/.profile $ .~/.profile$ source ~/.profile.$ rvm remove 1.9.2$ export CC=/usr/bin/gcc-4.2$ brew install readline$ brew link readline$ rvm install 1.9.2 ... 阅615 转1 评0 公众公开 12-02-15 15:58 |
===Install Octopress===git clone git://github.com/imathis/octopress.gitcd octopressgem install bundler rake --no-rdoc --no-ribundle installrake install===Start Blogging===rake new_post["title"]rake generaterake watchrake preview===Deploy Github===rake setup_github_pagesgit@github.com:name/Repository.gitrake ... 阅119 转0 评0 公众公开 12-02-15 14:46 |