まっさらにするんじゃなくてとりあえずDualBootな
- どう見ても基本Partitionが4つあったので、Recovery PatitionをBackup
- この辺で
- この辺のPrepareを実行
- 一旦そのままUbuntuのInstallをトライ(partitionがあれだから駄目なのでは?と思ったら入った)
# coding: utf-8 | |
from flask import Flask, request, jsonify | |
import dataclasses | |
import typing | |
| |
| |
app = Flask(__name__) | |
| |
| |
def dict_to_dataclass(k, d: dict, typechecker: typing.Callable[[str, typing.Any, typing.Any],None], parent_fields=None): |
import arrow.core.* | |
import com.squareup.moshi.JsonAdapter | |
import com.squareup.moshi.JsonReader | |
import com.squareup.moshi.JsonWriter | |
import com.squareup.moshi.Moshi | |
import java.lang.reflect.ParameterizedType | |
import java.lang.reflect.Type | |
class OptionJsonAdapterFactory : JsonAdapter.Factory { | |
override fun create(type: Type, annotations: MutableSet<out kotlin.Annotation>, moshi: Moshi): JsonAdapter<*>? { |
// using 0.9.0 | |
import arrow.Kind | |
import arrow.core.Either | |
import arrow.core.Try | |
import arrow.core.left | |
import arrow.core.right | |
import arrow.data.EitherT | |
import arrow.effects.ForIO | |
import arrow.effects.IO |
まっさらにするんじゃなくてとりあえずDualBootな
何回もやらないので備忘録的に
/* | |
* Copyright (C) 2014 Square, Inc. | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
fun hoge(i : Int) = if(i % 3 == 0 ) null else i | |
val sum = (1 .. 10).map(::hoge).filterNotNull().reduce{ a, b -> a + b} | |
println(sum) | |