Skip to content

Instantly share code, notes, and snippets.

Avatar

Nekoyuki Nekoyuki

View GitHub Profile
@Nekoyuki
Nekoyuki / java_ArrayList_sample.java
Last active Dec 15, 2019
java/ ArrayList sample
View java_ArrayList_sample.java
import java.util.*;
import java.lang.reflect.*;
public class Main {
// ArrayList outside of main()
static ArrayList<String> list2 = new ArrayList<>();
static{
list2.add("Hige");
list2.add("Hage");
@Nekoyuki
Nekoyuki / java_enum_sample.java
Last active Dec 15, 2019
java/ enum behavior check
View java_enum_sample.java
import java.util.*;
public class Main {
public enum Enum_sample{
HAGE,
HIGE,
HOGE;
}
public static void main(String[] args) throws Exception {
@Nekoyuki
Nekoyuki / multiprocessing_args.py
Last active Dec 11, 2019
python / multiprocessing test in case a function has multi arguments.
View multiprocessing_args.py
from multiprocessing import Pool
import os
import time
start = time.time()
def func(n, a1, a2):
time.sleep(0.1)
r = n * a1 + a2