Skip to content

Instantly share code, notes, and snippets.

View bouzuya's full-sized avatar

bouzuya bouzuya

View GitHub Profile
@bouzuya
bouzuya / mithril-b-html-plus.coffee
Last active August 29, 2015 09:32
mithril-b-html-plus
# mithril-b-html-plus
#
# e.g.
# ```coffee-script
# compile = require './mithril-b-html-plus'
# template = compile '''
# <p
# @b-text message
# '''
# template message: 'Hello!'
@bouzuya
bouzuya / todo.js
Created February 21, 2014 16:08
a hubot script. robot.brain example
// Description:
// None
//
// Dependencies:
// None
//
// configuration:
// None
//
// commands:
var expect = require('chai').expect;
describe('permit', function() {
var f = function(params, keys) {
return keys.reduce(function(result, key) {
if (typeof params[key] !== 'undefined') result[key] = params[key];
return result;
}, {});
};
var expect = require('chai').expect;
describe('', function() {
it('', function() {
var f = function() {};
expect(f).to.have.property('prototype');
expect(f).to.have.deep.property('prototype.constructor', f);
var m = function() {};
var expect = require('chai').expect;
var request = require('supertest');
var express = require('express');
describe('nested express', function() {
it('works', function(done) {
// routes
var routes = express();
routes.get('/', function(req, res) {
res.send('Hello');
@bouzuya
bouzuya / gist:9944964
Created April 2, 2014 22:53
空コミットを作る
git commit --allow-empty
@bouzuya
bouzuya / .tmux.conf
Created April 7, 2014 07:00
tmux 1.9aのsplit-windowでカレントディレクトリが現在のペインと同じになってくれない問題に対応するための設定
bind-key '"' split-window -v -c '#{pane_current_path}'
bind-key % split-window -h -c '#{pane_current_path}'
// Example:
// var catModel = require('./cat');
// var Cat = catModel();
// var cat = new Cat({ name: 'mike' });
// cat.say(); //=> myao! i'm mike!
//
// var mongoose = require('mongoose');
// catModel({ mongoose: new mongoose.Mongoose() });
var defineModel = function(mongoose, modelName, defineSchema) {
@bouzuya
bouzuya / ticket.sh
Created April 11, 2014 03:03
現在のブランチに対応するBacklogチケット件名を表示するスクリプト
#!/bin/bash
# 前提:
# - git がインストールされている
# - backlog-cli がインストールされている
# - features/<チケット番号> なブランチで作業している
# - <project>/ ディレクトリ配下で作業しており、
# Backlogに<PROJECT>プロジェクトがある
project_dir=$(cd $(git rev-parse --show-toplevel);pwd)

kakei.bouzuya.net

家計簿アプリの入力方法になじめないので、 ぼくにもっともなじむ家計簿アプリの入力方法のコンセプトを示したい。

誰かがきちんと実装してくれるといいな。

コンセプト