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 / file0.sh
Last active November 5, 2018 21:49
Ubuntu 18.04LTSにLEMP+Ajenti環境構築 ref: https://qiita.com/logue/items/2b7ba8db1f0bfd65d520
sudo apt install python-software-properties
sudo add-apt-repository ppa:ondrej/php
sudo apt update
sudo apt install -y php7.2 php7.2-mbstring php7.2-mysql
@logue
logue / file0.txt
Last active May 13, 2017 12:41
Nukkit+DockerによるMinecraft PE/Win10 マルチサーバー構築メモ ref: http://qiita.com/logue/items/1e3e60ecfa10e6fa8a0e
apt-get install docker
@logue
logue / Reverb.ts
Last active January 6, 2018 00:00
AudioContextの勉強のために作った、音にリバーブエフェクトをかけるためのライブラリ。まだ未完成。
/**
* @file Add reverb effect.
* @copyright © 2017,2018 By Logue <http://logue.be/>.
* @license MIT
* Adapted from https://github.com/web-audio-components/simple-reverb
*/
export default class Reverb {
private ctx: AudioContext
private outputNode: GainNode
private wetGainNode: GainNode
/**
* 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 / bad-behavior-sqlite.php
Created March 13, 2014 07:03
Bad Behavior Sqlite port.
<?php
/*
Bad Behavior - detects and blocks unwanted Web accesses
Copyright (C) 2005,2006,2007,2008,2009,2010,2011,2012 Michael Hampton
Bad Behavior is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the Free
Software Foundation; either version 3 of the License, or (at your option) any
later version.
@logue
logue / php.khp
Created May 18, 2013 01:55
サクラエディタ用PHP5.4 キーワードファイル
; PHP マニュアル 2013-05-17版より生成
; (c) 1997-2013 the PHP Documentation Group
apc_add /// bool apc_add ( string $key [, mixed $var [, int $ttl = 0 ]] )\n新規の変数をデータ領域にキャッシュする
apc_bin_dump /// string apc_bin_dump ([ array $files [, array $user_vars ]] )\n指定したファイルおよびユーザー変数のバイナリダンプを取得する
apc_bin_dumpfile /// int apc_bin_dumpfile ( array $files , array $user_vars , string $filename [, int $flags = 0 [, resource $context ]] )\nキャッシュされたファイルやユーザー変数のバイナリダンプをファイルに出力する
apc_bin_load /// bool apc_bin_load ( string $data [, int $flags = 0 ] )\nバイナリダンプを APC のファイル/ユーザーキャッシュに読み込む
apc_bin_loadfile /// bool apc_bin_loadfile ( string $filename [, resource $context [, int $flags ]] )\nバイナリダンプをファイルから APC のファイル/ユーザーキャッシュに読み込む
apc_cache_info /// array apc_cache_info ([ string $cache_type [, bool $limited = false ]] )\nAPC のデータから、キャッシュされた情報を取得する
apc_cas /// bool apc_cas ( string $key , int $old , int $new )\n古い値を新しい値に更新する
apc_clear_cache /// bool apc_clear_cache ([ string $cache_type ] )\nAPC キャッシュをクリアする
@logue
logue / php.kwd
Created May 10, 2013 07:47
Sakura Editor用PHP5.4キーワードファイル
// PHP キーワード定義ファイル
// by Logue
// http://logue.be/
// 2013-05-10
// 参考文献 http://www.php.net/manual/ja/
// 予約語
// キーワードのリスト
abstract
and
@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
*/
@logue
logue / MabinogiEnv.cs
Created May 12, 2012 13:29
Mabinogi Environment Classes
/*!
* Mabinogi Environment Class
* Copyright (C) 2012 by Logue <http://logue.be/>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License version 3
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
// ----------------------------------------------------------
// 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) {}