Skip to content

Instantly share code, notes, and snippets.

📖
Reading

Hongbo Miao Hongbo-Miao

📖
Reading
Block or report user

Report or block Hongbo-Miao

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View index.js
// 1. Server
// node index.js
//
// 2. Client
// 1) Start
// telnet localhost 3001
//
// 2) Quit
// Click Ctrl + ], then Ctrl + C
View press.one
https://press.one/p/v?s=a98d146efa2ee83dafcbef33da78eadae5b3c861e16fe4bc66344ea4bf4fbfb35c52bdb5b8f9c82f15a42cea9e68cc51a5602324503960bcf3152d824190175601&h=e317ecaf519eedbfbf39deda7515d970b93b3488549aa9d1157bfd43befe3ab2&a=83f94ab86a1749d7682b0087d4b81d73ef0f0103&f=P1&v=3
@Hongbo-Miao
Hongbo-Miao / app-1.spec.ts
Last active Dec 7, 2016 — forked from wkwiatek/app-1.spec.ts
Angular 2 test snippets for Angular final version. Codebase for https://developers.livechatinc.com/blog/category/programming/angular-2/
View app-1.spec.ts
// App
import { Component } from '@angular/core';
@Component({
selector: 'app',
template: '<span>{{ sayHello() }}</span>',
})
export class App {
public name: string = 'John';
View keybase.md

Keybase proof

I hereby claim:

  • I am hongbo-miao on github.
  • I am hongbo_miao (https://keybase.io/hongbo_miao) on keybase.
  • I have a public key ASD2n4Xue3rP7-aQhXDNj9EBv0Xk5a-az4CAMV_wGxbsPgo

To claim this, I am signing this object:

@Hongbo-Miao
Hongbo-Miao / transpose.js
Created Nov 1, 2016 — forked from femto113/transpose.js
one line transpose for 2-dimensional Javascript arrays
View transpose.js
function transpose(a)
{
return a[0].map(function (_, c) { return a.map(function (r) { return r[c]; }); });
}
View linux_fun.md

Linux fun-o-matic

How to have some fun using the terminal.

  1. Install cowsay [0] via : sudo apt-get install cowsay
  2. Install fortune [1] via : sudo apt-get install fortune
  3. Make sure you have Ruby installed via : ruby -v
  4. Install the lolcat [2] via : gem gem install lolcat
  5. Profit!
@Hongbo-Miao
Hongbo-Miao / config.js
Created May 25, 2016 — forked from fxck/config.js
ng2-permission vs. @ngrx/router
View config.js
/**
* PLUNKER VERSION (based on systemjs.config.js in angular.io)
* System configuration for Angular 2 samples
* Adjust as necessary for your application needs.
* Override at the last minute with global.filterSystemConfig (as plunkers do)
*/
(function(global) {
var ngVer = '@2.0.0-rc.1'; // lock in the angular package version; do not let it float to current!
@Hongbo-Miao
Hongbo-Miao / ngrxintro.md
Created May 14, 2016 — forked from btroncone/ngrxintro.md
A Comprehensive Introduction to @ngrx/store - Companion to Egghead.io Series
View ngrxintro.md
@Hongbo-Miao
Hongbo-Miao / meteor.d.ts
Created Apr 17, 2016 — forked from tomitrescak/meteor.d.ts
Typescript definition for Meteor 1.3
View meteor.d.ts
// Type definitions for Meteor 1.3
// Project: http://www.meteor.com/
// Definitions by: Dave Allen <https://github.com/fullflavedave>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
/**
* These are the common (for client and server) modules and interfaces that can't be automatically generated from the Meteor data.js file
*/
interface EJSONable {
You can’t perform that action at this time.