This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* ******************************************** | |
33進数(※)の文字列を10進数の数値に変換 | |
※33進数 = 0123456789ABCDEFGHJKMNPQRSTUVWXYZ | |
(誤読しやすい'I','L','O'を除く) | |
******************************************** */ | |
CREATE FUNCTION [dbo].[fn33DecToDec]( | |
@NUMSTR NVARCHAR(10) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* ******************************************** | |
10進数の数値を33進数(※)の文字列に変換 | |
※33進数 = 0123456789ABCDEFGHJKMNPQRSTUVWXYZ | |
(誤読しやすい'I','L','O'を除く) | |
******************************************** */ | |
CREATE FUNCTION [dbo].[fnDecTo33Dec] ( | |
@RET NVARCHAR(10), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Text; | |
using System.Data.SqlClient; | |
namespace DatabaseSample | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
namespace AutoNumber | |
{ | |
public class AutoNumber | |
{ | |
private static readonly int DecLength = (int)'Z' - (int)'A' + 1 - 3 + 10; // ILOを除くA〜Zと0〜9の33 | |
private static readonly int OffsetNum0 = (int)'0'; // 48 | |
private static readonly int OffsetNum1= (int)'A' - 10; // 55 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace Language | |
{ | |
/// <summary> | |
/// 日本語に関するクラス | |
/// </summary> | |
public class Japanese | |
{ | |
/// <summary> | |
/// カタカナのテーブル | |
/// </summary> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Linq; | |
public static class Sample | |
{ | |
public static string ToKatakana(this string s) | |
{ | |
return new string(s.Select(c => (c >= 'ぁ' && c <= 'ゖ') ? (char)(c + 'ァ' - 'ぁ') : c).ToArray()); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Linq; | |
public static class Sample | |
{ | |
public static string ToHiragana(this string s) | |
{ | |
return new string(s.Select(c => (c >= 'ァ' && c <= 'ヶ') ? (char)(c + 'ぁ' - 'ァ') : c).ToArray()); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/************************************************** | |
* 全角/半角文字判定 | |
* | |
* 引数 : strチェックする文字列 | |
* flg 0:半角文字、1:全角文字 | |
* 戻り値 : true:含まれている、false:含まれていない | |
**************************************************/ | |
function IsFullOrHalf(str, flg) { | |
for (var i = 0; i < str.length; i++) { | |
var c = str.charCodeAt(i); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"--------------- | |
" 文字 | |
"--------------- | |
" 読み込み時の文字コード | |
set encoding=utf-8 | |
" Vim Script内でマルチバイトを使う場合 | |
scriptencoding utf-8 | |
" 保存時の文字コード | |
set fileencoding=utf-8 | |
" 読み込み時の文字コードの自動判別. 左側が優先される |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[[plugins]] # TOMLのシンタックスハイライト | |
repo = 'cespare/vim-toml' | |
on_ft = 'toml' | |
#[[plugins]] # goコマンド保管 | |
#repo = 'fitih/vim-go' | |
#on_ft = 'go' | |
[[plugins]] # vim-go代替 | |
repo = 'zchee/nvim-go' |