Skip to content

Instantly share code, notes, and snippets.

View k163377's full-sized avatar

wrongwrong k163377

View GitHub Profile
@k163377
k163377 / slide.md
Last active July 22, 2021 04:51
Java Reflectionから見たvalue class
marp
@k163377
k163377 / nullable.kt
Created March 1, 2020 16:13 — forked from dant3/nullable.kt
Check if kotlin generic is nullable type
inline fun <reified T> isNullable(): Boolean = null is T
import java.io.BufferedReader
import java.io.FileNotFoundException
import java.io.FileReader
val prefix: String = "<color name="
val middle: String = ">"
val suffix: String = "</color>"
fun main(args:Array<String>) {
try{
@k163377
k163377 / IOTemplate.cpp
Created July 13, 2018 04:39
IOTemplates
#include <iostream>
#include <string>
using namespace std;
int main() {
int x, y;
string str;
cin >> x >> y;
@k163377
k163377 / main.cpp
Created July 2, 2018 00:39
Microsoft PPL/並列STL(C++17)/OpenMPを少しだけ比較+AVX2利用
#include <chrono> //時間計測その他諸々
#include <cstdio>
#include <iostream>
#include <random>
#include <ppl.h> //parallel_for_each用
#include <algorithm> //for_each用
#include <execution> //algorithmの並列実行ポリシー