- mitsuruog
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
" set encoding=utf-8 | |
scriptencoding utf-8 | |
" ↑1行目は読み込み時の文字コードの設定 | |
" ↑2行目はVim Script内でマルチバイトを使う場合の設定 | |
" Vim scritptにvimrcも含まれるので、日本語でコメントを書く場合は先頭にこの設定が必要になる | |
"---------------------------------------------------------- | |
" NeoBundle | |
"---------------------------------------------------------- | |
if has('vim_starting') |
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
# Test::Unit | |
require 'test/unit' | |
class TestAdd < Test::Unit::TestCase | |
def setup;end | |
def test_add | |
assert_equal 5, add(2,2) | |
end | |
end |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<!-- Required meta tags --> | |
<meta charset="utf-8" /> | |
<meta | |
name="viewport" | |
content="width=device-width, initial-scale=1, shrink-to-fit=no" | |
/> |
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
function add ([int]$a, [int]$b) { | |
$sum = $a + $b | |
$sum | |
} | |
Describe "TestAdd" { | |
It "合計を返す" { | |
$result = add 2 2 | |
$result | Should Be 4 | |
} |
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
const assert = require("assert"); | |
try { | |
assert.strictEqual(5, add(2, 2)); | |
console.log("ok"); | |
} catch (err) { | |
console.log(err); | |
} | |
function add(a, b) { |
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
# %% | |
# Doctest | |
import doctest | |
def add(a, b): | |
"""Return the sum of a and b. | |
>>> add(2, 2) | |
4 | |
""" |
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
set encoding=utf-8 | |
scriptencoding utf-8 | |
" ↑1行目は読み込み時の文字コードの設定 | |
" ↑2行目はVim Script内でマルチバイトを使う場合の設定 | |
" Vim scritptにvimrcも含まれるので、日本語でコメントを書く場合は先頭にこの設定が必要になる | |
"---------------------------------------------------------- | |
" NeoBundle | |
"---------------------------------------------------------- | |
if has('vim_starting') |
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
# docker-py / docker-compose installed through pip fails with | |
# SSL error: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590) | |
# At the moment simplest solution is to use python 2.7.6 natively installed | |
$ brew uninstall python | |
# check follwoing commands if everything is ok |
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
{ | |
"AWSTemplateFormatVersion": "2010-09-09", | |
"Description": "VPC knowhow template", | |
"Parameters": { | |
"KeyName": { | |
"Description": "Name of an existing EC2 KeyPair to enable SSH access to the instances", | |
"Type": "String", | |
"MinLength": "1", | |
"MaxLength": "64", | |
"AllowedPattern": "[-_ a-zA-Z0-9]*", |
NewerOlder