-
名前(任意)
- Shougo
-
Twitter or Facebookのアカウント or HN等
-
@ShougoMatsu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!!! | |
html | |
head | |
title= title | |
link(rel='stylesheet', href='/bootstrap.css') | |
link(rel='stylesheet', href='/bootstrap-responsive.css') | |
body | |
div.navbar.navbar-fixed-top | |
div.navbar-inner |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Requires the most current version of Chrome Canary | |
* | |
* Demonstrates out of: | |
* | |
* v8Intl.DateTimeFormat([ locale ], options ).format() | |
* | |
* | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# source : http://code.google.com/p/natvpn/source/browse/trunk/stun_server_list | |
# A list of available STUN server. | |
stun.l.google.com:19302 | |
stun1.l.google.com:19302 | |
stun2.l.google.com:19302 | |
stun3.l.google.com:19302 | |
stun4.l.google.com:19302 | |
stun01.sipphone.com | |
stun.ekiga.net |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" filetype が typescript の場合にのみ動作する neocomplcache プラグイン | |
" jsx_complete.vim を参考にしてます. | |
" https://github.com/osyo-manga/neocomplcache-jsx/blob/master/autoload/neocomplcache/sources/jsx_complete.vim | |
let s:source = { | |
\ 'name': 'typescript_complete', | |
\ 'kind': 'ftplugin', | |
\ 'filetypes': { 'typescript': 1 }, | |
\ } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
params[:upload_file].tap do |upload_file| | |
file = upload_file.tempfile.tap | |
master_class = upload_file.original_filename.sub('.csv', '').classify | |
master_class.delete_all | |
csv = CSV.parse(file.read, headers: true) | |
csv.each do |row| | |
row = row.to_hash.with_indifferent_access | |
row.delete(nil) | |
if row[:id] | |
master_class.new(row).tap {|record| |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on run argv | |
set input_file to POSIX file (item 1 of argv) | |
set output_path to item 2 of argv | |
-- TODO: add some error handling :) | |
-- make sure output folder exists | |
do shell script "mkdir -p " & output_path | |
-- drop input file on Slicy app |
ページロードのパフォーマンス改善に関するテクニックについての情報はこの数年で少し落ち着いて来た。そこで次はロードの後のパフォーマンスについて。
Addy Osmani氏によるGoogle Chromeの開発ツールを使ったスクロール速度の改善手法について。レンダリングエンジンの仕組み、そして開発ツールを使った問題の発見と、修正方法、ついでにワークフローまでついているというすばらしい記事。
JavaScriptにおけるオブザーバデザインパターンの実装に関するティップス。記事の例ではBackbone.jsを利用してはいるが、オブザーバパターンを使う場合に全般当てはまるアドバイスなので、是非。
OlderNewer