This file contains 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 Student | |
attr_reader :id, :name, :age | |
def initialize(id, name, age) | |
@id = id | |
@name = name | |
@age = age | |
end | |
def id |
This file contains 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
<h1 id="三亚攻略">三亚攻略</h1> | |
<h2 id="衣">衣</h2> | |
<pre><code>1. 拍照衣服搞定 | |
2. 自由搭配 搞定 | |
</code></pre> | |
<h2 id="食">食</h2> |
This file contains 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
--- | |
tags: 三亚攻略 | |
--- | |
三亚攻略 | |
=== | |
This file contains 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
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"> | |
<title>Test</title> | |
<link type="text/css" rel="stylesheet" href="asserts/jquery-ui-1.10.4.custom.css"> | |
<!--<link type="text/css" rel="stylesheet" href="asserts/jquery.fancybox.css">--> | |
<link type="text/css" rel="stylesheet" href="asserts/bootstrap.css"> | |
<link type="text/css" rel="stylesheet" href="asserts/photoswipe.css"> |
This file contains 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
<h2 id="schedule">Schedule:</h2> | |
<blockquote> | |
<p>22:20 首都机场T3 00:55 江北机场T2 2014-05-31 SC1156 <br> | |
20:30江北机场T2A 23:05首都机场T2 2014-06-02 中国南方航空公司CZ8130</p> | |
</blockquote> | |
<p>住2晚;</p> | |
<blockquote> |
This file contains 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
<h1 id="make-your-own-gem">make your own gem</h1> | |
<p><a href="http://guides.rubygems.org/make-your-own-gem/">从头到尾学习如果将自己的代码打包成gem</a></p> | |
<ul> | |
<li>Introduction</li> | |
<li>Your first gem</li> | |
<li>Requiring more files</li> | |
<li>Adding an executable</li> | |
<li>Writing tests</li> |
This file contains 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
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,font,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td { | |
margin:0; | |
padding:0; | |
border:0; | |
outline:0; | |
font-size:100%; | |
vertical-align:baseline; | |
background:transparent | |
} | |
h1 a,h2 a,h3 a,h4 a,h5 a { |
This file contains 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
# the following snippt is script registered into command | |
#! ruby | |
# | |
# This file was generated by RubyGems. | |
# | |
# The application 'rspec-core' is installed as part of a gem, and | |
# this file is here to facilitate running it. | |
# |
This file contains 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
#!/usr/bin/env ruby_executable_hooks 这个有点意思哦! | |
# | |
# This file was generated by RubyGems. | |
# | |
# The application 'rspec-core' is installed as part of a gem, and | |
# this file is here to facilitate running it. | |
# | |
require 'rubygems' |
This file contains 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
def find(*arguments) | |
scope = arguments.slice!(0) | |
options = arguments.slice!(0) || {} | |
case scope | |
when :all then find_every(options) | |
when :first then find_every(options).first | |
when :last then find_every(options).last | |
when :one then find_one(options) | |
else find_single(scope, options) |
OlderNewer