Skip to content

Instantly share code, notes, and snippets.

View RowTraversable.purs
module Main where
import Prelude
import Control.Parallel (class Parallel, parallel, sequential)
import Data.Maybe (Maybe(..))
import Data.Symbol (class IsSymbol, SProxy(..))
import Effect (Effect)
import Effect.Class.Console (logShow)
import Prim.Row as Row
View Program.cs
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Razor.Language;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp;
@acple
acple / Program.cs
Created Oct 20, 2017
lambda capture
View Program.cs
using System;
namespace ConsoleApp
{
class Program
{
static void Main()
{
var a = 1;
{
View HigherOrderedShapes.cs
using System;
using System.Collections.Generic;
using System.Linq;
namespace Test
{
class Program
{
static void Main(string[] args)
{
View ActionQueueScheduler.cs
using System;
using System.Collections.Concurrent;
using System.Threading;
using System.Threading.Tasks;
namespace AsyncScheduler
{
public class ActionQueueScheduler : IDisposable
{
private readonly ConcurrentQueue<Func<Task>> queue;
View StackOverflow.cs
// .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 _
{
@acple
acple / TailRecursion.cs
Created Jun 6, 2016
C#の末尾呼び出し最適化がいろいろおかしいって話
View TailRecursion.cs
using System.Diagnostics;
using static System.Console;
class Program
{
static void Main(string[] args)
{
// 末尾再帰の検証 .NET framework 4.6.1 / Release_x64
//A(10000000); // -> StackOverflowException!!!!
View DvorakJ__ReadLayout_Keyboard.ahk.patch
--- 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
View googlejapaneseinput_keymap.txt
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
View StartEmacs.ahk
/*
------------------emacsclientw起動用スクリプト------------------
emacsclientw.exeをまともに使えるようにする。
emacsが起動してないときには起動、起動してる時はアクティブ化、ファイルを送ると読み込む。
gnupack版emacsで使うときはrunemacs.exeの代わりにINST_DIRのemacs.exeを指定する。
AutoHotKey_Lw / Ahk2Exe_Lで動作。
[1] コンパイルして適当な場所に置く
とりあえずemacs.exeと同じ場所おすすめ。
You can’t perform that action at this time.