自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(13)
  • 资源 (1)
  • 收藏
  • 关注

原创 如何制作自己的Ruby gem

如何生成自己的gem,以及如何组织自己的gem结构

2014-12-30 10:05:58 5018

转载 如何生成ssh keys? Generating SSH keys

一般来讲,要git托管工程需要ssh key,所以如何生成呢?Generating SSH keysmacwindowslinuxallForget the terminal. Download our native app instead.SSH keys are a way to identify trusted comp

2014-12-29 19:05:18 8652

原创 mou——编写markdown文件神器

git中的readme文档一般是md文档,编写工具 mou(mac版),神器md语法学习 http://wowubuntu.com/markdown/其实mou下载后也有demo文档学习,直接打开mod软件就会显示demo文档,下载链接 mou下载

2014-12-26 11:21:14 1610

原创 使用Rdoc生成ruby说明文档

代码class Demo # - 测试 # [cat] a kind of animal # [+dog+] also a pet # = leval one # - == leval two # and so on # ---- # how about this # - http:www.baidu.com def foo(name) @nam

2014-12-24 12:19:22 2053

转载 The Ruby Style Guide

PreludeRole models are important. -- Officer Alex J. Murphy / RoboCopOne thing has always bothered me as a Ruby developer - Python developers have agreat programming style reference(PEP-8) a

2014-12-19 17:05:00 1503

转载 Python中的urllib2库的使用

今天研究了下urllib2这个库的使用,才发现以前有很多不明白的东西,现在写下来也做个记录1. 最基础的应用   import urllib2 url = r'http://www.baidu.com'html = urllib2.urlopen(url).read() print html客户端与服务器端通过request与response来沟通,客户端先向服务端发送reque

2014-12-16 11:07:28 722

原创 The Python Tutorial 9——Classes

Python类概况:多继承、override、多态9.1. A Word About Names and Objects9.2. Python Scopes and Namespaces三种namespace,不同namespace间同名member互不影响A namespace is a mapping from names to objects. Most namesp

2014-12-10 15:24:40 628

转载 Ruby 数据类型

Ruby 数据类型本章节我们将为大家介绍 Ruby 的基本数据类型。Ruby支持的数据类型包括基本的Number、String、Ranges、Symbols,以及true、false和nil这几个特殊值,同时还有两种重要的数据结构——Array和Hash。 数值类型(Number)1、整型(Integer)整型分两种,如果在31位以内(四字节),那为

2014-12-09 09:39:48 605

转载 Ruby缺省参数、可变参数

#Ruby语言中,定义方法时,不指定参数类型 ,而且Ruby又有缺省参数和可变参数,故Ruby语言,没有方法的重载  #缺省参数def sum( a, b=5 ) a+bendputs "default parameter:"puts sum(3,6) #9puts sum(3) #8#可变参数def sum(*num) result=0 num.each{|item

2014-12-08 19:20:37 5189

原创 The Python Tutorial 8——Errors and Exceptions

两类错误:语法或者是逻辑  syntax errors and exceptions.8.1. Syntax Errors>>> while True print 'Hello world' File "", line 1, in ? while True print 'Hello world' ^SyntaxError: inv

2014-12-05 16:43:47 664

原创 The Python Tutorial 7——Input and Output

7.1. Fancier Output Formatting两种方法,自己设置或者使用str.format()还有对齐函数 str.rjust() method of string objects, which right-justifies a string in a field of a given width by paddingit with spaces on the lef

2014-12-04 20:18:58 596

转载 Mac OS X 10.9.4 系统用HomeBrew安装管理ruby

使用brew安装ruby很方便,但缺点也是很明显的,不能实时进行版本的切换所以还是用 brew + rvm 或brew + rbenv比较好,以后文章会介绍前言:我们不去删除系统自带的ruby,gem,rails,而是自己重新安装一套新的ruby,gem,rails ,通过更改PATH环境变量的方式来更新系统,这样做好处比较安全的,不会破坏原有的苹果系统,又不耽误我们用最新的r

2014-12-04 11:13:01 2971

原创 The Python Tutorial 6——Modules

A module is a file containing Python definitions and statements. The file name is the module name with the suffix.py appended. Within a module, the module’s name (as a string) is available as the va

2014-12-02 15:37:18 643

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除