This file contains 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
/* | |
------------------emacsclientw起動用スクリプト------------------ | |
emacsclientw.exeをまともに使えるようにする。 | |
emacsが起動してないときには起動、起動してる時はアクティブ化、ファイルを送ると読み込む。 | |
gnupack版emacsで使うときはrunemacs.exeの代わりにINST_DIRのemacs.exeを指定する。 | |
AutoHotKey_Lw / Ahk2Exe_Lで動作。 | |
[1] コンパイルして適当な場所に置く | |
とりあえずemacs.exeと同じ場所おすすめ。 |
This file contains 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
status key command | |
Suggestion Down PredictAndConvert | |
Suggestion Shift Enter CommitFirstSuggestion | |
Prediction Ctrl Delete DeleteSelectedCandidate | |
Prediction Ctrl k DeleteSelectedCandidate | |
Precomposition Ctrl Eisu ToggleAlphanumericMode | |
Precomposition Ctrl F12 LaunchConfigDialog | |
Precomposition Ctrl Henkan IMEOff | |
Precomposition Hankaku/Zenkaku IMEOff | |
Precomposition Henkan IMEOff |
This file contains 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
;; SandS for AutoHotkey | |
;; ===初期設定========================================================== | |
;; 多重起動の制御をforceに指定 | |
#SingleInstance force | |
;; 環境変数を無視する | |
#NoEnv |
This file contains 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
--- ReadLayout_Keyboard.ahk.orig 2012-07-17 23:56:22.000000000 +0900 | |
+++ ReadLayout_Keyboard.ahk 2013-05-24 11:19:19.369796300 +0900 | |
@@ -543,7 +543,7 @@ | |
if ( row = 1 ) | |
{ | |
- if ( column = 14 ) | |
+ if ( column = 15 ) | |
return 0 | |
else |
This file contains 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
//http://msdn.microsoft.com/ja-jp/library/cc981895.aspx | |
public static class Extensions | |
{ | |
public static double Median(this IEnumerable<double> source) | |
{ | |
var count = source.Count(); | |
if (count == 0) throw new InvalidOperationException("Cannot compute median for an empty set."); | |
return source.OrderBy(x => x).Take((count / 2) + 1).Skip((count - 1) / 2).Average(); | |
} |
This file contains 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
using System; | |
using System.Reactive.Linq; | |
using System.Reactive.Subjects; | |
namespace ConsoleApplication1 | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ |
This file contains 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
using System; | |
using System.Reactive.Linq; | |
namespace ConsoleApplication1 | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
var source = Observable.Return(0) // (int 0)で長さ1 |
This file contains 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
using System; | |
namespace Acple.ForbiddenExtensions | |
{ | |
public static class Extensions | |
{ | |
public static TResult 変換するやつ<T, TResult>(this T value, Func<T, TResult> processor) | |
{ | |
return processor(value); | |
} |
This file contains 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
using System.Diagnostics; | |
using static System.Console; | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
// 末尾再帰の検証 .NET framework 4.6.1 / Release_x64 | |
//A(10000000); // -> StackOverflowException!!!! |
This file contains 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
// .NET framework 4.6.1 / x64 + Release | |
// https://github.com/acple/ParsecSharp/tree/5ea648b20ac28cc032a669c8fbe0f346e3e947fc | |
using System.Diagnostics; | |
using static System.Console; | |
using static Parsec.Parser; | |
using static Parsec.Text; | |
namespace _ | |
{ |
OlderNewer