Skip to content

Instantly share code, notes, and snippets.

View kazuya-k-ishibashi's full-sized avatar

kazuya-k-ishibashi

View GitHub Profile
package com.kishibashi.desigh.pattern.factory;
/**
* コンテンツの文字列長を表すクラスです。
*
* オブジェクト指向の理念に基づき、単一の概念を表す一つのクラスを定義します。
*
* 文字列長自体を引数にインスタンスを生成するパターンと、
* 指定された文字列の文字列長を示すインスタンスを生成するパターンがほしいのです。
*
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>drop image</title>
<style>
/* dropエリアのwidth, heightを確保しておかないとdropイベントが動かない(当然ながら) */
body {
width: 60em;
height: 48em;
@echo off
setlocal enabledelayedexpansion
set BAT_DIR=%~dp0
:: config
set r_flg=0
:: execute
import resolve from "rollup-plugin-node-resolve"
import commonjs from "rollup-plugin-commonjs"
import includePaths from "rollup-plugin-includepaths"
import buble from "rollup-plugin-buble"
export default {
input: "./src/index.js",
output: {
file: "./dist/bundle.js",
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>index</title>
<style>
.main {
width: 60em;
height: 60em;
@kazuya-k-ishibashi
kazuya-k-ishibashi / download_text.html
Last active December 29, 2017 13:20
download text file by browser.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>log parse</title>
</head>
<body>
<textarea id="input"></textarea>
<button id="download" type="button">download</button>
<script>
@kazuya-k-ishibashi
kazuya-k-ishibashi / QS.java
Created November 27, 2017 22:16
querystring parser.
package dev.kishibashi.common.module.querystring;
import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
/**
*
* @author kishibashi