Skip to content

Instantly share code, notes, and snippets.

Ysnr Kdm ysnrkdm

Block or report user

Report or block ysnrkdm

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@ysnrkdm
ysnrkdm / spllerE_.idea_.name
Created Aug 12, 2014
Spell correct tool written in Haskell
@ysnrkdm
ysnrkdm / analyzeresponse.py
Created Sep 28, 2014
scikit-learn example
View analyzeresponse.py
# 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
View HaskellExternalAnnotator.kt
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>())!!
@ysnrkdm
ysnrkdm / Scan.kt
Created Oct 4, 2014
Added scanner
View Scan.kt
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
/**
@ysnrkdm
ysnrkdm / Main.hs
Created Dec 1, 2014
Test for move generation (very simple)
View Main.hs
module Main where
-- friends
import qualified Usi
import qualified Board
import qualified Move
import qualified MoveGenerator
-- GHC
-- libraries
import Text.Printf (printf)
@ysnrkdm
ysnrkdm / GameViewController.m
Created Mar 8, 2015
Original version of GameViewController.m in OpenGL project made by Xcode template
View GameViewController.m
//
// 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>
View binomialHeap.ml
(* Binomial Heap *)
module type ORDERED =
sig
type t
val eq : t -> t -> bool
val lt : t -> t -> bool
val leq : t -> t -> bool
end
@ysnrkdm
ysnrkdm / RandomGeneratorXor128.swift
Created Oct 24, 2016
Original iOS application before separating library
View RandomGeneratorXor128.swift
//
// RandomGeneratorXor128.swift
// EFTest
//
// Created by KodamaYoshinori on 2016/10/22.
// Copyright © 2016 Yoshinori Kodama. All rights reserved.
//
class RandomGeneratorXor128 {
static var seed: Int = 19937
View Package.swift
import PackageDescription
let package = Package(
name: "EFTest_CommandLineApp",
dependencies: [
.Package(url: "https://github.com/ysnrkdm/EFTest_RandomGenerator.git", majorVersion: 1, minor: 2)
]
)
View main.swift
import Foundation
import RandomGenerator
let seed = Date().hashValue
RandomGeneratorXor128.seed = seed
print("Seed set: \(seed)")
var randHelper = RandomGeneratorXor128.generator()
_ = randHelper.getNextRandomUInt()
_ = randHelper.getNextRandomUInt()
You can’t perform that action at this time.