๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
  • Tried. Failed. Logged.
728x90

์ „์ฒด ๊ธ€720

Electron - ๋กœ๋“œ๊ฐ€ ๋‹ค๋œํ›„์— ์ฐฝ ๋„์šฐ๊ธฐ let win = new BrowserWindow({ show: false, }); win.once('ready-to-show', () => { win.show() }) ์ถœ์ฒ˜: https://www.electronjs.org/docs/latest/api/browser-window BrowserWindow | Electron Create and control browser windows. www.electronjs.org 2022. 3. 27.
Electron - ํด๋ฆฝ๋ณด๋“œ ์กฐ์ž‘ const {clipboard} = require('electron'); clipboard.writeText('ํด๋ฆฝ๋ณด๋“œ ๋ณต์‚ฌ!'); // ํด๋ฆฝ๋ณด๋“œ ํ…์ŠคํŠธ ๋ณต์‚ฌ clipboard.readText(); // ํด๋ฆฝ๋ณด๋“œ ํ…์ŠคํŠธ ๊ฐ€์ ธ์˜ค๊ธฐ ์ถœ์ฒ˜: https://tinydew4.github.io/electron-ko/docs/api/clipboard/ clipboard ์‹œ์Šคํ…œ ํด๋ฆฝ๋ณด๋“œ์— ๋ณต์‚ฌ์™€ ๋ถ™์—ฌ๋„ฃ๊ธฐ๋ฅผ ์ˆ˜ํ–‰ํ•ฉ๋‹ˆ๋‹ค. tinydew4.github.io 2022. 3. 27.
Electron - ์ดˆ๊ธฐ ์„ค์ • ๋ฐ ์‹คํ–‰ [์„ค์น˜] npm init npm i electron [package.json] { "main": "main.js", "scripts": { "start": "electron ." } } [main.js] const { app, BrowserWindow, Menu } = require('electron'); Menu.setApplicationMenu(false); // ๋ฉ”๋‰ด ๋น„ํ™œ์„ฑํ™” function createWindow(){ let win = new BrowserWindow({ frame: true, width: 600, height: 400, minWidth: 400, minHeight: 200, maxWidth: 700, maxHeight: 500, resizable: true, webPreferen.. 2022. 3. 27.
์•ˆ๋“œ๋กœ์ด๋“œ ์ŠคํŠœ๋””์˜ค - notification Intent ์ง„ํ–‰ํ•˜๊ณ  ์žˆ๋˜ MainActivity๋กœ ๋‹ค์‹œ ์ด๋™ํ•˜๊ธฐ ํ•ด๊ฒฐ Intent notificationIntent = new Intent(getApplicationContext(), MainActivity.class); notificationIntent.setAction(Intent.ACTION_MAIN); notificationIntent.addCategory(Intent.CATEGORY_LAUNCHER); notificationIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); ์ง„ํ–‰ํ•˜๊ณ  ์žˆ๋Š” MainActivity๋กœ ๋‹ค์‹œ ์ด๋™์„ ํ•˜๊ณ  ์‹ถ์€ ๊ฒฝ์šฐ. ์ถœ์ฒ˜: https://like-tomato.tistory.com/156 [Notification] ์•ˆ๋“œ๋กœ์ด๋“œ ์•ฑ ์ค‘๋ณต ์‹คํ–‰ ๋ฌธ์ œ ์™„๋ฒฝ ํ•ด๊ฒฐ ๋ฐฉ๋ฒ• ์•ˆ๋“œ๋กœ์ด๋“œ ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜์„ ๊ฐœ๋ฐœํ•˜๋‹ค ๋ณด๋ฉด ๋Œ€๋ถ€๋ถ„.. 2022. 3. 22.
html - ๊ฐœ๋ฐœ์ž ๋„๊ตฌ ๋ง‰๊ธฐ(์‚ฌ์šฉํ•˜๊ธฐ ํž˜๋“ค๊ฒŒ) (function () { (function a() { try { (function b(i) { if (('' + (i / i)).length !== 1 || i % 20 === 0) { (function () { }).constructor('debugger')() } else { debugger } b(++i) } )(0) } catch (e) { setTimeout(a, 700) } } )() } )(); 2022. 2. 24.
ํฌ๋กฌ ํ™•์žฅ ํ”„๋กœ๊ทธ๋žจ - chrome storage ์กฐ์ž‘ 1) ๊ถŒํ•œ ์„ค์ • "permissions": ["storage"] 2) ๋ฐ์ดํ„ฐ ์ง€์ • chrome.storage.sync.set({ userData: user }); 3) ๋ฐ์ดํ„ฐ ๊ฐ€์ ธ์˜ค๊ธฐ chrome.storage.sync.get(["userData"], result => {}); ์‚ฌ์šฉ ์˜ˆ์‹œ) async function loadSecNvMids(){ return new Promise( (resolve, reject)=>{ chrome.storage.sync.get(["secNvMids"], result => { resolve( result ); }); } ) } async function main(){ var secNvMids = null; secNvMids = await loadSecNvMids(); se.. 2022. 2. 20.
๋ฆฌ์•กํŠธ - ํ”„๋กœ์ ํŠธ 21 - 3์ฃผ ๋™์•ˆ์˜ ์ฑŒ๋ฆฐ์ง€ https://pr0ject21.web.app/ 21: Challenge 3 weeks pr0ject21.web.app ๊นƒํ—ˆ๋ธŒ: https://github.com/Logic-01001010/21 GitHub - Logic-01001010/21: ํ”„๋กœ์ ํŠธ 21 - 3์ฃผ ๋™์•ˆ์˜ ์ฑŒ๋ฆฐ์ง€ ํ”„๋กœ์ ํŠธ 21 - 3์ฃผ ๋™์•ˆ์˜ ์ฑŒ๋ฆฐ์ง€. Contribute to Logic-01001010/21 development by creating an account on GitHub. github.com 2022. 2. 19.
์ž๋ฐ”์Šคํฌ๋ฆฝํŠธ - localStorage์— ํด๋ž˜์Šค ๋ณ€์ˆ˜ ์ €์žฅํ•˜๊ธฐ localStorage.setItem('Todos', JSON.stringify(todosList)); if( localStorage.getItem('Todos') != null && localStorage.getItem('Todos') != undefined && localStorage.getItem('Todos') != '' && localStorage.getItem('Todos') != '[]' ){ todosList = JSON.parse( localStorage.getItem('Todos') ); } 2022. 2. 10.
์…€๋ ˆ๋‹ˆ์›€ - ๋„ค์ด๋ฒ„ ๋กœ๊ทธ์ธ ๋ด‡ ํƒ์ง€ ์šฐํšŒํ•˜๊ธฐ from selenium import webdriver from selenium.webdriver.common.keys import Keys import pyperclip import time uid = '{์•„์ด๋””}' upw = '{๋น„๋ฐ€๋ฒˆํ˜ธ}' driver = webdriver.Chrome('chromedriver.exe') driver.implicitly_wait(15) driver.get('https://nid.naver.com/nidlogin.login?mode=form&url=https%3A%2F%2Fwww.naver.com') pyperclip.copy(uid) time.sleep(1) driver.find_element_by_xpath('/html/body/div[1]/div[2]/div/di.. 2022. 2. 8.
node.js - ๋ชจ๋“ˆ ํŒŒ์ผ ๋ถˆ๋Ÿฌ์˜ค๊ธฐ(exports) ๋‹ค์Œ๊ณผ ๊ฐ™์ด ๋ชจ๋“ˆ ํŒŒ์ผ์„ ๋งŒ๋“ค๊ณ  export ํ•  ๋ณ€์ˆ˜, ํ•จ์ˆ˜, ํด๋ž˜์Šค๋“ค์€ ์œ„์™€ ๊ฐ™์ด exports.{์ด๋ฆ„} = {๋ณ€์ˆ˜|ํ•จ์ˆ˜|ํด๋ž˜์Šค}๋กœ ์ง€์ •ํ•ด์ค€๋‹ค. require ํ•จ์ˆ˜๋ฅผ ํ†ตํ•ด์„œ ์™ธ๋ถ€์˜ js ํŒŒ์ผ์„ ๋ถˆ๋Ÿฌ์™€์„œ myModule์ด๋ผ๋Š” ๋ณ€์ˆ˜์— ๋Œ€์ž…์„ ํ•ด์ค€๋‹ค. ์‹คํ–‰ ๊ฒฐ๊ณผ๋ฅผ ํ™•์ธํ•˜๋ฉด myModule ์•ˆ์—๋Š” message๋ผ๋Š” ๋ณ€์ˆ˜์™€ say ํ•จ์ˆ˜๊ฐ€ ๋“ค์–ด์žˆ๋Š” ๊ฒƒ์„ ํ™•์ธ ๊ฐ€๋Šฅ ์ด์ œ ๊ฐ๊ฐ์˜ ๋ณ€์ˆ˜์™€ ํ•จ์ˆ˜๋ฅผ ์‚ฌ์šฉํ•˜๊ธฐ ์œ„ํ•ด์„œ๋Š” myModule.message myModule.say() ์š”๋Ÿฐ์‹์œผ๋กœ ์  ๋’ค์— ํ‚ค์›Œ๋“œ๋ฅผ ์ ๋Š”๋‹ค. ์‹คํ–‰ ๊ฒฐ๊ณผ ์š”์•ฝ: [์ˆ˜์ถœํ•˜๊ธฐ] var a = 123; exports.a = a; [์ˆ˜์ž…ํ•˜๊ธฐ] const myModule = require('module.js'); const a = myModule.a; ์ฐธ๊ณ : htt.. 2022. 2. 8.
neovim - nvim ์„ค์ • ๊ฒฝ๋กœ: ~/.config/nvim/init.vim ๋Œ€์ถฉ ๋‚ด ์„ค์ •) :set number " :set relativenumber :set autoindent :set tabstop=4 :set shiftwidth=4 :set smarttab :set softtabstop=4 :set mouse=a call plug#begin() Plug 'http://github.com/tpope/vim-surround' " Surrounding ysw) Plug 'https://github.com/preservim/nerdtree' " NerdTree Plug 'https://github.com/tpope/vim-commentary' " For Commenting gcc & gc Plug 'https://github.c.. 2022. 2. 8.
์šด์˜์ฒด์ œ๋ณ„๋กœ EXIT STATUS(์ข…๋ฃŒ ์ƒํƒœ๊ฐ’) ํ™•์ธ ๋ฐฉ๋ฒ• ๋ฆฌ๋ˆ…์Šค: $? ์œˆ๋„์šฐ: %errorlevel% EXIT STATUS ์œ„ํ‚ค: https://zetawiki.com/wiki/%EC%A2%85%EB%A3%8C_%EC%83%81%ED%83%9C%EA%B0%92_EXIT_STATUS ์ข…๋ฃŒ ์ƒํƒœ๊ฐ’ EXIT STATUS - ์ œํƒ€์œ„ํ‚ค ๋‹ค์Œ ๋ฌธ์ž์—ด ํฌํ•จ... zetawiki.com 2022. 2. 7.
728x90