官术网_书友最值得收藏!

Conventions used

There are a number of text conventions used throughout this book.

CodeInText: Indicates code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles. Here is an example: "Open the newly created service object in the app/services/attachments_service.rb file and move the responsibility for uploading the file to the AttachmentsService#upload method."

A block of code is set as follows:

class AttachmentsService

def upload(message_id, user_id, file_name, data, media_type)
message = Message.find_by!(message_id, user_id: user_id)
file = StorageBucket.files.create(
key: file_name,
body: StringIO.new(Base64.decode64(data), 'rb'),
public: true
)

Any command-line input or output is written as follows:

brew install docker-compose

Bold: Indicates a new term, an important word, or words that you see onscreen. For example, words in menus or dialog boxes appear in the text like this. Here is an example: "Installing and managing a Kubernetes cluster is beyond the scope of this book. Luckily, a project called Minikube allows you to easily run a single-node Kubernetes cluster on your development machine."

Warnings or important notes appear like this.
Tips and tricks appear like this.
主站蜘蛛池模板: 镇赉县| 南汇区| 布尔津县| 武夷山市| 宜章县| 黔江区| 宝兴县| 会同县| 泰安市| 霍州市| 共和县| 云龙县| 龙门县| 临城县| 三台县| 北宁市| 鹿泉市| 石嘴山市| 金门县| 五原县| 那曲县| 安溪县| 揭东县| 无为县| 册亨县| 宁安市| 广宁县| 唐海县| 杭锦旗| 天祝| 黄梅县| 临洮县| 镇宁| 绥中县| 任丘市| 五原县| 巴里| 蓬溪县| 新龙县| 蕉岭县| 五常市|