Skip to content

Instantly share code, notes, and snippets.

@taise
taise / .tmux.conf
Last active December 14, 2015 18:19
# Prefix
set-option -g prefix C-t
# window status bar setting
set -g status-interval 10
# default
set -g status-bg colour007
set -g status-fg colour000
# left
set -g status-left-fg colour000
@taise
taise / http_get.rb
Created March 15, 2013 04:58
Net::HTTP::Get sample
require 'net/http'
query_ary = ['/accounts', '/information', '/requests', '/pays', '/changes']
http = Net::HTTP.new('localhost', 3000)
query_ary.each do |query|
req = Net::HTTP::Get.new(query + '/1.json')
res = http.request(req)
# Path to your oh-my-zsh configuration.
ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
#ZSH_THEME="robbyrussell"
ZSH_THEME="agnoster"
@taise
taise / .vimrc
Last active December 15, 2015 07:59
" for neo bundle
set nocompatible
filetype off
if has('vim_starting')
set runtimepath+=~/.vim/bundle/neobundle.vim/
endif
call neobundle#rc(expand('~/.vim/bundle/'))
@taise
taise / index.html
Last active December 17, 2015 12:09
jsCafe7(jQuery/Backbone.js/Parse/node.js/bower/yeoman)
<!doctype html>
<head>
<meta charset="utf-8">
<title>jsCafe Todo</title>
<meta name="description" content="jsCafe Todo">
<meta name="viewport" content="width=device-width">
<script type="text/javascript" src="http://underscorejs.org/underscore.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script type="text/javascript" src="http://www.parsecdn.com/js/parse-1.2.7.min.js"></script>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<script type="text/javascript" src="http://code.jquery.com/jquery-2.0.1.min.js"></script>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js?2.3.0"></script>
<style type="text/css">
svg {
@taise
taise / Webworker.md
Last active December 19, 2015 21:08

How to use web workers

Point

登場人物

  • UIスレッド (メインスレッド)
  • worker (ワーカースレッド)

処理の流れ

@taise
taise / MySQLtoMongoDB.md
Last active December 20, 2015 02:58
MySQL data import to MongoDB by ruby.

MySQL

How to use mysql2

gem install mysql2
require 'mysql2'

heroku command

gem install heroku --no-ri --no-rdoc
heroku

もしherokuコマンドが正しくaliasされていないというエラーが出た場合は、 端末を立ち上げなおすと、herokuコマンドを認識してくれる。

heroku login

1つの変数の記述統計

変数の要約

  • 数値要約 ・・・ データの持つ特徴を1つの数値にまとめる
  • ベクトル ・・・ データの集合
c("cat", "dog", "human")