Skip to content

Instantly share code, notes, and snippets.

View iwadon's full-sized avatar

IWATSUKI Hiroyuki iwadon

View GitHub Profile
@iwadon
iwadon / a.cs
Last active May 23, 2018 11:12
C#のデリゲートの挙動を確認するためのコード。
using System;
class Base
{
public int i;
public Action act;
}
class A : Base
{
@iwadon
iwadon / # subversion - 2017-06-18_19-19-19.txt
Created June 18, 2017 10:29
subversion on macOS 10.11.6 - Homebrew build logs
Homebrew build logs for subversion on macOS 10.11.6
Build date: 2017-06-18 19:19:19
using UnityEngine;
using System.Collections;
public class AudioObjectController : MonoBehaviour
{
public AudioClip _audioClip;
// Use this for initialization
void Start()
{
--- ext/fiddle/extconf.rb~ 2014-06-30 01:59:36.000000000 +0900
+++ ext/fiddle/extconf.rb 2014-11-21 11:57:08.361740300 +0900
@@ -11,6 +11,10 @@
$defs.push(%{-DRUBY_LIBFFI_MODVERSION=#{ '%d%03d%03d' % ver }})
end
+if enable_config('static-libffi', false)
+ $defs.push('-DFFI_BUILDING')
+end
+
--- sysdep.h Sun Aug 29 18:24:57 2010
+++ sysdep.h Tue Mar 11 21:34:56 2014
@@ -19,7 +19,7 @@
#define MSGPACK_SYSDEP_H__
-#ifdef _MSC_VER
+#if _MSC_VER <= 1600
typedef __int8 int8_t;
typedef unsigned __int8 uint8_t;
@iwadon
iwadon / gist:9343679
Created March 4, 2014 10:10
mruby-master-changesの各commitの見出しの文字を小さくする。
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document domain("mruby-master-changes.hatenablog.com") {
div.entry-content > h1 {
font-size: 100%;
}
}
#include <fstream>
int main()
{
static const char data[1] = {0x0a};
std::ofstream ofs;
ofs.open("out.bin");
ofs.write(data, sizeof data);
ofs.close();
@iwadon
iwadon / gist:5419005
Created April 19, 2013 08:44
GitHubからcloneしたMonoをビルドする手順の一例。configureのオプションは各環境で適切に指定すること。
# GitHubからcloneする
git clone git://github.com/mono/mono.git
# submoduleを更新する (これを忘れるとmakeの途中でエラーになる)
git submodule init
git submodule update
# configureを生成する
NOCONFIGURE=1 ./autogen.sh
@iwadon
iwadon / stow-failed.log
Last active December 16, 2015 03:29
FreeBSDでGNU Stow 2.2.0がうまく動かない。おそらく/homeが/usr/homeへのsymlinkであることが原因っぽい。
% LANG=C stow -d /home/don/local/stow -S mono-git --verbose=3
stow dir is /usr/home/don/local/stow
stow dir path relative to target /home/don/local is ../../../usr/home/don/local/stow
cwd now /home/don/local
cwd restored to /usr/home/don/src/mono-git/_build_
cwd now /home/don/local
stow: ERROR: The stow directory ../../../usr/home/don/local/stow does not contain package mono-git (No such file or directory)
[1] 62559 exit 2 LANG=C stow -d /home/don/local/stow -S mono-git --verbose=3
@iwadon
iwadon / .gitignore
Last active December 15, 2015 20:19
Object.GetType()を呼び出さないとうまく動かないところが納得いかない。 → QA@ITに質問してみた。http://qa.atmarkit.co.jp/q/2834 → Monoの不具合だった。 → ushortからshortでの不具合は修正された。 → boolからsbyteでの不具合が見つかった。
/tmp.exe
/tmp2.exe