Decorators for class
@Injectable
class A {}core.di.decoratorsInjectable
| // 한빛 미디어에서 책 제목 수집 | |
| // var titles = [] | |
| // $('.ct a strong').each(function(i) {titles.push($(this).text())}) | |
| 'use strict' | |
| let fs = require('fs'); | |
| let books = require('./books.json'); | |
| fs.mkdir(`${__dirname}/result`, () => { |
| /// <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[]; | |
| } |
| !!!! 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 |
| 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" |
| 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; |
| import {AfterViewChecked} from '@angular/core'; | |
| import {applyMixins} from 'rxjs/util/applyMixins'; | |
| class ElementDebugger implements AfterViewChecked { | |
| ngAfterViewChecked() { | |
| console.log(this); | |
| } | |
| } | |
| export function debugCycle() { |
| # 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 |
| 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(-) |
| 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())}`); | |