This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
spllerE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding=utf-8 | |
from sklearn.cluster import MiniBatchKMeans, KMeans | |
from sklearn.feature_extraction.text import TfidfVectorizer | |
from sklearn import metrics | |
from igo.tagger import Tagger | |
import numpy | |
import logging | |
import time |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.jetbrains.haskell.external | |
import com.intellij.openapi.project.Project | |
import org.jetbrains.haskell.config.HaskellSettings | |
import com.intellij.openapi.components.ProjectComponent | |
import java.io.InputStreamReader | |
import java.util.ArrayList | |
import java.io.BufferedReader | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fun getResultFromScan(psiFile: PsiFile, | |
baseDir: VirtualFile, | |
file: VirtualFile): List<ErrorMessage> { | |
ApplicationManager.getApplication()!!.invokeAndWait(object : Runnable { | |
override fun run() { | |
FileDocumentManager.getInstance()!!.saveAllDocuments() | |
} | |
}, ModalityState.any()) | |
val scan = psiFile.getProject().getComponent(javaClass<Scan>())!! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Main where | |
-- friends | |
import qualified Usi | |
import qualified Board | |
import qualified Move | |
import qualified MoveGenerator | |
-- GHC | |
-- libraries | |
import Text.Printf (printf) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// GameViewController.m | |
// AIUEO | |
// | |
// Created by Kodama Yoshinori on 3/8/15. | |
// Copyright (c) 2015 EuphonicTeck. All rights reserved. | |
// | |
#import "GameViewController.h" | |
#import <OpenGLES/ES2/glext.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(* Binomial Heap *) | |
module type ORDERED = | |
sig | |
type t | |
val eq : t -> t -> bool | |
val lt : t -> t -> bool | |
val leq : t -> t -> bool | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// RandomGeneratorXor128.swift | |
// EFTest | |
// | |
// Created by KodamaYoshinori on 2016/10/22. | |
// Copyright © 2016 Yoshinori Kodama. All rights reserved. | |
// | |
class RandomGeneratorXor128 { | |
static var seed: Int = 19937 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import PackageDescription | |
let package = Package( | |
name: "EFTest_CommandLineApp", | |
dependencies: [ | |
.Package(url: "https://github.com/ysnrkdm/EFTest_RandomGenerator.git", majorVersion: 1, minor: 2) | |
] | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation | |
import RandomGenerator | |
let seed = Date().hashValue | |
RandomGeneratorXor128.seed = seed | |
print("Seed set: \(seed)") | |
var randHelper = RandomGeneratorXor128.generator() | |
_ = randHelper.getNextRandomUInt() | |
_ = randHelper.getNextRandomUInt() |
OlderNewer