반응형

Koa: A next-gen Node.js web framework

koa

 

Expressive middleware for node.js using generators

 

Expressive middleware for node.js using generators via co to make web applications and APIs more enjoyable to write. Koa's middleware flow in a stack-like manner allowing you to perform actions downstream, then filter and manipulate the response upstream. Koa's use of generators also greatly increases the readability and robustness of your application.

Only methods that are common to nearly all HTTP servers are integrated directly into Koa's small ~400 SLOC codebase. This includes things like content-negotiation, normalization of node inconsistencies, redirection, and a few others.

No middleware are bundled with koa. If you prefer to only define a single dependency for common middleware, much like Connect, you may use koa-common.

Installation

$ npm install koa

To use Koa you must be running node 0.11.9 or higher for generator support, and must run node(1) with the --harmony flag. If you don't like typing this, add an alias to your shell profile:

alias node='node --harmony'

Another option, if you would like to use koa with node 0.10.x (the current stable branch), or are tired of typing the --harmony flag, is to use gnode to spawn your node instance. However note that performance degrades quickly compared to 0.11.x.

Community

 

반응형
반응형

Myth: A pure CSS preprocessor

myth

Homepage: http://www.myth.io/
GitHub: https://github.com/segmentio/myth

 

Myth

CSS the way it was imagined.

Myth is a preprocess that lets you write pure CSS without having to worry about slow browser support, or even slow spec approval. It's a like CSS polyfill.

Installation

$ npm install -g myth

Usage

$ myth input.css output.css
# Generated output.css from input.css

Why?

Myth lets you write pure CSS while still giving you the benefits of tools like LESS and Sass. You can still use variables and math functions, just like you do in preprocessors. It's like a polyfill for future versions of the spec.

Some of the features in CSS require runtime calculations, which neither Myth nor preprocessors handle, but what Myth does is let you write your code today in the future syntax, so that your code is future-proof. When browsers finally support these features you won't need to rewrite anything, just start using the cascade!

Taking plain CSS as an input also means you can use Myth to re-process anyone else's CSS (or another preprocessors output), adding the browser support you need, without having to re-write the code in a completely different syntax.

Myth is built with Rework so it's incredibly fast, and has a nice Javascript API in addition to the CLI. 

반응형
반응형

감옥에 있다 나오면 작은 것에 감사하게 된다.
언제든지 원할 때 산책하고 길을 건너고 상점에 들어가 신문을 사고
말하고 싶을 때 말하고 말하기 싫으면 말하지 않을 수 있다는 생각에,
자신을 스스로 통제할 수 있는 단순한 행위에...
자유로운 사람은 이런 것에 늘 감사하지 않는다.
사람은 속박을 당한 뒤에야 그런 것을 기쁘게 받아들인다.
- 넬슨 만델라, ‘나 자신과의 대화’에서

 

 

사소한 일에 감사할 줄 알고 그 마음을 표현할 때
그 순간부터 인생은 천국이 됩니다.
그러나 안타깝게도 소중한 것을 잃고 나서야
그 소중함을 깨닫게 되는 경우가 너무나 많습니다.
감사도 기술입니다.

반응형
반응형
'우리 영원히!'


그래서인지 우리는
'영원히'라는 말을 유난히도 좋아한다.
사랑하는 사람을 만났을 때도 영원히 사랑한다
하고, 우정을 나눌 때도 영원히 변치 말자 한다.
행복한 순간에는 그 순간이 영원하기를 바란다.
인간의 삶이 유한함을 알면서도 원래 있었던
영원한 시간을 누릴 수 있는 삶을
그리워하는 것이다.


- 한홍의《시간의 마스터》중에서 -


* 인생이 유한하기 때문에
영원을 더욱 꿈꾸며 사는지도 모르겠습니다.
한 번 정을 주면 죽을 때까지, 아니 죽어서도
영원하기를 꿈꿉니다. 돌처럼, 박제된 동물처럼
굳어진 채로 영원한 것이 아니라, 나무처럼
계속 자라면서 꽃처럼 철마다 새롭게
피어나면서 영원하기를 꿈꿉니다.
'우리 영원히!'



 

