Skip to content

Instantly share code, notes, and snippets.

@taise
taise / mini_map.html
Created August 5, 2012 16:29
Mini map to assist the scroll
<!DOCTYPE html>
<html>
<head>
<title>Eurekker</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="Content-Style-Type" content="text/css">
<meta http-equiv="Content-Script-Type" content="text/javascript">
<link type="text/css" href="jquery/css/smoothness/jquery-ui-1.8.22.custom.css" rel="stylesheet">
<script type="text/javascript" src="jquery/js/jquery-1.7.2.min.js"></script>
@taise
taise / 手法の基礎.txt
Created September 25, 2012 14:28
The Process of Software Architecting chapter.3
第三章 手法の基礎
<概要>
ソフトウエア開発プロセスについて、ウォーターフォール型、反復型、
アジャイル型を例に、開発技法とプロセスの違いを挙げて説明している。
   ウォーターフォール  => ワーク・プロダクト志向 (成果物が重要)
   反復型        => 結果志向 (システムの提供する価値が重要)
   アジャイル      => プロセス志向 (システムを提供する手法が重要)
@taise
taise / mask_xml.rb
Created October 7, 2012 03:45
masking xmldata
#! ruby
# coding: utf-8
#
# Masking each tag in the XML data
# - specifies some masking tags in YAML file
#
# todo
# - masked XML output to another file
# - mask pattern: for each some characters
# - check the xPath read from yaml file
1.納期遅れと予算オーバ
いくら不足の事態へ備えて計画を練り、見積もりを出しても、
実生活では、とてもがっかりすること(根本的な要件変更など)が起きるもの。
プロジェクト・メンバーは疲弊し、納期を守ることが難しくなる。
また、納期がのびるということは、それだけ予算を圧迫する。
開発による収益はなくなり、価値のないソフトウェアとなる。
2.見当違いのソフトウェア
私たちの問題を解決してくれないソフトウェアなど、誰も使わない。
見当違いのソフトウェアを提供するくらいなら、納期をずらしてでも
@taise
taise / ripple.html
Created January 3, 2013 05:05
HTML5+Javascript Drawing a circle using canvas.
<script>
// 波紋描画
function ripple(){
// 変数の初期設定
var timer;
/* canvasの取得 */
var canvas = document.getElementById('canvas');
/* 2Dコンテキスト */
var ctx = canvas.getContext('2d');
ctx.strokeStyle = 'Green'; // 線の色
require 'rubygems'
require 'active_record'
ActiveRecord::Base.establish_connection(:adapter => 'sqlite3', :database => 'db/development.sqlite3')
class Order < ActiveRecord::Base
end
order = Order.find(1)
order.nase = "hogehoge"
@taise
taise / ricty_install.txt
Last active December 11, 2015 22:49
文字フォントRictyのインストール方法
インストール準備
1. brewをインストールする
ruby -e "$(curl -fsSkL raw.github.com/mxcl/homebrew/go)"
2. Xcodeをインストールする
=> バージョンによらず開発者登録が必要となる。
case1). Lionの場合はgoogleで検索してすぐ出てくるXcodeをインストール
https://developer.apple.com/xcode/
1.なぜテーブルを正規化するか
 1) データ管理/修正の一元化
2) one to many(1:n)の関係表現
3) データの汎化
4) データサイズの節約
2.人工キー利用時の注意点
同一データが二重登録された場合、
 それが正しく作成されたものなのか、誤って作成されたものなのか、
@taise
taise / map_reduce.rb
Created February 27, 2013 03:33
MapReduce in Ruby
#! ruby
# coding: utf-8
words = {}
total_words_size = 0
sentence = open("something_english.txt").read.gsub(/\W+/, ' ').split(' ')
words = {}
words = sentence.map{|word| word }
@taise
taise / start_vim.md
Last active December 14, 2015 12:39
vim勉強会用資料

Start vim

Vimというエディタ

vimは、文字を効率的に編集するためのエディタです。
そのため、いわゆるメモ帳や他のテキスト・エディタとは、操作が大きく異なっています。
試しに使ってみようと立ち上げて文字を打っても、打った文字が表示されなかったり、 思った通りの位置にカーソルが動かなかったりして困った経験をお持ちかもしれません。

ではなぜVimを使うのか。