Get it from the App Store.
In XCode's Preferences > Downloads you can install command line tools.
<?php | |
class FizzBuzz { | |
public function converts($numbers) | |
{ | |
$self = $this; | |
return __::map($numbers, function($n) use($self) { | |
return $self->convert($n); | |
}); | |
} |
class RomanNumber < Struct.new(:to_s, :to_i) | |
# TODO 1-3999まで | |
def self.initWithInt(int) | |
str = to_roman_str(int) | |
RomanNumber.new(str, int) | |
end | |
def self.initWithStr(str) | |
int = to_roman_int(str) |
take2 は https://github.com/haru01/log/blob/master/pattern_sheed.md
TDDを 初心者が熟練者になって、現場で実践していくコツを書いていきます。 すべて実施する必要はありません。上から順に実施する必要もありません。 現状の診断や、自分の状況に合いそうなものを複数ピックアップして、 ベイビーステップで個人やチームの学習と成長の物語を描く道具として使われることを想定しています。
まだ未完です。ガンガン変わっていきます。 :p
[alias] | |
co = checkout | |
st = status -s | |
pr = pull --rebase | |
c = commit | |
a = add | |
al = add -A . | |
au = add -u | |
ap = add -p | |
b = branch |
// 学習用 | |
// * See Also http://ookami86.github.io/event-sourcing-in-practice/#how-eventsourcing-works/04-restoring-objects-5.md | |
// * http://martinfowler.com/eaaDev/EventSourcing.html | |
// | |
function BanckingAccount(id, owner, balance, version) { | |
this.id = id || 0; | |
this.owner = owner || ""; | |
this.balance = balance || 0; | |
this.version = version || 0; | |
} |
'use strict'; | |
var fetch = require('node-fetch'); | |
var assert = require('power-assert'); | |
function fetchPost() { | |
return fetch("http://jsonplaceholder.typicode.com/posts/1") | |
.then(function(res) { | |
return res.json(); | |
}).catch(function(e) { |
require 'natto' | |
word_counters = {} | |
nm = Natto::MeCab.new | |
Dir::entries(".").select { |f| f.match /^ch.*\.re$/}.each do |file| | |
File.open(file, "r") do |f| | |
f.each_line do |line| | |
nm.parse(line) do |n| | |
word_counters[n.surface] = word_counters[n.surface] ? word_counters[n.surface] + 1 : 1 |
#include "Ultrasonic.h" | |
#include "rgb_lcd.h" | |
#include <Wire.h> | |
rgb_lcd lcd; | |
Ultrasonic ultrasonic(7); | |
void setup() | |
{ | |
lcd.begin(16, 0); |