Skip to content

Instantly share code, notes, and snippets.

View sh1ch's full-sized avatar

sh1ch sh1ch

  • jpn
  • 14:11 (UTC +09:00)
View GitHub Profile
@sh1ch
sh1ch / ObservableFixedQueue.cs
Last active April 16, 2020 09:49
Observable コレクションのサンプル
using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace HistoryMenuSample
{
@sh1ch
sh1ch / PrinterInfo.cs
Created April 10, 2020 06:43
プリンターのアイコンを取得するサンプル
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
@sh1ch
sh1ch / Random.cs
Last active March 27, 2020 01:35
Xorshift の実装例
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace XorshiftRandom
{
/// <summary>
/// <see cref="Random"/> クラスは、Xorshift RNGs による疑似乱数ジェネレーターです。
@sh1ch
sh1ch / openssl-compiling-from-wsl
Created February 14, 2020 08:29
OpenSSL をコンパイルしたときの例
arm_x86 (v7a)
export ANDROID_NDK_HOME=$HOME/android/android-ndk-r19c
export SYSROOT=$ANDROID_NDK_HOME/platforms/android-28/arch-arm
export LLVM_L_X86_64=$ANDROID_NDK_HOME/toolchains/llvm/prebuilt/linux-x86_64
export CC=${LLVM_L_X86_64}/bin/armv7a-linux-androideabi28-clang
export CXX=${LLVM_L_X86_64}/bin/armv7a-linux-androideabi28-clang++
export LD=${LLVM_L_X86_64}/bin/arm-linux-androideabi-ld
export AR=${LLVM_L_X86_64}/bin/arm-linux-androideabi-ar
export RANLIB=${LLVM_L_X86_64}/bin/arm-linux-androideabi-ranlib
@sh1ch
sh1ch / Debugger.cs
Created January 22, 2020 05:45
UnityEngine.Debug クラスのラッパークラスのサンプルです。
using System;
using System.ComponentModel;
using System.Diagnostics;
using UnityEngine;
using UnityEngine.Bindings;
using UnityEngine.Internal;
namespace UnityEngine
{
/// <summary>
@sh1ch
sh1ch / AccessType.cs
Created September 27, 2019 04:09
(.mdb) 形式のデータベースファイルを識別する例
/// <summary>
/// <see cref="Access"/> 列挙型は、DB ファイルを作成した Access 種別を表します。
/// </summary>
public enum AccessType : int
{
/// <summary>
/// 未定義
/// </summary>
UnDefined = -1,
/// <summary>
@sh1ch
sh1ch / directory.txt
Created April 26, 2019 00:13
Visual Studio Code 拡張機能のローカライズ設定
project
|-package.json
|-package.nls.json
|-package.nls.ja.json
|-tsconfig.json
|-src
| |-extension.ts
| |-lang
| |-localization.ts
# 先にインストールを済ませる
install.packages("devtools")
library(devtools)
install_github("BillPetti/baseballr")
install.packages("ggplot2")
install.packages("dplyr")
# 大谷選手を調べる例
library(devtools)