Skip to content

Instantly share code, notes, and snippets.

View satomixx's full-sized avatar

Satomi Suyama satomixx

View GitHub Profile
@Songmu
Songmu / .slate.js
Last active December 14, 2015 15:39
S.on('appActivated', function (event, app) {
S.log('appActivated:' + app.name());
});
@studiomohawk
studiomohawk / five-2013-01-30.md
Created January 30, 2013 00:29
CSS Radar @ Twitter / 2013.01.30 Wednesday Edition

CSS Radar - 2013/01/30

バックエンドに限らず、フロントエンドにも1つの大きなライブラリを利用するより、小さなライブラリ(コンポーネント)からビルドしていくスタイルが一般的になりつつある。コンポーネントには 1) ビルドプロセス、2) 依存関係の解消、3) パッケージマネージャの3つのツールが必要になる。
記事ではTJ Holowaychukのcomponent、TwitterのBowerEnderJamvoloの役割をその3つのツールの観点から分析していく。

パフォーマンス改善の鍵となるのは80%がフロントエンドにある。ページロードの速度改善はよく議論されるが、パフォーマンスにはもう1段先の話がある。それがレンダリングに関わるパフォーマンス。特にシングルページアプリケーションと呼ばれるようなウェブサイトでは初期のロード時間よりもこちらのほうが重要になるケースが多い。記事ではそのレンダリングパフォーマンスの中でもレイアウトに関するチューニングについて紹介している。

@mhenrixon
mhenrixon / _form.html.haml
Created May 18, 2011 11:02
A complete sample of how to perform nested polymorphic uploads in rails using carrierwave
=semantic_form_for [:admin, @dog], validate: true, html: {multipart: true} do |f|
=f.inputs do
=f.input :name
=f.input :kennel_name
=f.input :birthdate
=f.input :gender, as: :radio, collection: {'Tik' => 'F', 'Hane' => 'M'}
=f.input :father_id, as: :select, collection: @dogs
=f.input :mother_id, as: :select, collection: @bitches
=f.semantic_fields_for :pictures do |pic|