Code Monkey home page Code Monkey logo

.dotfiles's Introduction

Hi there ๐Ÿ‘‹

.dotfiles's People

Contributors

khleexv avatar

Watchers

 avatar

.dotfiles's Issues

solve.py ์ปดํŒŒ์ผ/์‹คํ–‰ ๋ช…๋ น ๋ถ„๋ฆฌํ•˜๊ธฐ

์ง€๊ธˆ์€ ์ปดํŒŒ์ผ๋ช…๋ น์œผ๋กœ run ํŒŒ์ผ์„ ๋งŒ๋“ค๊ณ  ./run ๋ช…๋ น์œผ๋กœ ์‹คํ–‰ํ•˜๋Š” ๋ฐฉ์‹์ด๋‹ค.
์ž๋ฐ”๊ฐ™์€๊ฒฝ์šฐ๋Š” ์ด๋Ÿฐ๋ฐฉ์‹์ด ๋ถˆ๊ฐ€๋Šฅํ•œ๊ฑธ๋กœ ์•ˆ๋‹ค.
๋‹ค์–‘ํ•œ ์–ธ์–ด๋ฅผ ์“ฐ๊ฒŒ ๋  ๋•Œ๋ฅผ ๋Œ€๋น„ํ•ด ๋ถ„๋ฆฌํ•ด๋‘์ž.

solve.sh ์Šคํƒ ์‚ฌ์ด์ฆˆ

BOJ C++ ์Šคํƒ ์‚ฌ์ด์ฆˆ๋Š” 64MB ์ด์ƒ์ธ๊ฒƒ ๊ฐ™๋‹ค. (์•„๋งˆ, ๋ฉ”๋ชจ๋ฆฌ ์ œํ•œ๋งŒํผ ์Šคํƒ์„ ์“ธ ์ˆ˜ ์žˆ๋Š” ๋“ฏ ํ•˜๋‹ค.)
๊ทผ๋ฐ, ๋‚ด๊ฐ€ ๊ฐ€์ง„ ์„œ๋ฒ„, ๋กœ์ปฌ ์ปดํ“จํ„ฐ๋“ค์—์„œ๋Š” ๊ธฐ๋ณธ ์Šคํƒ ์‚ฌ์ด์ฆˆ๊ฐ€ 8MB๋กœ ์ œํ•œ๋˜์–ด์žˆ๋‹ค. (์•„๋งˆ, ๋Œ€๋ถ€๋ถ„์˜ ๋ฆฌ๋ˆ…์Šค ๋ฐฐํฌํŒ๋“ค์—์„œ๋Š” 8MB๊ฐ€ ๊ธฐ๋ณธ์ธ ๊ฒƒ ๊ฐ™๋‹ค.)

์Šคํƒ์‚ฌ์ด์ฆˆ๋ฅผ, ์‰˜ ์Šคํฌ๋ฆฝํŠธ ์˜์—ญ์—์„œ ํ•ด๊ฒฐํ•  ์ˆ˜ ์žˆ์„๊นŒ?

solve ์Šคํฌ๋ฆฝํŠธ ๊ฐœํ–‰ ๊ด€๋ จ

input.txt, output.txt ๋งˆ์ง€๋ง‰์— ๊ฐœํ–‰๋ฌธ์ž๊ฐ€ ์žˆ๋Š”์ง€ ์ฒดํฌํ•ด์„œ ๋„ฃ์–ด์ฃผ๊ฑฐ๋‚˜ ๋™์ผํ•œ ๊ธฐ๋Šฅ์„ ํ•˜๋Š” ์œ ํ‹ธ๋ฆฌํ‹ฐ ์ฐพ๊ธฐ.

๋ฆฌ๋ˆ…์Šค ํ‘œ์ค€์€ ๋ชจ๋“  ํŒŒ์ผ์˜ ๋์— ๊ฐœํ–‰๋ฌธ์ž๋ฅผ ๋„ฃ์–ด์ฃผ๋Š”๊ฑธ๋กœ ์•Œ๊ณ ์žˆ๋Š”๋ฐ,
๊ฐ€๋”์”ฉ ์—†๋Š”ํŒŒ์ผ๋“ค์— ๋Œ€ํ•ด์„œ ์ถœ๋ ฅ์ด ์ด์ƒํ•˜๊ฒŒ๋‚˜์˜จ๋‹ค.
output.txt์˜ ๋‚ด์šฉ์ด foo ๋ผ๊ณ ํ•˜๊ณ  ๋‹ค์Œ ์Šคํฌ๋ฆฝํŠธ๋ฅผ ์‹คํ–‰ํ•œ๋‹ค๊ณ  ํ•˜๋ฉด

