此文目標讀者需先自行學會
- 開 Github 帳號
- 會 fork 程式 repository
- 會在自己的電腦使用命令列
git
- 會 clone 自己的 repository
/* | |
* Copyright 2013 The Android Open Source Project | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
import 'dart:html'; | |
import 'package:angular2/core.dart'; | |
import 'package:angular2/router.dart'; | |
@Component( | |
selector: 'my-app', | |
styleUrls: const ['app_component.css'], | |
template: ''' | |
<h1>My First Angular 2 App</h1> |
import 'dart:async'; | |
void main() { | |
_test(); | |
} | |
_test() async { | |
print("start"); | |
await sleep1(); | |
await sleep2(); |
// | |
// Generated by the J2ObjC translator. DO NOT EDIT! | |
// source: src/main/java/masterdetail/service/FlatFileDetailService.java | |
// | |
#ifndef _FlatFileDetailService_H_ | |
#define _FlatFileDetailService_H_ | |
#include "DetailService.h" | |
#include "J2ObjC_header.h" |
/* | |
* Copyright 2014-2015 Kirk C. Vogen | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
package io.vertx.example; | |
import io.vertx.core.AbstractVerticle; | |
import io.vertx.ext.jdbc.JDBCClient; | |
import io.vertx.ext.web.Router; | |
import io.vertx.ext.web.handler.StaticHandler; | |
public class HelloWorldVerticle extends AbstractVerticle { | |
@Override |
package com.zanclus.socialshell; | |
import com.zanclus.socialshell.utils.AbstractLoggingVerticle; | |
import static io.vertx.ext.auth.shiro.LDAPAuthRealmConstants.*; | |
import io.vertx.core.AsyncResult; | |
import io.vertx.core.Future; | |
import io.vertx.core.Verticle; | |
import io.vertx.core.http.HttpServerOptions; | |
import io.vertx.core.json.JsonObject; |
<?xml version="1.0" encoding="utf-8"?> | |
<resources> | |
<!-- google's material design colours from | |
http://www.google.com/design/spec/style/color.html#color-ui-color-palette --> | |
<!--reds--> | |
<color name="md_red_50">#FFEBEE</color> | |
<color name="md_red_100">#FFCDD2</color> | |
<color name="md_red_200">#EF9A9A</color> |
// in JavaScript | |
com = { acme: {} }; | |
com.acme.Foo = function() { | |
this.x = 40; | |
this.y = 2; | |
}; | |
com.acme.Foo.prototype.sum = function() { return this.x + this.y; }; | |
// in Java | |
package com.acme; |