Skip to content

Instantly share code, notes, and snippets.

@shimiu
shimiu / GitkeepMaker.cs
Last active January 31, 2024 00:19
Unity Editorで新規フォルダが作られたときに自動で.gitkeepを作成する。 Editorフォルダに入れて使う。 プロジェクトルートに.gitフォルダが無かったらスルー。
using UnityEditor;
using UnityEngine;
using System.Collections;
using System.IO;
/// <summary>
/// 新規フォルダ作成時に.gitkeepを自動作成
/// </summary>
public class GitkeepMaker : AssetPostprocessor
{
@kmizu
kmizu / recommendation.md
Created October 2, 2011 12:15
ウォッチすべきScalaエンジニア(海外/日本人)のTwitterアカウント

フォローしておいた方がいいようなScalaエンジニア(海外勢/日本人)のTwitterアカウント

概要

海外勢/日本人のScala(エンジニア/ユーザ)の中で、特にフォローしておくといい方のTwitterアカウントを集めてみました。作成途中なので、突っ込み歓迎。fork歓迎。

海外

  • @robey Twitterの中の人。ScalaによるメッセージキューKestrelを作ったのもこの人。
  • @n8han 今話題のhttpツールキットUnfilteredの作者。NYのScalaエンジニアの中でも有名人。他にも、conscriptを初めとして、多数のプログラムを開発している。詳細は彼のgithub アカウント 参照。
@gakuzzzz
gakuzzzz / Factorization.scala
Created September 16, 2011 17:14
素因数分解
import scala.annotation._
object Factorization {
/** 素数 */
type Prime = Long
/** 指数 */
type Exponent = Int
val primes: Stream[Prime] = 2 #:: sieve(3)
anonymous
anonymous / gist:966026
Created May 11, 2011 07:02
StrategyパターンによるTemplate Methodパターンの書き換え
// ■Template Method Pattern
public abstract class Template {
public final void templateMethod() {
...
method1();
...
method2();
...
method3();