Skip to content

Instantly share code, notes, and snippets.

@eral
eral / platformio.ini
Last active May 17, 2022 17:09
platformio.ini for Inkplate 10
; PlatformIO Project Configuration File
;
; Build options: build flags, source filter
; Upload options: custom upload port, speed and extra flags
; Library options: dependencies, extra library storages
; Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html
@eral
eral / OreOreLinq.Lottery.cs
Last active March 8, 2020 05:41
OreOreLinq.Lottery
// Created by ERAL
// These codes are licensed under CC0.
// https://creativecommons.org/publicdomain/zero/1.0/
namespace OreOreLinq
{
using System;
using System.Collections.Generic;
public static class Enumerable
@eral
eral / NonDirectionalBooleanMatrix.cs
Last active February 14, 2021 02:57
Property Drawer Like Layer Collision Matrix
// (C) 2018 ERAL
// Distributed under the Boost Software License, Version 1.0.
// (See copy at http://www.boost.org/LICENSE_1_0.txt)
using UnityEngine;
#if UNITY_EDITOR
using UnityEditor;
using System.Collections.Generic;
using System.Linq;
@eral
eral / DescriptionImages.md
Last active May 10, 2017 18:23
説明用画像置き場

説明用画像置き場

@eral
eral / EmojiMessageGuideline.md
Last active January 1, 2018 20:23
コミットメッセージに於ける絵文字使用指針

:heavy_plus_sign:

新機能追加

👍 :thumbsup:

微調整

🎨 :art:

ソースコード整理
機能に変更の無いファイル移動

@eral
eral / MinMaxSliderPropertyDrawer.cs
Last active May 18, 2017 18:42
Min Max Slider Property Drawer
// (C) 2015 ERAL
// Distributed under the Boost Software License, Version 1.0.
// (See copy at http://www.boost.org/LICENSE_1_0.txt)
using UnityEngine;
#if UNITY_EDITOR
using UnityEditor;
[CustomPropertyDrawer(typeof(MinMaxSliderAttribute))]
@eral
eral / DisposableEditorGUILayout.cs
Last active August 23, 2017 03:09
Disposable EditorGUILayout
// Created by ERAL
// This is free and unencumbered software released into the public domain.
using UnityEngine;
using UnityEditor;
class HorizontalGroup : System.IDisposable {
public Rect Rect;
public HorizontalGroup(params GUILayoutOption[] options) {
Rect = EditorGUILayout.BeginHorizontal(options);
@eral
eral / CancelableLinq.cs
Last active August 29, 2015 14:13
Cancelable LINQ
// Created by ERAL
// This is free and unencumbered software released into the public domain.
using UnityEngine;
using UnityEditor;
using System.Collections.Generic;
using System.Linq;
public class CancelableLinq {
@eral
eral / RestrictInterfacePropertyDrawer.cs
Last active June 6, 2020 18:19
Restrict Interface Property Drawer
// (C) 2014 ERAL
// Distributed under the Boost Software License, Version 1.0.
// (See copy at http://www.boost.org/LICENSE_1_0.txt)
using UnityEngine;
#if UNITY_EDITOR
using UnityEditor;
using System.Linq;
@eral
eral / SelectableMoveBracketPairs.SakuraEditor.js
Last active August 29, 2015 14:07
範囲選択を維持しつつ対括弧の検索を行うサクラエディタ用マクロ
// (C) 2014 ERAL
// Distributed under the Boost Software License, Version 1.0.
// (See copy at http://www.boost.org/LICENSE_1_0.txt)
var is_text_selected = Editor.IsTextSelected();
if (1 == is_text_selected) {
Editor.BeginSelect();
}
Editor.BracketPair();
if (1 == is_text_selected) {