当前位置: 首页 > 软件库 > 手机/移动开发 > >

playground-tutorials

NativeScript Playground tutorials content
授权协议 Readme
开发语言 JavaScript TypeScript
所属分类 手机/移动开发
软件类型 开源软件
地区 不详
投 递 者 刘浩思
操作系统 iOS
开源组织
适用人群 未知
 软件概览

NativeScript Playground Tutorials

This repo contains the tutorials that appear in NativeScript Playground.

Tutorial structure

All tutorials live in the root of the repo and conform to the following structure.

name-of-tutorial
├── 1.md
├── 2.md
├── 3.md
├── ...
├── images
│   ├── image-1.png
│   └── ...
├── metadata.json
└── success.md

Each tutorial’s content should be divided into lessons and steps, and each lesson should be placed into a sequentially named Markdown file. For example, a tutorial’s first lesson should live in a file named 1.md, a tutorial’s second lesson should live in a file named 2.md, and so on.

The content of each lesson should follow the following pattern.

## Lesson 1. Name of First Lesson

[an introduction to the lesson]

### Step 1. Name of first step

[the contents of the step]

### Step 2. Name of second step

[the contents of the step]

All steps you wish a user to complete should appear within a step, and should use the following structure.

[text to introduce what the user needs to do in the action section]

<hr data-action="start" />

#### Action

* **a.** The first step the user needs to do.

* **b.** The second step the user needs to do.

* **c.** ...

<hr data-action="end" />

NOTE: Playground gives the user the ability to copy and paste any code blocks you provide in Action sections.

The last thing to note about a tutorial’s content is its success.md file. Playground shows the content you place in this file after the user completes the tutorial. You probably want to either link to another tutorial here, or to recommend additional resources or next steps for the reader.

Tutorial metadata

In addition to content, each tutorial should have a metadata.json file with the following content.

{
  "title": "The Tutorial’s Title",
  "description": "A short description of the tutorial",
  "estimateTime": "15",
  "displayOrder": 1,
  "supportedTemplates": ["play-ng"],
  "targetTemplate": "play-ng",
  "disabled": false
}

