This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { createServer, Server, Socket } from 'net'; | |
const port: number = 9903; | |
// --------------------------------------------- | |
// server | |
// --------------------------------------------- | |
const server: Server = createServer((clientSocket: Socket) => { // 2. this is the client below | |
console.log(`[server] connected client: ${JSON.stringify(clientSocket.address())}`); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { createServer, Server, Socket } from 'net'; | |
import fetch from 'node-fetch'; | |
const port: number = 9903; | |
// --------------------------------------------- | |
// server | |
// --------------------------------------------- | |
const server: Server = createServer((clientSocket: Socket) => { // 2. this is the fetch client below | |
console.log(`[server] connected client: ${JSON.stringify(clientSocket.address())}`); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { createServer, Server, Socket } from 'net'; | |
const port: number = 9903; | |
// --------------------------------------------- | |
// server | |
// --------------------------------------------- | |
const server: Server = createServer((connectedSocket: Socket) => { // 2. this is the client below | |
console.log(`[server] connected client: ${JSON.stringify(connectedSocket.address())}`); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From b9b957e40da2a8f4a30a14528fe7ec0736a69ea2 Mon Sep 17 00:00:00 2001 | |
From: SSen <[email protected]> | |
Date: Sat, 19 Jan 2019 16:33:01 +0900 | |
Subject: [PATCH] Update readme | |
--- | |
package.json | 2 +- | |
readme.md | 2 +- | |
2 files changed, 2 insertions(+), 2 deletions(-) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# clone | |
# -r --remote git remote name (default: origin) | |
# -d --directory working directory name (default: repository name) | |
# -b --branch git branch name (default: master) | |
# --depth checkout depth (default: 1) | |
# -i --include include directory [sparse checkout] | |
# -x --exclude exclude directory [sparse checkout] | |
# repository https://github.com/iamssen/{repository}.git | |
# userid/repository https://github.com/{userid}/{repository}.git | |
# https://github.com/iamssen/repository.git |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {AfterViewChecked} from '@angular/core'; | |
import {applyMixins} from 'rxjs/util/applyMixins'; | |
class ElementDebugger implements AfterViewChecked { | |
ngAfterViewChecked() { | |
console.log(this); | |
} | |
} | |
export function debugCycle() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {Component, Provider, forwardRef} from '@angular/core'; | |
import {NG_VALUE_ACCESSOR, ControlValueAccessor} from '@angular/forms'; | |
@Component({ | |
selector: 'custom-form-component', | |
template: `<div (click)="onClick()">{{value}}</div>`, | |
styles: [` | |
div { | |
border: 1px solid black; | |
background-color: #eeeeee; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const ts = require('typescript'); | |
const rimraf = require('rimraf'); | |
const fs = require('fs'); | |
const chalk = require('chalk'); | |
const defaultOptions = { | |
target: ts.ScriptTarget.ES5, | |
module: ts.ModuleKind.CommonJS, | |
outDir: __dirname + '/.output', | |
tempFile: __dirname + "/.test.ts" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!!!! do params { date: '2015-05-24', first: 'Youngjoo', last: 'Lee' } | |
@user name Youngjoo Lee | |
@current date 2015-05-24 | |
@hello message Hello Youngjoo Lee! Date is 2015-05-24 | |
!!!! do params { date: '2016-04-19', first: 'Kiwhan', last: 'Ryu' } | |
@user name Kiwhan Ryu | |
@current date 2016-04-19 | |
@hello message Hello Kiwhan Ryu! Date is 2016-04-19 | |
!!!! do params { date: '2016-05-23', first: 'Kwangjin', last: 'Yoon' } | |
@user name Kwangjin Yoon |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <reference path="typings/tsd.d.ts"/> | |
import * as request from 'request'; | |
import {parseString, Builder} from 'xml2js'; | |
import * as os from 'os'; | |
import * as path from 'path'; | |
import * as fs from 'fs'; | |
interface Channel { | |
item:Item[]; | |
} |