Skip to content

Instantly share code, notes, and snippets.

View WenhaoWu's full-sized avatar

Wenhao WenhaoWu

  • Helsinki, Finland
View GitHub Profile
import 'package:flutter/material.dart';
const Color darkBlue = Color.fromARGB(255, 18, 32, 47);
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override

假设 client-2 是餐厅名

  1. ng g module dynamic-modules/client-2 --routing 创造新的客户模块
  2. ng g component dynamic-modules/client-2/shell 在新的客户模块下创造shell组件
  3. ng g component dynamic-modules/client-2/home 在新的客户模块下创造home组件
  4. 在新创造的客户模块文件夹内找到routing文件(client2-routing.module.ts),把forChild改成forRoot
  5. 在routing文件内define routes,eg.
Install brew
Install node, npm https://www.dyclassroom.com/howto-mac/how-to-install-nodejs-and-npm-on-mac-using-homebrew
Install angular-cli: npm install -g @angular/cli
Install typescript compiler: npm install -g typescript
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
void main() => runApp(new MyApp());
class MyApp extends StatelessWidget {
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return new MaterialApp(
<link href="https://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">
<style>
.red-text {
color: red;
}
h2 {
font-family: Lobster, Monospace;
}
Possible status:
Confirmed : Green
Missed : Red
Now : Blue
Not_Answered : White
import java.util.Scanner;
import nhlstats.NHLStatistics;
public class Main {
public static void main(String[] args) {
Scanner reader = new Scanner(System.in);
System.out.println("Top ten by goals");
NHLStatistics.sortByGoals();
#include <stdio.h>
#include <string.h>
void app (char*, char*, int);
int main(){
char s1[40]="", s2[40]= "";
strcpy(s1, "012345678901234567890123456789012345");
strcpy(s2, "abcdefghijklmn");