家計簿アプリの入力方法になじめないので、 ぼくにもっともなじむ家計簿アプリの入力方法のコンセプトを示したい。
誰かがきちんと実装してくれるといいな。
# mithril-b-html-plus | |
# | |
# e.g. | |
# ```coffee-script | |
# compile = require './mithril-b-html-plus' | |
# template = compile ''' | |
# <p | |
# @b-text message | |
# ''' | |
# template message: 'Hello!' |
// 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'); |
git commit --allow-empty |
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) { |
#!/bin/bash | |
# 前提: | |
# - git がインストールされている | |
# - backlog-cli がインストールされている | |
# - features/<チケット番号> なブランチで作業している | |
# - <project>/ ディレクトリ配下で作業しており、 | |
# Backlogに<PROJECT>プロジェクトがある | |
project_dir=$(cd $(git rev-parse --show-toplevel);pwd) |