Skip to content

Instantly share code, notes, and snippets.

object Main extends App{
class Hoge
def createValue : Hoge = new Hoge
implicit def toInt(x:Hoge) : Int = 3
implicit def toString(x:Hoge) : String = "pa"
val a : Int = createValue
println(a)
val b : String = createValue
class Number {}
class Zero : Number {}
class Succ<N:Number> : Number {}
typealias One = Succ<Zero>
typealias Two = Succ<Succ<Zero>>
typealias Three = Succ<Succ<Succ<Zero>>>
class Eq<S: Number, T: Number> {}
class Add<S: Number, T:Number> : Number {}

DOCS LIVES MATTER

(This is a Google translation of the original Japanese sentence.)

In recent years, the number of OSS communities expressing #BlackLivesMatter has increased in connection with the #BlackLivesMatter movement. Some may argue that OSS has such a political opinion. However, what I would like to pay attention to here, and what I would like to point out is to delete the website page of the document and replace it with the content of #BlackLivesMatter's assertion. For example, it happened with webpack. webpack/webpack.js.org#3762

Let me be frank with you. it's awful.

Official website pages should be written about the content of their OSS products, not as a place of voice. The user did not come to see a statement of political opinion, but came to know the contents of the OSS product. It cuts off such user experiences and imposes their political opinions. it's awful.

import os
# リネーム後のラベル
label = "label";
# 指定されたフォルダのパス
folder_path = 'C:\\Users\\example\\Documents\\files'
# フォルダ内のファイル名を取得
file_names = os.listdir(folder_path)
import java.util.stream.IntStream;
import java.util.Arrays;
// Board
final int BoardMargin = 50;
final int BoardX = BoardMargin;
final int BoardY = BoardMargin;
final int BoardWidth = 400;
final int BoardHeight = 400;