Skip to content

Instantly share code, notes, and snippets.

@xiaoyvr
xiaoyvr / Either.cs
Created October 24, 2016 08:47 — forked from siliconbrain/Either.cs
Implemetation of Haskell's Either type in C#
/// <summary>
/// Interface definition of Either
/// </summary>
/// <typeparam name="Tl">type of the Left value</typeparam>
/// <typeparam name="Tr">type of the Right value</typeparam>
public interface IEither<out Tl, out Tr>
{
/// <summary>
/// Check the type of the value held and invoke the matching handler function
/// </summary>
@olih
olih / jq-cheetsheet.md
Last active May 2, 2024 00:42
jq Cheet Sheet

Processing JSON using jq

jq is useful to slice, filter, map and transform structured json data.

Installing jq

On Mac OS

brew install jq

@asufana
asufana / OSXでのFSharp環境整備.md
Last active July 6, 2016 15:36
OSXでのF#(FSharp)環境整備

OSX での F# (FSharp) 環境整備

環境情報

  • Mac OSX El Capitan 10.11.1
  • mono 4.2.1

mono インストール

@asufana
asufana / FSharpSnippets.md
Last active January 13, 2016 15:59
F# (FSharp) snippets

F# (FSharp) snippets

拡張メソッド

既存の型に関数を追加する

#!/usr/bin/env fsharpi
@faithandbrave
faithandbrave / emscripten_call_javascript_from_cpp.md
Last active March 10, 2020 14:11
Emscriptenで、C++からJavaScriptの関数を呼び出す

Emscriptenで、C++からJavaScriptの関数を呼び出す

構成

+ecmake_dir
main.cpp
CMakeLists.txt
api.h
api.js
@koba04
koba04 / api.md
Last active July 19, 2021 10:49
Vue.js note(v0.10.3). not translate. This is draft of https://github.com/koba04/vuejs-book .

API

Class: Vue

  • Vueはvue.jsのコアとなるコンストラクタ
  • インスタンスが作られたときにデータバインディングが開始される
  • オプションを取ることも出来て、DOMやデータやメソッドについて定義出来る
@koute
koute / opengl3_hello.c
Created November 9, 2013 23:16
Minimal SDL2 + OpenGL3 example.
/*
Minimal SDL2 + OpenGL3 example.
Author: https://github.com/koute
This file is in the public domain; you can do whatever you want with it.
In case the concept of public domain doesn't exist in your jurisdiction
you can also use this code under the terms of Creative Commons CC0 license,
either version 1.0 or (at your option) any later version; for details see:
http://creativecommons.org/publicdomain/zero/1.0/
@sunaot
sunaot / exception.md
Created August 2, 2013 09:13
例外設計の話

例外設計の話。

こんな指針がいいのかなー 2013 夏 ver.

例外の目的とは?

.NET の「例外のデザインのガイドライン」にもこう書いてある。