$ npm install -g coffee-script
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
- Published on 21st November 2013
This is the continuation of how to open a multi select file dialogue just using JavaScript. In this tutorial I will explain how to preview the selected files before upload.
A full-featured markdown parser and compiler, written in JavaScript. Built for speed.
Atom이 실행된후, ~/.atom
디렉토리에 있는 init.coffee
파일이 실행되며, 너에게 원하는 대로 만든 CoffeeScript 코드를 실행할 기회를 준다.
너는 Atom > Open Your Init Script
메뉴에서 init.coffee
파일을 열수있다. 이 파일은 또한 init.js
이름 지어질 수 있으며 JavaScript 코드를 포함할 수 있다.
예를 들어, 만약 너가 Audio Beep 활성화 하고 싶다면, 너는 밑에 코드를 너의 init.coffe
파일에 추가하면 Atom을 실행할 때마다 Beep가 울릴것이다.
code:
atom.beep()