#Hello Edgerunners, welcome to the Night-City.

Welcome!

Dart Primer 001 : Hello, world!

今天开始一起来学习一下 Dart 语言。 安装 首先第一步来 安装 Dart, 以 macOS 为例: homebrew 先来安装 homebrew, 然后执行: $ brew tap dart-lang/dart $ brew install dart 如果你要安装开发者版本, 使用 --devel 选项: $ brew install dart --devel 如果你已经安装过了, 可以通过这个指令来更新新版本: $ brew upgrade dart IDE 早期官方推荐的 Dart Editor 已经弃用, 现在你可以使用 WebStorm 或 Atom, 当然, 你需要安...

Dart Primer 002 : 数据类型概述

在 Dart 中一切实例都是对象, 它们集成自 Object 且默认均为 null。 数据类型 Dart 中主要的数据类型有: Numbers => 数值 Strings => 字符串 Booleans => 逻辑值 List => 列表 Maps => 映射 声明变量 我们可以使用 var 关键字或者类型名来进行变量声明: var str1 = "Some string"; // or: String str2 = "Another string"; 注释 你可以使用 // 进行注释。 var a = "...

Dart Primer 003 : 函数

首先, 如前面所讲, Dart 中函数也是对象的一种。当一个函数没有指定返回值时, 返回 null。 函数定义 定义一个函数的格式是: 返回值 函数名(参数类型 参数名1, 参数类型 参数名2, ...) { // 函数体 return 返回值 } 其中类型部分都是可选的: 函数名(参数名1, 参数名2, ...) { // 函数体 return 返回值 } 例如: String sayHelloTo(String name) { return 'Hello $name!'; } sayHelloTo(name) { return '...

Dart Primer 004 : 操作符与流程控制

Dart 语言整体上与 C++、Java 类似, 当然也有一些细节需要注意区分。 操作符 取整 操作符 ~/ 应该是很少见的一种写法: int a = 3; int b = 2; print(a ~/ b); // 输出 1 级联 当你要对同一个对象进行一系列操作调用时, 使用 .. 操作符连接: class Person { String name; String country; void setCountry(String country) { this.country = country; } String toString() ...

Dart Primer 005 : 类

Dart 是一门使用类单继承的语言, 所有对象都是类的实例, 且所有类都是 Object 类的子类。 定义类 类的定义使用 class 关键字。 class Point { num x; num y; num z; } 实例化 我们可以通过 new 关键字和构造函数进行类的实例化操作。一个类如果没有显式定义构造函数, 将会有默认的空构造函数。 var point = new Point(); print(point.hasCode); 构造函数 如果只是进行简单的参数传递赋值, 有两种简单的方式: class Point { num x; num y; num ...

谁能想到,在这个平静的夜晚,一位叫李二狗的网友,毫无倦意,兀自觉得整个世界都很可爱,对着谁都笑,收不住喜悦。

Hover Effect 011

VIM commands cheat sheet

全局 :h[elp] 关键字 - 打开关键字帮助 :sav[eas] 文件名 - 另存为 :clo[se] - 关闭当前窗口 :ter[minal] - 打开一个shell窗口 K - 打开光标所在单词的man页面 Tip 在终端中运行 vimtutor 以学习最基础的 Vim 命令。 移动光标 h - 左移光标 j - 下移光标 k - 上移光标 l - 右移光标 gj - 下移光标(折行文本) gk - 上移光标(折行文本) H - 移动到当前页面顶部 M - 移动到当前页面中间 L - 移动到当前页面底部 w - 移动到下个单词开头 ...

Bash echo color cheat sheet

You can make your BASH script more pretty, by colorizing its output. Use ANSI escape sequences to set text properties like foreground and background colors. Colorizing Shell Use the following template for writing colored text: echo -e "\e[COLORmSample Text\e[0m" Option Description -...
Hover Effect 010
Hover Effect 009
Hover Effect 008

What's this?

The Night-City version of Hotodogo inspired by Cyberpunk 2077. Not finished yet.

Pinned Message

The Founder and CEO of Infeca Technology.

Developer, Designer, Blogger.

Big fan of Apple, Love of colour.

Feel free to contact me.

反曲点科技创始人和首席执行官。

开发、设计与写作皆为所长。

热爱苹果、钟情色彩。

随时恭候 垂询

Outer Square Inner Square