{CURRENT_PLAYING_ARTISTS} - {CURRENT_PLAYING_NAME}
Albums: {CURRENT_PLAYING_ALBUM}
Last updated at {CURRENT_PLAYING_LAST_UPDATED}
JavaScript 43 mins ████████████████▎░░░░ 77.6% | |
JSON 12 mins ████▋░░░░░░░░░░░░░░░░ 22.2% | |
TypeScript 0 secs ░░░░░░░░░░░░░░░░░░░░░ 0.2% | |
Other 0 secs ░░░░░░░░░░░░░░░░░░░░░ 0.1% |
import axios from 'axios'; | |
import cheerio from 'cheerio'; | |
import fs from 'fs'; | |
/** | |
* npm 은 package(=라이브러리) 매니저, 그래서 Node Package Manage 줄여서 npm | |
* npm 에서 라이브러리를 설치하려면, "npm install 라이브러리명" 을 입력하면 된다. | |
*/ | |
const getMovies = async (movieNumber) => { | |
const response = await axios.get(`https://movie.naver.com/movie/bi/mi/basic.nhn?code=${movieNumber}`); |
import axios from 'axios'; | |
async function generateNoRecursion(len: number, chars: string[]) { | |
let i; | |
const indices = []; | |
for (i = 0; i < len; ++i) | |
indices.push(0); | |
while (indices[0] < chars.length) { | |
let str = ""; |
on: | |
push: | |
branches: | |
- master | |
name: Deploy master branch | |
jobs: | |
deploy: | |
name: deploy | |
runs-on: ubuntu-latest | |
{ | |
// Use IntelliSense to learn about possible attributes. | |
// Hover to view descriptions of existing attributes. | |
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "Nest debug by a@hax0r.info", | |
"type": "node", | |
"request": "launch", |
{ | |
"compilerOptions": { | |
"module": "commonjs", | |
"moduleResolution": "node", | |
"typeRoots": ["./node_modules/@types", "./src/@types"], | |
"baseUrl": "./", | |
"declaration": true, | |
"removeComments": true, | |
"emitDecoratorMetadata": true, | |
"experimentalDecorators": true, |
// const webpack = require('webpack'); | |
const path = require('path'); | |
const nodeExternals = require('webpack-node-externals'); | |
const slsw = require('serverless-webpack'); | |
const isLocal = slsw.lib.webpack.isLocal; | |
module.exports = { | |
mode: isLocal ? 'development' : 'production', | |
// entry: slsw.lib.entries, | |
entry: './src/main.ts', |
/* | |
지방의 수는 3 이상 100,000 이하인 자연수입니다. | |
각 지방에서 요청하는 예산은 1 이상 100,000 이하인 자연수입니다. | |
총 예산은 지방의 수 이상 1,000,000,000 이하인 자연수입니다. | |
*/ | |
function solution(budgets, M) { | |
var answer = 0, | |
mid = 0, | |
minimum = 0, | |
maximum = 100000, |
import {from} from 'rxjs/internal/observable/from'; | |
import {distinctUntilChanged} from 'rxjs/operators'; | |
const source = [ | |
{x: 1, y: 1}, | |
{x: 1, y: 2}, | |
{x: 3, y: 5}, | |
{x: 6, y: 9}, | |
{x: 2, y: 1}, | |
{x: 3, y: 5}, |