Skip to content

Instantly share code, notes, and snippets.

View logue's full-sized avatar
🏠
Working from home

Masashi Yoshikawa logue

🏠
Working from home
View GitHub Profile
@logue
logue / hiragana-to-roman.js
Last active December 5, 2019 09:37 — forked from Tenderfeel/hiragana-to-roman.js
ひらがなをローマ字に変換するクラスをES6にしたやつ。
/**
* ひらがな → ローマ字変換クラス
* @author tenderfeel, Logue
* @license MIT
* @ver 1.3.1
* http://tenderfeel.xsrv.jp/
*
* ---MIT License--------------------------------------------
* Copyright (c) 2008 Tenderfeel all rights reserved.
* 2019 Modified by Masashi Yoshikawa <logue@hotmail.co.jp>
<?php
class Kana2Roma
{
public $charset = 'utf-8';
public $mode_Krows = 'k'; //か・く・こ(k or c)
public $mode_XArows = 'l'; //小文字ぁ行と「っ」( L or X)
public $mode_TYrows = 'ch'; //ち行+小文字や行(ty or ch or cy)
public $mode_SYrows = 'sh'; //し行+小文字や行(sy or sh)
public $mode_JYrows = 'j'; //じ行+小文字や行(j or zy or jy)
@logue
logue / .php_cs
Last active April 3, 2019 03:21
Laravel + Fab Cs Fixer Rules sync with StyleCI.
<?php
$header = <<<'EOF'
This file is part of GSS GoHub Software.
(c) Gözen Systems, 2018.
Modified By Logue
EOF;
$config = PhpCsFixer\Config::create()
->setRiskyAllowed(true)
/**
* http://plugins.jquery.com/project/query-object
* jQuery.query - Query String Modification and Creation for jQuery
* Written by Blair Mitchelmore (blair DOT mitchelmore AT gmail DOT com)
* Licensed under the WTFPL (http://sam.zoy.org/wtfpl/).
* Date: 2009/8/13
*
* @author Blair Mitchelmore
* @version 2.1.8 (fork)
*
@logue
logue / Diff.php
Last active December 10, 2015 22:18 — forked from anonymous/Diff.php
<?php
// An O(NP) Sequence Comparison Algorithm" for PHP
// Copyright (c) 2013 Logue <logue@hotmail.co.jp> All rights reserved.
// License: BSD license
// based on https://github.com/cubicdaiya/onp
/**
* The algorithm implemented here is based on "An O(NP) Sequence Comparison Algorithm"
* by described by Sun Wu, Udi Manber and Gene Myers
*/
// ----------------------------------------------------------
// A short snippet for detecting versions of IE in JavaScript
// without resorting to user-agent sniffing
// ----------------------------------------------------------
// If you're not in IE (or IE version is less than 5) then:
// ie === undefined
// If you're in IE (>=5) then you can determine which version:
// ie === 7; // IE7
// Thus, to detect IE:
// if (ie) {}