Skip to content

Instantly share code, notes, and snippets.

View aoitaku's full-sized avatar
🍷
ぶどうジュース

aotak aoitaku

🍷
ぶどうジュース
View GitHub Profile
@aoitaku
aoitaku / hide.html
Created October 24, 2021 16:43
被った文字のペアを消すやつ
<!doctype html>
<html lang="ja">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>フランスゴデイナ</title>
<style>
.content {
width: 50em;
margin: 2rem auto;
@aoitaku
aoitaku / index.html
Last active September 17, 2021 12:41 — forked from vivit-jc/index.html
ダイヤルアップクイズ用スクリプト
<!doctype html>
<html lang="ja">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>ポパパポピポパポ ピピョロロロピーピョロピーゴーーーーーピーーーーゴーーーーザーーーーーーーガピー</title>
<style>
#image {
height: 400px;
}
//=============================================================================
// Lunatlazur_EventCommandSkip.js
// ----------------------------------------------------------------------------
// Copyright (c) 2018 Taku Aoi
// This plugin is released under the zlib/libpng License.
// http://zlib.net/zlib_license.html
// ----------------------------------------------------------------------------
// Version
// 1.0.0 2018/04/01
// ----------------------------------------------------------------------------
@aoitaku
aoitaku / PictureCommand.js
Last active August 22, 2020 09:47
MZ用プラグインの練習
/**
* PictureCommand.js
*/
/*:ja
* @target MZ
* @plugindesc プラグインコマンドからピクチャの操作を行えるようにします。
* @author aoitaku
* @license Zlib
*
* @help PictureCommand.js
//=============================================================================
// Lunatlazur_MessageTextShake.js
// ----------------------------------------------------------------------------
// Copyright (c) 2020 Taku Aoi
// This plugin is released under the zlib/libpng License.
// http://zlib.net/zlib_license.html
// ----------------------------------------------------------------------------
// Version
// 1.0.0 2020/07/24
// ----------------------------------------------------------------------------
@aoitaku
aoitaku / oas-v3.0-schema.json
Last active June 25, 2018 05:06
oas 3.0 schema
{
"title": "A JSON Schema for OpenAPI 3.0 API.",
"id": "http://swagger.io/v3/schema.json#",
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"required": [
"openapi",
"info",
"paths"
],
@aoitaku
aoitaku / chunkBy.ts
Last active May 30, 2022 19:32
chunkBy mixin for lodash
/// <reference path='typings/index.d.ts' />
import * as _ from 'lodash'
declare module 'lodash' {
// tslint:disable-next-line:interface-name
interface LoDashStatic {
chunkBy <T> (array: T[], predicate: (element: T) => boolean): T[][]
}
}
_.mixin({
chunkBy <T> (array: T[], predicate: (element: T) => boolean): T[][] {
@aoitaku
aoitaku / quincite_for_rgss.rb
Created December 21, 2016 09:32
quincite_for_rgss
module Quincite
module UI
module Event
def fire(type, current_target, target, *args)
__send__(type, current_target, target, *args)
end
@aoitaku
aoitaku / rpk.rb
Created December 7, 2016 16:01
rpk
module Rpk
module Win32
class API
def self.setup
require 'fiddle/import'
const_set(:DLL, {}) unless defined? DLL
@aoitaku
aoitaku / Proc#[]を利用.rb
Last active August 25, 2016 14:36
このコードどうにかしてみました http://d.hatena.ne.jp/t_tutiya/20160822/1471881932
def _CHECK_(yield_stack, options, &block)
# Proc#[] は Proc#call の別名で、これを利用すると Hash#[] と同じように呼び出せるようになります
datastore = options[:_ARGUMENT_] ? @root_control.send(options[:_ARGUMENT_]) : proc {|key| send(key) }
# いずれかが真のときに true ということならここも any? が使えます
result = options.any? do |condition, value|
case condition
#指定されたデータと値がイコールかどうか
when :equal
value.any?{|key, val| datastore[key] == val}
#指定されたデータと値がイコールでない場合