macでwindowsが動くアレでもなく、マッチョな黒人に励まされながら踊るアレでもなく sassのfunctionをテストするためのフレームワーク。
もともとジャスミンというJavascriptのBDDテスト用のフレームワークがあり、 その書き方でsassのfunctionをテストできるようにしたものらしい
| # Frontend Ops | |
| ## Test Driven Stylesheets | |
| Multiple layers of Sass/CSS testing | |
| ### Syntax checking | |
| * Sass/Compass | |
| ### Sass Linting - coding standard compliance |
まずはサイトから、ImageOptim.appをダウンロードしましょう。
| // globals.js | |
| // https://gist.github.com/pocotan001/6305714 | |
| // Finding improper JavaScript globals | |
| (function() { | |
| var prop, cleanWindow, | |
| globals = new function globals() {}, | |
| body = document.body, | |
| iframe = document.createElement('iframe'), | |
| ignore = { |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
| // remove audio + video + stop all the downloadin’ | |
| // assumes $video and $audio are jQuery selectors for <video> and <audio> tags. | |
| var removeMedia = function () { | |
| _.each([$video, $audio], function ($media) { | |
| if (!$media.length) return; | |
| $media[0].pause(); | |
| $media[0].src = ''; | |
| $media.children('source').prop('src', ''); | |
| $media.remove().length = 0; | |
| }); |
| //define default values (best to put this in the default.styl file) | |
| base-font-size = 16 | |
| base-line-height = 24 | |
| //This is the useful part: it compares the given value to the base values and calculates the correct output | |
| font-size($fontValue = base-font-size, $baseFontValue = base-font-size, $baseLineValue = base-line-height) | |
| font-size $fontValue px | |
| font-size ($fontValue / $baseFontValue) rem | |
| line-height ($fontValue / $baseFontValue) * $baseLineValue | |
| line-height ($baseLineValue/$baseFontValue) * ($fontValue / $baseFontValue) rem |
| 原著者: | Adrian Holovaty |
|---|---|
| 原文: | Why I left Heroku, and notes on my new AWS setup |
金曜日、私は Heroku から Amazon Web Services(AWS) を直接使うように Soundslice を移行しました。私はこの変更ができてとても、そうとても嬉しくて、私がどうやったかということと、もし皆さんが同じような立場だったら何故それを検討すべきかということについて広く伝えたいと思います。