JDK(Java Development Kit)是进行 Java 语言开发必不可少的开发包,而 android 开发是基于 Java 语言的,所以 JDK 必不可少
访问 http://www.oracle.com/index.html (oracel 官网)
鼠标移到 Downloads 在出现的浮动框中点击最左侧的 Java for Developers
0x4DE63c99B0DDDe96BdD97aeDF8cc2B7d292f6373 |
JDK(Java Development Kit)是进行 Java 语言开发必不可少的开发包,而 android 开发是基于 Java 语言的,所以 JDK 必不可少
访问 http://www.oracle.com/index.html (oracel 官网)
鼠标移到 Downloads 在出现的浮动框中点击最左侧的 Java for Developers
$0 shell的命令本身(包括完整路径) | |
$1到$9 数字表示shell 的第几个参数 | |
$# 传递到脚本的参数个数 | |
$* 以一个单字符串显示所有向脚本传递的参数 | |
$$ 脚本运行的ID号 | |
$! 后台运行的最后一个进程的ID号 | |
$@ 与$*相同。 | |
$- 显示shell使用的当前选项。 | |
$? 显示最后命令的执行状况。0表示没有错误。 |
Ruby 的一些基础语法和基础概念 | |
http://www.slideshare.net/ihower/ruby-2484283 | |
http://www.slideshare.net/ihower/ruby-2028958 | |
http://www.slideshare.net/ihower/ruby-1304833 | |
Ruby 的一些特有的特性 | |
http://www.slideshare.net/ihower/designing-ruby-apis | |
Rails 最佳实践,有些内容有些过时,毕竟是基于 Rails 2.XX,一些 API 在 Rails 3 已经改变 |
http://www.xiami.com/song/1769497449 | |
http://www.xiami.com/widget/json-single/uid/0/sid/1769497449 | |
{"location":"5h3%.i%5F%21%643%.tA2x.2615F%594%5mt%FinF96E%2E495Epp2fae2%985519_E53%F1mt323%E277121"} | |
http://f1.xiami.net/23569/169308/01%201769497449_1302051.mp3 |
class << Marshal | |
def load_with_rails_classloader(*args) | |
begin | |
load_without_rails_classloader(*args) | |
rescue ArgumentError, NameError => e | |
if e.message =~ %r(undefined class/module) | |
const = e.message.split(' ').last | |
const.constantize | |
retry | |
else |
URL query to Hash: | |
Ruby代码 | |
irb(main):012:0> url = "http://javaeye.com?a=1&b=2&c=3#123" | |
=> "http://javaeye.com?a=1&b=2&c=3#123" | |
irb(main):013:0> url = URI.parse(url) | |
=> #<URI::HTTP:0x4cca868 URL:http://javaeye.com?a=1&b=2&c=3#123> | |
irb(main):014:0> url.query | |
=> "a=1&b=2&c=3" | |
irb(main):018:0> Hash[* url.query.split(/[&=]/)] | |
=> {"a"=>"1", "b"=>"2", "c"=>"3"} |
doUpload: function(binary) { | |
if (typeof(binary) == 'undefined') binary = false; | |
// check for dynamic settings | |
this.useDynamicSettings = false; | |
this.upload.cancel = false; | |
if (this.getUserPref('dynamicSettings', 'bool')) { | |
window.openDialog('chrome://photobucket/content/uploadSettings.xul', "pbLogin", "modal, dialog, chrome, centerscreen", Photobucket_Uploader); | |
if (this.upload.cancel) { | |
return false; |