Skip to content

Instantly share code, notes, and snippets.

View shiwano's full-sized avatar
💭
😇

Shogo Iwano shiwano

💭
😇
View GitHub Profile
@dirkk0
dirkk0 / layout.jade
Created February 8, 2012 16:54
layout.jade for Twitters Bootstrap 2 (kudos httpwww.andyjarrett.co.ukblogindex.cfm20111221layoutjade-for-Twitters-Bootstrap )
!!!
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
@rwaldron
rwaldron / datetimeformat.js
Created May 21, 2012 19:56
Demonstrate DateTimeFormat options for a variety of Locales
/**
* Requires the most current version of Chrome Canary
*
* Demonstrates out of:
*
* v8Intl.DateTimeFormat([ locale ], options ).format()
*
*
*/
@Shougo
Shougo / shibuya-el-position-paper.md
Created August 21, 2012 13:41 — forked from ainame/shibuya-el-position-paper.md
shibuya.elのポジションペーパーです。githubアカウントをお持ちの方はforkしてお使いください。

Shibuya.el#1 ポジションペーパー

Personal

  • 名前(任意)

    • Shougo
  • Twitter or Facebookのアカウント or HN等

  • @ShougoMatsu

" 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 },
\ }
@tosik
tosik / controller.rb
Created November 8, 2012 08:45
CSVがステキに見える!
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|
@studiomohawk
studiomohawk / five-2013-02-08.md
Created February 8, 2013 00:12
CSS Radar @ Twitter / 2013.02.08 Friday Edition

CSS Radar - 2013/02/08

ページロードのパフォーマンス改善に関するテクニックについての情報はこの数年で少し落ち着いて来た。そこで次はロードの後のパフォーマンスについて。
Addy Osmani氏によるGoogle Chromeの開発ツールを使ったスクロール速度の改善手法について。レンダリングエンジンの仕組み、そして開発ツールを使った問題の発見と、修正方法、ついでにワークフローまでついているというすばらしい記事。

JavaScriptにおけるオブザーバデザインパターンの実装に関するティップス。記事の例ではBackbone.jsを利用してはいるが、オブザーバパターンを使う場合に全般当てはまるアドバイスなので、是非。

fs = require "fs"
eco = require 'eco'
RPC = {}
header = '''
class Struct
class Request
'''
type_template = '''

花火~ 最高な俺たちと糞コードの海

written by mizchi at 小物エンジニアの会.

最高の夏の花火について 花火

自己紹介

@michaelbartnett
michaelbartnett / LICENSE.txt
Last active October 17, 2022 10:29
Tuple implementation for use with Unity3d
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
@0mg
0mg / twoauth.md
Created March 30, 2013 14:32
OAuth 対応 Twitter クライアント作成メモ

OAuth 対応 Twitter クライアント作成メモ

  • 前提: OAuth version 1.0a, Twitter API 1.1

OAuth 認証を通じてツイートするのに必要なたった 1 つのこと

リクエストヘッダに Authorization フィールドをセットする

OAuth 認証を通じてツイートするためには、API に対して POST する際、リクエストヘッダに Authorization フィールドを含める必要がある。