Skip to content

Instantly share code, notes, and snippets.

View shiwano's full-sized avatar
💭
😇

Shogo Iwano shiwano

💭
😇
View GitHub Profile
@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|
" 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 },
\ }
@zziuni
zziuni / stuns
Created September 18, 2012 08:05
STUN server list
# 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
@Gab-km
Gab-km / github-flow.ja.md
Last active April 25, 2024 04:01 — forked from juno/github-flow.ja.md
GitHub Flow (Japanese translation)
@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

@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()
*
*
*/
@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