$ ruby --version
ruby 2.3.3p222 (2016-11-21 revision 56859) [x86_64-darwin16]
$ bundle list | grep kitchen
* kitchen-ansible (0.45.9)
* kitchen-vagrant (1.0.1)
* test-kitchen (1.15.0)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.. | |
.::::. | |
___________ :;;;;:`____________ | |
\_________/ ?????L \__________/ | |
|.....| ????????> :.......' | |
|:::::| $$$$$$"`.:::::::' , | |
,|:::::| $$$$"`.:::::::' .OOS. | |
,7D|;;;;;| $$"`.;;;;;;;' .OOO888S. | |
.GDDD|;;;;;| ?`.;;;;;;;' .OO8DDDDDNNS. | |
'DDO|IIIII| .7IIIII7' .DDDDDDDDNNNF` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 問題: コンパイルエラーもしくは実行時警告になる testX 関数をすべて答えてください。 | |
import XCTest | |
class SE0176PlaygroundTests: XCTestCase { | |
func test1() { | |
struct ExampleStruct { | |
mutating func assignedBy(_ block: () -> ExampleStruct) { | |
self = block() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" NeoBundle ---------------------------------------------------------------- {{{ | |
" call neobundle#begin(___) ... call neobundle#end() の間に置いてください | |
" Vim でコマンドを実行して結果を表示するプラグイン「QuickRun」をインストール | |
NeoBundle 'thinca/vim-quickrun' | |
" テストを実行中、vimの動作をブロックしないようにするために「vimproc」をインストール | |
NeoBundle 'Shougo/vimproc' | |
" -------------------------------------------------------------------------- }}} | |
" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{!(number|boolean)} | |
{!Object} | |
{!number|!string} | |
{!{myNum: number}} | |
{"foo.bar.baz"} | |
{'foo.bar.baz'} | |
{(Array.<string>|Object.<string, ?>)} | |
{(Array|Object.<string, ?>)} | |
{(Element|Object|Document|Object.<string, (string|function(!jQuery.event=))>)=} | |
{(Error|function(): Error)} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
"""モンティ・ホール問題のシミュレーションで代表的な戦略の勝率を計算する.""" | |
__author__ = 'Orga Chem <orga.chem.job@gmail.com>' | |
__version__ = '0.0.1' | |
__date__ = '25 January 2014' | |
import random |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var StopIteration = Error('STOP_ITERATION'); | |
var util = { | |
array: { | |
clone: function(arr) { | |
var clone = []; | |
Array.prototype.push.apply(clone, arr); | |
return clone; | |
} | |
}, |
-
21文字。妙にams.jsに引っ張られた回答。たぶん
|0
を使いたかっただけ。反省。i%15?i%5?!(i%3)|0:2:3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Range = function(start, end) { | |
[this.start, this.end] = start <= end ? [start, end] : [end, start]; | |
}; | |
Range.prototype.__iterator__ = function() { | |
for (var i = this.start; i <= this.end; i++) yield i; | |
}; | |
for (var i in new Range(1, 100)) { | |
console.log(i % 3 ? i % 5 ? i : 'Buzz' : i % 5 ? 'Fizz' : 'FizzBuzz'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_._ | |
,iiiii:, | |
:i:::::::i. | |
::::::::::::. | |
':.::::.:::;.;_ | |
,,;;;;,,',iEEI".:88BBBBBBbb:,_ | |
..;;;;;;:',;EEE?".:BBBBBBBBBBBBBB8Eb._ | |
.:::::::',fIIIII'.?8888888888888999999EE9b. | |
.::::::'.??????'_??EE8888888888888888EEEEEEE?: | |
::::::',:??:??:',??EEEEEEEEEEEEEEEEEEEEEEEEEEE?:. |