This file contains hidden or 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
require 'csv' | |
require 'optparse' | |
# | |
# なるべく短い正規表現で住所を「都道府県/市区町村/それ以降」に分けるエクストリームスポーツ | |
# http://qiita.com/zakuroishikuro/items/066421bce820e3c73ce9 | |
# | |
# 正規表現で住所の「都道府県/市区町村/それ以降」をキャプチャできるか試すスクリプト | |
# 使い方はとりあえず実行すれば分かると思います | |
# |
This file contains hidden or 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
#![feature(trace_macros)] | |
use std::ops::{Add, Sub, Mul, Div, Neg, AddAssign, MulAssign}; | |
#[derive(Copy, Clone, Debug)] | |
#[repr(C)] | |
pub struct Vector3 { | |
pub x: f64, | |
pub y: f64, | |
pub z: f64, |
This file contains hidden or 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
.PHONY: build | |
build: update | |
TOOLCHAINS=swift swift build -c release -Xswiftc -Ounchecked | |
.PHONY: update | |
update: Package.swift | |
swift package update | |
.PHONY: run | |
run: build |
This file contains hidden or 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() |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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>())!! |
NewerOlder