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
| [ | |
| // ======================================================= | |
| // 모든 정보는 직접 수집하여 정리한 정보입니다. | |
| // 일부 정보가 오기되었거나, 위/경도 좌표가 부정확할 수 있으므로 유의하세요. | |
| // ======================================================= | |
| { | |
| 'name': '가양역', | |
| 'city': '서울', | |
| 'areas': [ '강서구' ], | |
| 'lines': [ '9호선' ], |
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 { parse } = require("csv-parse/sync"); | |
| const fs = require("fs"); | |
| const path = require("path"); | |
| const rows = parse( | |
| fs.readFileSync("./LSS-Chat_Integration_Testcases_20230222.csv", "utf-8"), | |
| { bom: true, columns: false, skip_empty_lines: true } | |
| ); | |
| const tuples = rows | |
| .filter((_, index) => index >= 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
| const http = require("http"); | |
| const url = require("url"); | |
| const { exec } = require("child_process"); | |
| const port = +(process.env.PORT ?? "5000"); | |
| const host = process.env.HOST ?? "127.0.0.1"; | |
| const secret = process.env.SECRET; | |
| const command = process.env.COMMAND; | |
| if (!secret) { |
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.Net.WebSockets; | |
| using System.Text; | |
| using System.Threading; | |
| using System.Threading.Tasks; | |
| namespace YYT28 { | |
| class Program | |
| { |
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
| # How to setup local SSL |
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
| #!/bin/bash | |
| # https://askubuntu.com/a/1360291 | |
| set -euxo pipefail | |
| dmesg | grep iwl | |
| echo "Continue? "; read | |
| LIB_FIRMWARE="/lib/firmware" | |
| IWLWIFI_TARGET="iwlwifi-ty-a0-gf-a0.pnvm" |
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
| [Thu Apr 15 15:09:23 UTC 2021] Sleep 720 seconds | |
| [Thu Apr 15 15:21:23 UTC 2021] Start connection=1 | |
| Running 60s test @ https://API_HOST/hello?name=lacti | |
| 1 connections | |
| ┌─────────┬───────┬───────┬───────┬───────┬──────────┬─────────┬────────┐ | |
| │ Stat │ 2.5% │ 50% │ 97.5% │ 99% │ Avg │ Stdev │ Max │ | |
| ├─────────┼───────┼───────┼───────┼───────┼──────────┼─────────┼────────┤ | |
| │ Latency │ 13 ms │ 16 ms │ 25 ms │ 31 ms │ 16.56 ms │ 6.72 ms │ 356 ms │ | |
| └─────────┴───────┴───────┴───────┴───────┴──────────┴─────────┴────────┘ |
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 getStream from "get-stream"; | |
| import * as http from "http"; | |
| import httpRequest from './httpRequest'; | |
| export default function httpGet( | |
| url: string, | |
| requestArgs: http.ClientRequestArgs | |
| ) { | |
| return httpRequest(url, requestArgs).then(res => getStream(res.setEncoding("utf-8"))); | |
| } |
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 webpack from "webpack"; | |
| const isMatch = (includes: RegExp[], input: string) => | |
| input && includes.some(regex => regex.test(input)); | |
| const replaceAll = ( | |
| patterns: Array<{ regex: RegExp; value: string }>, | |
| input: string | |
| ) => | |
| patterns.reduce( |
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 readline = require("readline"); | |
| // This promise cannot be resolved with high probability if a millis is bigger than 1. | |
| const next = () => new Promise(fulfill => setTimeout(fulfill, 2 /* MAGIC */)); | |
| const rl = new readline.createInterface({ | |
| input: process.stdin, | |
| output: process.stdout, | |
| // But everything is ok if you set `terminal` to `false. | |
| // terminal: false, |
NewerOlder