Here is some more information on some of the additional keys.

  • estimateTime—The approximate amount of time you believe it will take a user to complete the tutorial in minutes.
  • displayOrder—The order the tutorial should appear in relation to other tutorials. Note that the JS, Angular, and Vue.js tutorials are all in separate buckets, so you want to compare the tutorial you’re working on with others for the same framework.
  • supportedTemplates—An array of templates the tutorial supports. Normally this is identical to the tutorial’s targetTemplate.
  • targetTemplate—The name of the template your tutorial uses as its starting point. Currently these templates are private, so work with the NativeScript team in a pull request to get the appropriate template in place.
  • disabled—Whether the tutorial should be disabled.
  • 单例模式 单例模式限制一个类仅仅有一个实例。每个这个类的引用都指向同一个实例。在 iOS 开发中非常常见这种模式,因为 Apple 广泛使用单例模式。 UML 图如下: “singleton plus”模式也很常用,这个模式提供了一个共享单例,但是也允许其他实例被创建。 When should you use it? 如果一个类有多个实例会导致问题或者不符合逻辑时使用单例模式。 如果在大部分时间共

  • 备忘录模式 备忘录模式允许一个对象可以被保存和恢复。包括三个部分。 Originator: 需要被保存和恢复的对象。 Memento: 代表保存的状态。 ** Caretaker**: 从 originator 请求保存,并且接收一个 memento 作为响应。caretaker 负责保管这些 memento,并在稍后向 originator 提供这些 memento来恢复 originator

  • 构造器模式允许一步一步的创建一个复杂的对象而不是一次创建完成。这个模式包括三个主要类型,UML 图如下: Director接收输入并且和 builder 协调。Director通常是一个 view controller或者是view controller 使用的帮助类。 Product是被创建的复杂对象,可以是一个class 或者 struct,取决于是否想要引用语义。通常是一个 model。 B

  • iOS9-by-Tutorials-学习笔记一:Swift-2-0 本文版权归作者所有,如需转载请联系孟祥月 CSDN博客:http://blog.csdn.net/mengxiangyue 独立博客:http://mengxiangyue.com Apple在前段时间开源了Swift,在iOS开发领域中又制造了一阵骚动,看了一眼Swift的开发路线图,计划在明年的秋天发布Swift 3.0。Ap

  • PlayGround。http://playground.tensorflow.org 。教学目的简单神经网络在线演示、实验图形化平台。可视化神经网络训练过程。在浏览器训练神经网络。界面,数据(DATA)、特征(FEATURES)、神经网络隐藏层(HIDDEN LAYERS)、层中连接线、输出(OUTPUT)。 数据。二维平面,蓝色正值,黄色负值。数据形态,圆形、异或、高斯、螺旋。数据配置,调整噪

  • PlayGround。http://playground.tensorflow.org 。教学目的简单神经网络在线演示、实验图形化平台。可视化神经网络训练过程。在浏览器训练神经网络。界面,数据(DATA)、特征(FEATURES)、神经网络隐藏层(HIDDEN LAYERS)、层中连接线、输出(OUTPUT)。 数据。二维平面,蓝色正值,黄色负值。数据形态,圆形、异或、高斯、螺旋。数据配置,调整噪

  • js online playground & web editor -javascript playgrounds 2019 https://scotch.io/tutorials/7-javascript-playgrounds-to-use-in-2019 CodePen https://codepen.io/ CodeSandbox https://codesandbox.io/ Stack

  • 第一章主要学习了Swift的一些基本内容,变量、常量、数据类型以及控制流。而这一章讲的是相对“高级”一点的基础知识,当然也还是基础知识啦。 可选类型(Optionals) 根据之前的知识,当我们需要声明一个变量的时候,我们可以这么做: var str = "Hello, playground" 这样,我们在声明的时候同时指定了初值,但是,如果在有些情况下,你声明变量的时候是不知道初值的,那么应该怎

  • MVC 设计模式把对象分为三个不同的类型: Models,Views和 Controllers。 UML 图表示如下: MVC 是在 iOS 编程中是非常常见的,因为 Apple 在 UIKit 中大量选用了这种设计模式。 Models保持应用数据,通常为 structs 或者简单的 classes。 Views在屏幕上显示看的见的元素和 controls,通常为UIView的子类。 Contro

  • 介绍策略模式 策略模式定义了一系列可交换的对象,这些对象可以在运行时设置或者切换。这个模式有三部分。 使用策略的对象:在 iOS 开发中这个对象通常是一个UIViewController,但是理论上可以是任何需要交换表现的对象。 策略协议:定义了每个策略必须实现的方法。 策略对象:遵守策略协议的对象。 UML 图如下: When should you use it? 当你有两个或多个需要交换的表现

  • 介绍委托模式 委托模式使一个对象能够使用另一个对象来提供数据或者执行一些任务,这个模式有三个部分,UML 图如下: 一个对象需要委托:也就是委托对象。通常这个对象有一个weak 属性 delegate,防止循环引用。 一个委托协议:这个协议定义了委托应该实现或者可能实现的方法。 一个委托:实现委托方法的对象。 通过依赖一个委托协议代替一个混合对象使得实现更加有弹性,只要一个对象实现了协议就可以作为

 相关资料
  • Note: The primary maintainer @acao is on hiatus until December 2020 SECURITY WARNING: both graphql-playground-html and all four (4) of it's middleware dependents until graphql-playground-html@1.6.22 w

  • NativeScript Playground The NativeScript Playground is the best way to learn NativeScript and experiment with it online – no setup required. You can write code, drag-and-drop UI componenets and deploy

  • docker-playground Repository about learning tricks around docker containers running Windows Server Core 2019 images how to install and configure language pack on windows server core 2019 images how to

  • Weex Playground Weex 示例App,可扫码预览Weex代码构建后的页面。扫二维码下载该APPiOS版下载Android版下载

  • Hyperledger Composer Playground为业务网络的配置、部署和测试提供了一个用户界面。高级Playground功能允许用户管理业务网络的安全性,邀请参与者到业务网络并连接到多个区块链业务网络。 如果你对Playground不熟悉,建议你遵循 Playground教程,该教程将指导你完成创建、部署和测试新区块链业务网络的过程,然后再开始与业务网络卡片交互。 请注意:如果两个或

  • Playground 教程 在这个手把手教程中,我们将通过建立一个业务网络,定义我们的资产、参与者和交易,以及通过创建一些参与者和资产来测试我们的网络,并提交交易来将资产的所有权从一个更改为另一个。 第一步:打开Hyperledger Composer Playground 打开Composer Playground。你应该看到“ 我的业务网络”屏幕。“ 我的业务网络”页面显示了你可以连接到的业务