cat output.txt
echo bar

์˜๋„ํ•œ ์ถœ๋ ฅ์€

foo
bar

์ด์ง€๋งŒ,

foobar

๋กœ ๋‚˜์˜ฌ๋•Œ๊ฐ€ ์žˆ๋‹ค.

solve.py ํŒŒ์‹ฑ๊ทœ์น™

solve ์Šคํฌ๋ฆฝํŠธ๋Š” testcase/{filename} ์˜ ํ…Œ์ŠคํŠธ์ผ€์ด์Šค๋ฅผ ์ž๋™์œผ๋กœ ์ฐพ๋Š”๋‹ค.

ํ˜„์žฌ filename ํŒŒ์‹ฑ๋ฐฉ๋ฒ•์€

*.* ํ˜•์‹์˜ ํŒŒ์ผ๋ช…์—์„œ ํ™•์žฅ์ž(suffix .*)๋ฅผ ์ œ๊ฑฐํ•œ * ์„ ๋ฝ‘์•„๋‚ธ๋‹ค.

๋ฐ”๊พธ๋ ค๊ณ  ํ•˜๋Š” ํŒŒ์‹ฑ๋ฐฉ๋ฒ•์€

*_*.* ํ˜•์‹์˜ ํŒŒ์ผ๋ช…์—์„œ suffix _*.*์„ ์ œ๊ฑฐํ•œ *์„ ๋ฝ‘์•„๋‚ด๋Š” ๋ฐฉ์‹์œผ๋กœ ๋ฐ”๊พธ๋ คํ•œ๋‹ค.
์ด๋ ‡๊ฒŒ ๋ฐ”๊ฟˆ์œผ๋กœ์„œ, ํ•œ ๋ฌธ์ œ๋ฅผ ์—ฌ๋Ÿฌ๊ฐ€์ง€ ๋ฐฉ๋ฒ•์œผ๋กœ ํ’€๋•Œ, ํŒŒ์ผ๋ช…์„ foo_bar.cpp, foo_baz.cpp ์‹์œผ๋กœ ์ง“๊ฒŒ๋˜๋ฉด ์ž๋™์œผ๋กœ ๊ฐ™์€ ํ…Œ์ŠคํŠธ์ผ€์ด์Šค๋ฅผ ๊ณต์œ ํ•  ์ˆ˜ ์žˆ๊ฒŒ ๋œ๋‹ค.

P.S.
*_*.* ํ˜•์‹์˜ ํŒŒ์ผ๋ช…์€ _๊ฐ€ ์—†๋Š” ๊ฒฝ์šฐ๋ฅผ ๋‚˜ํƒ€๋‚ด์ง€ ๋ชปํ•œ๋‹ค. ์ •๊ทœํ‘œํ˜„์‹์„ ๋ฐฐ์›Œ์•ผ๊ฒ ๋‹ค.

zsh: fix fd

in ubuntu, fd is either fd or fdfind, versionwise.

my idea

first, since fd is fluid, declare shell variable FD
then, check fd command existing, if so, FD=fd
else, FD=fdfind
and substitue all fd/fdind with $FD

todo

  • solve.py -r ์—์„œ testcase ํด๋” ์š”๊ตฌํ•˜๋Š” ๊ฒƒ ์—†์• ๊ธฐ
  • cronie, neovim, stow ๋“ฑ ๋ฆฌ๋ˆ…์Šค ์ฒ˜์Œ๊น”์•˜์„๋•Œ ํ•„์š”ํ•œ ๊ฒƒ๋“ค ๋ฌธ์„œํ™”ํ•˜๊ธฐ
  • windows ํด๋” ๋‚ด์šฉ windows.md ๋“ฑ์œผ๋กœ ๋ฐ”๊ฟ”์„œ docsํด๋” ๋งŒ๋“ค์–ด์„œ ๋ฆฌ๋ˆ…์Šค๋ž‘ ๊ฐ™์ด ์ •๋ฆฌํ•˜๊ธฐ

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.