Skip to content

Instantly share code, notes, and snippets.

View yoichiro-manabe's full-sized avatar
🌿
ケムリクサいいですね

Yoichiro Manabe yoichiro-manabe

🌿
ケムリクサいいですね
  • beaglesoft LLC
  • Japan
View GitHub Profile
@yoichiro-manabe
yoichiro-manabe / DnsLookup.cs
Created April 27, 2019 05:12
DnsClient.NETを利用したDNSへの問い合わせ
/// <summary>
/// DNSへの問い合わせクラス
/// </summary>
public class DnsLookup
{
/// <summary>
/// DNSへ問い合わせを行いSRVレコードとAレコードからサービスのホストを取得します。
/// </summary>
/// <param name="lookupName">問い合わせを行うSRVレコードに対応したNamespace</param>
/// <returns><see cref="ServiceHost"/></returns>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>leafletサンプル</title>
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.4.0/dist/leaflet.css" >
<script src="https://unpkg.com/leaflet@1.4.0/dist/leaflet.js"></script>
</head>
<body>
<div id="mapid" style="height: 400px; width: 600px;"></div>
# Custom segmentation for long entries
日本経済新聞,日本 経済 新聞,ニホン ケイザイ シンブン,カスタム名詞
関西国際空港,関西 国際 空港,カンサイ コクサイ クウコウ,テスト名詞
# Custom reading for sumo wrestler
朝青龍,朝青龍,アサショウリュウ,カスタム人名
# Silly entry:
abcd,a b cd,foo1 foo2 foo3,bar
abcdefg,ab cd efg,foo1 foo2 foo4,bar
@yoichiro-manabe
yoichiro-manabe / Program.cs
Created December 27, 2018 02:56
KuromojiSample
using System;
using System.Diagnostics;
using System.IO;
using System.Text;
using Lucene.Net.Analysis;
using Lucene.Net.Analysis.Ja;
using Lucene.Net.Analysis.Ja.Dict;
using Lucene.Net.Analysis.Ja.TokenAttributes;
using Lucene.Net.Analysis.TokenAttributes;
@yoichiro-manabe
yoichiro-manabe / leaflet_numbered_markers.css
Created October 25, 2018 11:31 — forked from comp615/leaflet_numbered_markers.css
Numbered Markers in Leaflet (JS Mapping)
.leaflet-div-icon {
background: transparent;
border: none;
}
.leaflet-marker-icon .number{
position: relative;
top: -37px;
font-size: 12px;
width: 25px;
const prefCodes = {
"北海道": "01",
"青森県": "02",
"岩手県": "03",
"宮城県": "04",
"秋田県": "05",
"山形県": "06",
"福島県": "07",
"茨城県": "08",
"栃木県": "09",
北海道 01
青森県 02
岩手県 03
宮城県 04
秋田県 05
山形県 06
福島県 07
茨城県 08
栃木県 09
群馬県 10
# ローカルの変更を破棄する
git checkout file_name
# 追加したファイルをstageから削除する
git revert file_name
# ファイルをバージョン管理から外す
git rm --cached file_name
@yoichiro-manabe
yoichiro-manabe / gist:d3cf036f0e215d5b202ed67bc6dee90e
Created August 11, 2016 12:30
Mac Vimのインラインインプットメソッドの変換処理について
https://github.com/splhack/macvim-kaoriya/issues/26
@yoichiro-manabe
yoichiro-manabe / dein.toml
Created August 11, 2016 00:47
vimのプラグイン管理
# 基本は github.com のレポジトリーを指定するだけ
[[plugins]]
repo = 'Shougo/dein.vim'
[[plugins]]
repo = 'Shougo/vimproc.vim'
[[plugins]]
repo = 'delphinus35/typescript-vim'
rev = 'colorize-template-strings'