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 * as Rx from 'rxjs'; | |
| import * as RxOp from 'rxjs/operators'; | |
| Rx.fromEvent(document, 'click') | |
| .pipe( | |
| // Choose One | |
| // RxOp.mergeMap(() => Rx.interval(1000)), | |
| // RxOp.switchMap(() => Rx.interval(1000)), | |
| ) | |
| .subscribe(value => console.log(value)); |
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
| .eletron-titlebar { | |
| display : block; | |
| position : fixed; | |
| top : 0; | |
| width : 100%; | |
| height : 32px; | |
| color : white; | |
| background : #254053; |
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
| module.exports = (tokens, req, res) => { | |
| const date = new Date(); | |
| const timezoneOffset = date.getTimezoneOffset() * 60000; | |
| const dateWithTimezone = new Date(date.getTime() - timezoneOffset).toISOString().substring(0, 19).replace("T", " "); | |
| const timezone = date.toString().split(" ")[5]; | |
| let statusWIthColor = ""; | |
| switch (tokens["status"](req, res).substring(0, 1)) { | |
| case "1": |
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 * as express from "express"; | |
| import {TokenIndexer} from "morgan"; | |
| import * as colors from "colors"; | |
| import {appendFileSync} from "fs"; | |
| import {join} from "path"; | |
| export namespace Logger { | |
| export const getDate = (): string => { | |
| const date = new Date(); | |
| return colors.magenta("[" + |
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
| <!DOCTYPE HTML> | |
| <html> | |
| <head> | |
| <style> | |
| .big-box { | |
| height: 100vh; | |
| } | |
| </style> | |
| </head> | |
| <body> |
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
| using System; | |
| using System.Drawing; | |
| namespace ImageConvertor { | |
| class ImageConvertor { | |
| /** | |
| * <summary> | |
| * 이미지를 targetX, targetY로 리사이징함. 비율은 유지하고 빈 공간은 검은색으로 채움 | |
| * </summary> |