src/HelloWorld.js:
function helloWorld() {
return 'Hello World!';
src/HelloWorld.js:
function helloWorld() {
return 'Hello World!';
Atom์ด ์คํ๋ํ, ~/.atom
๋๋ ํ ๋ฆฌ์ ์๋ init.coffee
ํ์ผ์ด ์คํ๋๋ฉฐ, ๋์๊ฒ ์ํ๋ ๋๋ก ๋ง๋ CoffeeScript ์ฝ๋๋ฅผ ์คํํ ๊ธฐํ๋ฅผ ์ค๋ค.
๋๋ Atom > Open Your Init Script
๋ฉ๋ด์์ init.coffee
ํ์ผ์ ์ด์์๋ค. ์ด ํ์ผ์ ๋ํ init.js
์ด๋ฆ ์ง์ด์ง ์ ์์ผ๋ฉฐ JavaScript ์ฝ๋๋ฅผ ํฌํจํ ์ ์๋ค.
์๋ฅผ ๋ค์ด, ๋ง์ฝ ๋๊ฐ Audio Beep ํ์ฑํ ํ๊ณ ์ถ๋ค๋ฉด, ๋๋ ๋ฐ์ ์ฝ๋๋ฅผ ๋์ init.coffe
ํ์ผ์ ์ถ๊ฐํ๋ฉด Atom์ ์คํํ ๋๋ง๋ค Beep๊ฐ ์ธ๋ฆด๊ฒ์ด๋ค.
code:
atom.beep()
๋ฒํผ์ ๊ธธ์ด๋ ๋ฐ์ดํธ๋ก ์ง์ ํ๋ฉฐ, ๋ฒํผ์์๋ ์์๋ก ๋ฐ์ดํธ๋ฅผ ์ค์ ํ๊ณ , ๊ฐ์ ธ์ฌ ์ ์๋ค.
utf-8 ์ธ์ฝ๋ฉ๋ ๋ฌธ์์ด๋ก ๋ฒํผ ์์ฑ:
var buf = new Buffer('Hello World!'); // ๊ธฐ๋ณธ์ utf-8 ์ธ์ฝ๋ฉ.
You may have noticed that a few sites out there trigger some type of event when you use your mouse to select a word or a block of text on the page. After selecting some text, a little pop-up might appear allowing you to look up the definition of the selected word, or search Google for the selected phrase. The New York Times online is a perfect example; while reading any of their articles, select a block of text with your mouse and you'll notice a little balloon like icon appears. If you click the balloon icon, a pop-up window opens that back searches all New York Times articles for the selected text. Like any reasonable software engineer, I was curious how the New York Times online implemented this select, click, and search feature.
As it turns out, implementing your own is quite easy with jQuery [a