All Categories

  • Angular2 HelloWorld

  • Angular2 Route Example with 2.0.0.-rc.1 version

    7/1/2016 -
    @angular/router is 2.0.0.-rc.1 Looks like angular2 team is changing how to setup router very often, so following example might be out of date in the future, so following are files from my package.json. "dependencies": { "@angular/common": "2.0.0-rc.1", "@angular/compiler": "2.0.0-rc.1", "@angular/core": "2.0.0-rc.1", "@angular/platform-browser": "2.0.0-rc.1", "@angular/platform-browser-dynamic": "2.0.0-rc.1", "@angular/router": "2.0.0-rc.1", "es6-shim": "^0.35.0", "reflect-metadata": "0.1.3", "rxjs": "5.0.0-beta.6", "systemjs": "0.19.26", "zone.js": "^0.6.12" }, Now, I'm use angular-cli to generate my angular2 project, you can type following command to generate route for you. ng generate route hero Following code are my working version.
  • Generate PokemonGo RPC Protos to Csharp

    7/14/2016 -
    How to generate Pokemon Proto API to Csharp Type Pokemon API use Google Protocol Buffers to generate API contract to C#. This blog will demo how to do that. Following demo we'll use Protobuf's 3.0.0-beta-2 for csharp., you can download from following link, Protobuf release. Also, we'll need Python, because POGOProtos need Python to run command to generate Protos to Csharp. Protobuf Release Download google's protobuf for your enviroment. You can click following link to download or go to above link to check the latest version.
    PokemonGo APIProtosPythonC#
  • Get Start with Visual Studio Code

    7/1/2016 -
    Ctrl Shift `Use Command Prompt in Visual Studio Code You could righ click the folder, then click the open in Command Prompt, or try following command in Visual Studio Code.
    Visual Studio Code