
ruby
andych008
这个作者很懒,什么都没留下…
展开
-
Ruby源文件指引
from:http://blog.youkuaiyun.com/lijun84/article/details/6072339Ruby的一些源文件的用途: Ruby语言核心:class.c class相关API error.c 错误相关API eval.c eval 相关 gc.c转载 2012-02-09 15:56:26 · 663 阅读 · 0 评论 -
python&Ruby
tornado一句话:Tornado是非阻塞式Web 服务器框架OverviewFriendFeed使用了一款使用 Python 编写的,相对简单的 非阻塞式 Web 服务器。其应用程序使用的 Web 框架看起来有些像 web.py 或者 Google 的 webapp, 不过为了能有效利用非阻塞式服务器环境,这个 Web 框架还包含了一些相关的有用工具 和优化。T原创 2012-04-24 10:21:48 · 522 阅读 · 0 评论 -
upload file by Sinatra
from:https://gist.github.com/1132028有修改require 'rubygems'require 'sinatra'require 'fileutils'# upload with:# curl -v -F "data=@./filename" http://localhost:4567/user/filename# or just转载 2012-04-17 18:17:26 · 694 阅读 · 0 评论 -
Ruby 实现base64加密和解密
base64加密和解密#!/usr/bin/env ruby -I ../lib -I lib#enbase64.rbrequire "base64"File.open("logo(1).png", "rb") do|f| data=f.read File.open('a.base64', 'wb') do|f| f.write(Base64.encode64(data))原创 2012-06-25 18:10:31 · 4937 阅读 · 0 评论 -
ruby res
http://ftp.ruby-lang.org/pub/ruby/1.0/ ruby 1.0源码介绍一个免费RAILS空间http://heroku.com/ 需要邀请, 可以在页面上输入信箱, 一天左右后收到邀请信. 它有一个在线IDE支持FIRFOX. 还没仔细看, 如果大家进去了, 请多发贴一齐研究一下.Ec原创 2012-02-08 11:11:15 · 451 阅读 · 0 评论 -
practice from RubyMonk
[]You can create an array with a set of values by simply placing them inside [] like this: [1, 2, 3]. Try this out by creating an array with the numbers 1 through 5, inclusive.[1,2,3,4,5]Arrays i原创 2012-02-13 09:27:09 · 569 阅读 · 0 评论 -
RVM中文使用指南
RVM简介Ruby Version Manager,Ruby版本管理器,包括Ruby的版本管理和Gem库管理(gemset)。目前支持Ruby的大多数版本,有 1.8.7,1.9.1,1.9.2和Ruby Enterprise Editon,通过RVM可以很方便的在多个Ruby版本中快速切换。RVM同时 也支持JRuby。设 想当前工作在Ruby 1.9.2 + Rails 3转载 2012-09-15 22:59:12 · 839 阅读 · 0 评论 -
比较几种编程语言
from:http://www.cnblogs.com/liuyunfeng/archive/2012/07/31/2616537.html数据类型这里数据类型指的是内部数据类型,不考虑语言内部的自动转换。 C++javajavascriptphppythonruby转载 2012-10-10 11:42:24 · 479 阅读 · 0 评论 -
YAML 简介
YAML Ain't Markup Language和GNU一样,YAML是一个递归着说“不”的名字。不同的是,GNU对UNIX说不,YAML说不的对象是XML。YAML不是XML。 为什么不是XML呢?因为:YAML的可读性好。YAML和脚本语言的交互性好。YAML使用实现语言的数据类型。YAML有一个一致的信息模型。YAML易于实现。转载 2012-10-19 15:38:07 · 1088 阅读 · 0 评论 -
Sinatra
http://www.sinatrarb.com/intro-zh.htmlaSinatra是一个基于Ruby语言,以最小精力为代价快速创建web应用为目的的DSL( 领域专属语言):# encoding: utf-8# myapp.rbrequire 'sinatra'get '/' do 'Hello world_我是中文!'end转载 2012-03-29 18:06:30 · 506 阅读 · 0 评论 -
# encoding: utf-8
aruby1.9+rails3在helper方法中写中文时,出现invalid multibyte char (US-ASCII)异常了,查了下,原来ruby1.9是用ASCII编码来读源码的,奇怪。解决办法是在文件的第一行加上# encoding: utf-8aaa转载 2012-03-30 09:24:19 · 3383 阅读 · 0 评论 -
gem install thin
aFirst, install the DevKit from the RubyInstaller for Windows website (which it appears you have already done).Then install eventmachine separately from the git repository as Roger shows.转载 2012-03-29 17:11:50 · 1330 阅读 · 0 评论 -
Ruby Hacking Guide中文版第一部分
from:http://dreamhead.iteye.com/blog/126817Ruby Hacking Guide是一本探讨C Ruby实现的书,我的XRuby之路就是从这本书起步的。项目主页http://code.google.com/p/rhgchs/本次发布http://rhgchs.googlecode.com/files/rhgchs-2007转载 2012-02-09 16:08:25 · 650 阅读 · 0 评论 -
学习Ruby
1、Learn Ruby The Hard Wayhttp://ruby.learncodethehardway.org/book/Welcome to Learn Ruby the hard way. This is a translation of "Learn Python The Hard Way" to teach total beginners Ruby. It转载 2012-02-09 16:27:28 · 375 阅读 · 0 评论 -
Ruby开发者应该熟悉的10个工具
1. GitGit 是进入Ruby 这个生态圈首先最应该学会的工具。几乎所有以Ruby 开发出来的套件都放在Github上。也就是不管你要下载或修改协作都需要透过Git。2. RVMRuby 有很多种 implementation,比较多人在使用的有◆ 标準的 MRI Ruby 1.8.7◆ 标準的 MRI Ruby 1.9.2◆ REE ( Rub转载 2012-02-09 16:28:19 · 515 阅读 · 0 评论 -
语言设计的艺术——读《松本行弘的程序世界》
from:http://www.infoq.com/cn/articles/ck-art-of-language-design利用QCon杭州2011大会的间歇期,读完了《松本行弘的程序世界》的最后几章,合上书还觉得意犹未尽。众所周知,松本行弘是Ruby的发明者,这本书是他的技术文集,主要章节在过去几年先后发表在日本的技术杂志上。坦白的说,我对Ruby语言本身没有深入的研究和实践,所以转载 2012-02-09 18:51:31 · 719 阅读 · 0 评论 -
note for rails guide
http://guides.ruby.tw/rails3/getting_started.html$rails new blog #创建一个rails项目$ cd blog #$ bundle install #Rails 使用 Bundler gem 來管理所有你應用程式會依存的 gems 到 vendor 目錄。到目前為止,我們根據預設不需要特殊的 g原创 2012-02-12 17:28:18 · 488 阅读 · 0 评论 -
Ruby Tips1
puts Iconv.iconv("UTF-8", doc.to_s.encoding.to_s, doc)原创 2012-02-23 16:33:46 · 307 阅读 · 0 评论 -
Ruby标准库一览
文本 base64.rb 处理Base64编码的模块 csv.rb CSV(Comma Separated Values)库 ruby 1.8 特性 digest.so 消息摘要库 请参考[ruby-src:ext/digest/digest.txt.ja] digest/md5.so digest/rmd160.so dige转载 2012-02-17 16:26:58 · 1735 阅读 · 0 评论 -
Symbian Ruby
相关资源:Symbian RubySymbian OS platform-specific Ruby extensions and utilities.http://rubyforge.org/projects/symbian/ svn checkout http://symbian.rubyforge.org原创 2012-02-16 13:02:30 · 542 阅读 · 0 评论 -
Mac OS X 中安装 brew
先安装Git,打开一个shellcd /usr/localsudo mkdir homebrewcurl -L https://github.com/mxcl/homebrew/tarball/master | sudo tar xz --strip1 -C homebrewcd homebrew/bin./brew -vfile brewcat bre转载 2013-04-14 02:29:51 · 2746 阅读 · 0 评论