Table of Contents
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
var fs = require('fs'); | |
var Promise = require('promise'); | |
var promises = []; | |
var readline = require('readline'); | |
var readFile = function (file) { | |
return new Promise(function (resolve, reject) { | |
var lines = []; | |
var rl = readline.createInterface({ | |
input: fs.createReadStream('./logs/' + file) |
Inspired by Create React App
This script is checking in every chrome window if there's a tab with the URL gived in params:
- If there's one: It opens chrome in first-ground and show the good chrome window with the good tab
- If there's multiples: Same behavior but it use the first tab found
- If there's not: It launch chrome (if it's not open) and create a new tab with the given URL
osascript openChrome.scpt YOUR_FORMATTED_URL
Rust๋ ์ฑ๋ฅ์ด ์ฐ์ํ ๋ก์ฐ ๋ ๋ฒจ ํ๋ก๊ทธ๋๋ฐ ์ธ์ด ์ค ํ๋์ ๋๋ค. ๋ํ, ๋น์ฉ ์๋ ์ถ์ํ, ๋ฉ๋ชจ๋ฆฌ ์์ ์ฑ, ๋ฐ์ดํฐ ๋ ์ด์ค ์๋ ์ค๋ ๋ฉ ๋ฑ๋ฑ์ ์ง์ํ๋ฉฐ C++์ ๋นํด ๋ฌธ๋ฒ๋ ๊ฐ๊ฒฐํฉ๋๋ค. ์ด๋ฌํ ์ฅ์ ์ Rust๋ฅผ Node์ ๊ฒฐํฉ์์ผ ์ฌ์ฉํ๋ค๋ฉด, Node์ ๋ถ์กฑํ ์ฑ๋ฅ์ ๋ฉ๊ฟ ์ ์์ต๋๋ค. Node์์ Rust์์ ์์ฑํ ํจ์๋ฅผ ํธ์ถํ๊ธฐ ์ํด์๋ FFI(Foreign function interface, ์ธ๋ถ ํจ์ ์ธํฐํ์ด์ค)๋ฅผ ์ฌ์ฉํด์ผ ํฉ๋๋ค. ์๋๋ ์ค๋น๋ฌผ์ ๋๋ค.
- Node.js
- Python v2.7 (v3.* ๋ฒ์ ์ ์ ๋จ)
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
# Frontend Design Guideline | |
This document summarizes key frontend design principles and rules, showcasing | |
recommended patterns. Follow these guidelines when writing frontend code. | |
# Readability | |
Improving the clarity and ease of understanding code. |
OlderNewer