MariaDB のコンテナは以下の手順で組める。
本当は Oracle MySQL で手順を作りたかったが途中の MariaDB に書き換えたバージョン。
- README.md は途中なので割愛
- (以下手順不要だけど) mysql_pubkey.asc はこのURLの -> http://dev.mysql.com/doc/refman/5.5/en//checking-gpg-signature.html
import java.util.Optional; | |
public class StringSwitch { | |
public static void main(String[] args) { | |
String text = null; | |
switch(Optional.ofNullable(text).orElse("")){ | |
case "a": | |
System.out.println("AA"); | |
break; | |
case "b": |
# -*- coding: utf-8 -*- | |
from datetime import datetime | |
@contextlib.contextmanager | |
def mock_datetime_now(module_path, return_value): | |
""" | |
適当なモジュールの datetime.now() を mock し、適当な日付を返すようにする。 | |
>>> from datetime import datetime |
dummy = object() | |
def each_slice(lst, number, fill=dummy): | |
typ = type(lst) | |
lower, upper = 0, number | |
while True: | |
# slice 取ったときに範囲外なら空のリストがとれる | |
sliced = lst[lower:upper] | |
if sliced: | |
if fill == dummy or len(sliced) == number: |
class PythonVirtualenv < Formula | |
homepage "" | |
url "https://pypi.python.org/packages/source/v/virtualenv/virtualenv-12.0.5.tar.gz" | |
version "12.0.5" | |
sha1 "ae93636c4b6fc55d6e7d84c628f5c4cd59c5129b" | |
depends_on :python if MacOS.version <= :snow_leopard | |
def install | |
ENV.prepend_create_path "PYTHONPATH", libexec/"lib/python2.7/site-packages" |
MariaDB のコンテナは以下の手順で組める。
本当は Oracle MySQL で手順を作りたかったが途中の MariaDB に書き換えたバージョン。
#! /usr/bin/env python3.4 | |
# -*- coding: utf-8 -*- | |
import sys | |
import json | |
import logging | |
import random | |
import urllib.request | |
# logger の初期化 |
$ /Users/tomo/Applications/MacVim.app/Contents/MacOS/Vim --version | |
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Dec 4 2014 19:05:45) | |
MacOS X (unix) version | |
Included patches: 1-527 | |
Compiled by [email protected] | |
Huge version with MacVim GUI. Features included (+) or not (-): | |
+acl +find_in_path +mouse_netterm +syntax | |
+arabic +float +mouse_sgr +tag_binary | |
+autocmd +folding -mouse_sysmouse +tag_old_static | |
+balloon_eval -footer +mouse_urxvt -tag_any_white |
OS: Windows 7 Home Premium x64 | |
Perl (perl -V): | |
Summary of my perl5 (revision 5 version 18 subversion 2) configuration: | |
Platform: | |
osname=MSWin32, osvers=6.1, archname=MSWin32-x64-multi-thread | |
uname='' | |
config_args='undef' | |
hint=recommended, useposix=true, d_sigaction=undef |
<?xml version="1.0" encoding="utf-8"?> | |
<Project | |
DefaultTargets="run" | |
xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
<PropertyGroup> | |
<ProjectName>MsBuild Sample01</ProjectName> | |
<!-- load MSBuild.ExtensionPack --> | |
<RootDir>$(MSBuildProjectDirectory)</RootDir> |
STARTTLS=client, relay=smtp.gmail.com, version=TLSv1/SSLv3, verify=FAIL, cipher=ECDHE-RSA-AES128-GCM-SHA256, bits=128/128 |