Skip to content

Instantly share code, notes, and snippets.

Takahiro KITAHARA fliedonion

  • Japan
Block or report user

Report or block fliedonion

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
fliedonion / karabiner.pc-jis-sample.json
Last active Apr 28, 2019
karabiner-elements: JIS PCキーボードでVMware fusion除外デバイス指定も絡めたwin-alt置換、caps-rCtrl化、無変換変換かな-英数かな化サンプル
View karabiner.pc-jis-sample.json
"global": {
"check_for_updates_on_startup": true,
"show_in_menu_bar": true,
"show_profile_name_in_menu_bar": false
"profiles": [
"complex_modifications": {
"parameters": {
fliedonion / SomeFormBase.cs
Created Oct 7, 2018
WnForms Control Enable to ignore many clicks during controls were disabling.
View SomeFormBase.cs
namespace net.case_of_t.WinForms {
public class SomeFormBase : Form{
protected static readonly int DefaultWaitMsForTurnEnable = 1000;
protected void ControlsEnableAfter(Control target) {
ControlsEnableAfter(DefaultWaitMsForTurnEnable, target);
protected void ControlsEnableAfter(IEnumerable<Control> targets) {
fliedonion /
Created Oct 4, 2018
Regex for Convert C# Field to Property with INotifyPropertyChanged

Find pattern is like this:
public (.+) (?!PropertyChanged)(.+);

Replace is:

public $1 $2 {
    get { return \l$2; }
    set {
        if(\l$2 != value) {
            \l$2 = value;
View result_sample.elm
import Html exposing (text, h1)
type alias EmailAddress = String
type alias Message =
{ recipient : EmailAddress
, body : String
// place this file the path such ends with: ChatServer/server/
package ChatServer.server;
import java.util.ArrayList;
import java.util.List;
fliedonion / IconLoader.cs
Last active Sep 19, 2017
Load Icon Data From File. Sideline of my other program using UpdateResource.
View IconLoader.cs
using System;
using System.Collections.Generic;
using System.IO;
using System.Runtime.InteropServices;
namespace IconLoadToStruct {
fliedonion / SampleForm1.cs
Last active Sep 4, 2017
View SampleForm1.cs
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
fliedonion / RxZipFizzBuzz.cs
Created Apr 6, 2017
Reactive Extensions Zip FizzBuzz
View RxZipFizzBuzz.cs
using System;
using System.Linq;
using System.Reactive.Linq;
namespace RxZipFizzBuzz
class Program
static void Main(string[] args)
fliedonion / RxAndThenWhenFizzBuzz.cs
Last active Apr 7, 2017
Reactive Extensions And/Then/When FizzBuzz
View RxAndThenWhenFizzBuzz.cs
using System;
using System.Linq;
using System.Reactive.Linq;
namespace RxAndThenWhenFizzBuzz {
class Program {
static void Main(string[] args) {
var numberObserver = Observable.Range(1, 30);
var fizzObserver = numberObserver.Select(i => i % 3 == 0 ? "Fizz" : "");
var buzzObserver = numberObserver.Select(i => i % 5 == 0 ? "Buzz" : "");
fliedonion /
Last active Dec 14, 2016
install bat for gogs with nssm

install gogs with nssm.


gogs-nssm-installer.bat <your-machine-name> <ip-of-your-machine> <port-for-gogs-web>

ex) gogs-nssm-installer.bat mywin8 5050

important notice: If use none secure location, use loopback ip (like for gogs and use gogs behind other web server (nginx, apache etc).

You can’t perform that action at this time.