반응형

'생활의 발견 > 아침편지' 카테고리의 다른 글

새해에는...  (0) 2013.12.28
"아래를 내려다보지 말라"  (0) 2013.12.27
별이 빛나는 밤  (0) 2013.12.25
'참 좋은 당신'  (0) 2013.12.24
무당벌레  (0) 2013.12.23
반응형
별이 빛나는 밤


몸은 물먹은 솜처럼
피로했지만 그건 문제가 되지 않았다.
별들이 찬란한 창공 아래 세상에 감각을 열고
조용히 앉아 있는 것만큼 기분 좋은 일은 드물다.
달이 동쪽 하늘을 가로질러 빛나고 있었다.
더 많은 별들이 깜박이기 시작하면서
다이아몬드가 깔린 검은 벨벳처럼
하늘이 반짝였다.


- 다이앤 애커먼의《사랑의 백가지 이름》중에서 -


* 시인들은 말합니다.
우리 모두는 별에서 왔다고.
유대땅 '동방박사들'은 말합니다.
별빛따라 아기예수 나신 곳을 찾아왔노라고.
별은 우리의 고향입니다. 우리를 인도하는 빛입니다.
옹달샘에서도 별이 쏟아지는 밤, 하늘을 바라보면
기분이 좋아지고 마음이 차오릅니다.
다이아몬드가 가득찹니다.



 

반응형

'생활의 발견 > 아침편지' 카테고리의 다른 글

"아래를 내려다보지 말라"  (0) 2013.12.27
'우리 영원히!'  (0) 2013.12.26
'참 좋은 당신'  (0) 2013.12.24
무당벌레  (0) 2013.12.23
들꽃은 햇빛을 찾아 옮겨 다니지 않는다  (0) 2013.12.21
반응형

웹 페이지 성능 측정 사이트 주소

 

http://www.webpagetest.org/

 

페이지 성능을 측정하고, 해당 페이지의 문제점도 알려 주는 사이트 입니다.

우리가 이용중인 솔루션 Argos 같은 역할을 실시간으로 각 사이트 주소별로 해준다고 할까요.

 

반응형
반응형

Zepto Builder: A web based Zepto customizer

zeptobuilder

Zepto Builder will let you generate a custom version of Zepto that just includes the modules you need.

 

Getting started

After cloning (or downloading) the repo you must run npm install to fetch all dependencies, when this is done all Bower packages will automatically be downloaded and a browser build of Uglify will be created. Needless to say, for this to work you will need to have Node.js and Bower installed on your machine.

Grunt task

Grunt is used to create a distribution build. By running the default Grunt task it will optimize all resources and store them in the dist folder. The files located in this folder are prepared to be uploaded / deployed as is.

Under the hood

So, how does this tool actually work? Well, altough Zepto offers a CLI-based build tool I have decided to make it client-side only, based on DownloadBuilder. The process from selecting the modules to actually generating the build (and minify it) is:

  • all available Zepto module metadata (i.e. name, size and URL) is dynamically fetched from GitHub and cached (for now this is session based);
  • the module descriptions are mapped via a static JSON file (assets/json/modules.json) and are shown when hovering the table rows;
  • based on ones selection the modules will be fetched from GitHub and concatenated by DownloadBuilder
  • the minification process is handled by a browser build of Uglify
반응형
반응형

한 철학자는 독수리가 더 빨리, 더 쉽게 날기 위해
극복해야 할 유일한 장애물은 공기라고 말했다.
그러나 공기를 모두 없앤 진공 상태에서 새를 날게 하면
그 즉시 땅바닥으로 떨어져 아예 날 수 없게 된다.
공기는 비행하는데 저항이 되는 동시에 비행의 필수조건이다.
- 존 맥스웰

 

모터보트가 극복해야 할 장애물은
프로펠러에 부딪히는 물입니다.
그러나 그 저항 없이는 보트가 움직일 수 없습니다.
마찬가지로 인간의 삶에서도
장애물이 성공을 위한 필수조건이 됩니다.

 

반응형

+ Recent posts