Skip to content

Instantly share code, notes, and snippets.

View terurou's full-sized avatar

terurou terurou

  • DenkiYagi Inc.
  • Nagoya-shi, Aichi-ken, Japan
  • X @terurou
View GitHub Profile
@terurou
terurou / ArrayTools.hx
Created December 1, 2012 06:52
NGK2012B 発表順序抽選プログラムと結果
package ;
class ArrayTools {
public static function shuffle<T>(arr : Array<T>) : Array<T> {
var i : Int = arr.length;
while (i > 0) {
var j = Std.random(i);
var tmp = arr[--i];
arr[i] = arr[j];
arr[j] = tmp;
@terurou
terurou / Ui.tt
Last active December 14, 2015 08:29
This tool compiles all Qt ui files that exists in the same directory.
<#
// Ui.tt - Qt ui file compilation tool for T4 Template -
// This tool compiles all Qt ui files that exists in the same directory.
// ----------------------------------------------------------------------------
// Copyright 2013 terurou (terurou at gmail.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,

転職先に訊きたいチェックリスト - デンキヤギ2014年7月版

制度

  • 有休
    • 初年度10日(経験・スキルに応じて増加支給の場合あり)
  • 病休
    • 基本有給で対応。
  • 育休
    • 直近で必要性がないため、まだ制度化していない。ただし、現状の制度内でも休業+育児休業給付で対応可能。
@terurou
terurou / gist:50b63eed3dfda3f8140e
Last active August 29, 2015 14:06
Haxe/JavaScript入門 目次案

Haxe/JavaScript入門

1章 Hello Haxe World!

  1. Haxeとは
  2. 開発環境の構築
  3. プロジェクトの作成
    • hxml
    • スタートアップクラス

2章 最低限のHaxe構文

@terurou
terurou / ArrayTools.hx
Created November 29, 2014 13:07
NGK2014B 発表順序抽選プログラム
package ;
class ArrayTools {
public static function shuffle<T>(arr : Array<T>) : Array<T> {
var i = arr.length;
while (i > 0) {
var j = Std.random(i);
var tmp = arr[--i];
arr[i] = arr[j];
arr[j] = tmp;
@terurou
terurou / Main.hx
Last active November 28, 2015 02:54
NGK2015B 発表順序抽選
class Main {
static function main() {
var speakers = shuffle([
"aster_ism",
"sqm8",
"けきょ",
"niccolli",
"y_taka_23",
"mzp",
"maeda_",
@terurou
terurou / Main
Created April 14, 2016 09:38
NLNagoya発表順抽選
class Main {
static function main() {
var speakers = shuffle([
"@terurou",
"@mzp",
"@kyon_mm",
"@bleis",
"@otf",
"@htid46",
"@zakky_dev",
@terurou
terurou / Function.hx
Created September 26, 2017 14:57
Haxe/JavaScript extern magic
abstract Function(Dynamic)
from Action0 to Action0
from Action1 to Action1
from Action2 to Action2
from Action3 to Action3
from Action4 to Action4
from Action5 to Action5
from Action6 to Action6
from Action7 to Action7
from Action8 to Action8
@terurou
terurou / SampleMacro.hx
Last active October 4, 2017 15:05
マクロから外部プロセス起動の基本形
import sys.io.Process;
import haxe.io.Eor;
class SampleMacro {
public static macro function run(): Void {
var process = new Process("node compiler.js");
try {
process.stdout.readLine();
process.close();
} catch (e: Eof) {
@terurou
terurou / Tuple2.hx
Created April 2, 2018 14:23
Haxe Tuple2
abstract Tuple2<T1, T2>(Array<Dynamic>) {
public var value1(get, never): T1;
public var value2(get, never): T2;
public inline function new(a: T1, b: T2) {
this = [a, b];
}
inline function get_value1(): T1 {
return this[0];