-
名前(任意)
- 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
" 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| |
ページロードのパフォーマンス改善に関するテクニックについての情報はこの数年で少し落ち着いて来た。そこで次はロードの後のパフォーマンスについて。
Addy Osmani氏によるGoogle Chromeの開発ツールを使ったスクロール速度の改善手法について。レンダリングエンジンの仕組み、そして開発ツールを使った問題の発見と、修正方法、ついでにワークフローまでついているというすばらしい記事。
JavaScriptにおけるオブザーバデザインパターンの実装に関するティップス。記事の例ではBackbone.jsを利用してはいるが、オブザーバパターンを使う場合に全般当てはまるアドバイスなので、是非。
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
fs = require "fs" | |
eco = require 'eco' | |
RPC = {} | |
header = ''' | |
class Struct | |
class Request | |
''' | |
type_template = ''' |
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
This is free and unencumbered software released into the public domain. | |
Anyone is free to copy, modify, publish, use, compile, sell, or | |
distribute this software, either in source code form or as a compiled | |
binary, for any purpose, commercial or non-commercial, and by any | |
means. | |
In jurisdictions that recognize copyright laws, the author or authors | |
of this software dedicate any and all copyright interest in the | |
software to the public domain. We make this dedication for the benefit |
OlderNewer