Skip to content

Instantly share code, notes, and snippets.

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;
import os
# リネーム後のラベル
label = "label";
# 指定されたフォルダのパス
folder_path = 'C:\\Users\\example\\Documents\\files'
# フォルダ内のファイル名を取得
file_names = os.listdir(folder_path)

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.

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 {}
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
object Main extends App{
trait Addable[T] {
def add(a:T) : T
}
implicit object CreatableInt extends Addable[Int]{
def add(a:Int) : Int = a + 3
}
implicit object CreatableString extends Addable[String] {
trait Creatable[T] {
def create : T
}
object Main extends App{
implicit object CreatableInt extends Creatable[Int] {
def create : Int = 3
}
class Symbol
def method_missing(name, *args)
self.to_s.method(name).call(*args)
end
end
puts :hello.start_with "he"
@NobukazuHanada
NobukazuHanada / fizzbuzz.js
Last active September 3, 2015 04:26 — forked from kazuho/fizzbuzz.js
fizz = function f(n){
fizz = function(n){
fizz = function(n){
fizz = f;
return "Fizz";
};
return n;
};
return n;
};
イベントページ関係
* イベントページの内容を修正する
ソースコードリーティング会関係
* 題材を決定する
* コードリーディングのポイントを作成する
* ソースコードリーディングに関しての資料作り