Skip to content

Instantly share code, notes, and snippets.

tanakeiQ tanakeiQ

Block or report user

Report or block tanakeiQ

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@tanakeiQ
tanakeiQ / warning-console.js
Created Jun 18, 2018
console.logでの警告のベスト・プラクティス
View warning-console.js
console.info(`%c このページでの使用しないでください。\n第三者のコマンドを実行すると、悪意のあるプログラムが実行される可能性があります`, 'font-size:32px; font-weight: bold;');
@tanakeiQ
tanakeiQ / circle-gauge-animation.swift
Last active May 6, 2018
Circle Gauge Animation Playground
View circle-gauge-animation.swift
// Refs: https://qiita.com/uin010bm/items/ff934d070d43a4666dbc
// Author: https://qiita.com/uin010bm
//Confirmed on Xcode 9.3(Swift 4.3)
//Change extenstion `swift` to `playground`.
import UIKit
import PlaygroundSupport
// CAShapeLayerインスタンスを生成
var circle: CAShapeLayer = CAShapeLayer()
@tanakeiQ
tanakeiQ / swift4-logger-service.swift
Created Feb 3, 2018
swift4-logger-service.swift
View swift4-logger-service.swift
public class Logger {
fileprivate enum Prefix: String {
case Info = "🍀"
case Warn = "🍋"
case Error = "🍎"
case Happy = "🎀"
}
public static func info(_ items: String...) {
print(serialize(items, prefix: .Info))
@tanakeiQ
tanakeiQ / modal-example.html
Last active Jan 16, 2018
Modal script in native javascript
View modal-example.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>
Modal test
</title>
</meta>
<link rel="stylesheet" href="modal.css">
</head>
@tanakeiQ
tanakeiQ / docker-es-clustering.md
Created Apr 18, 2017
dockerでらくちんelasticsearch clustering
View docker-es-clustering.md

1.elasticsearch.yml作成

network.host: 0.0.0.0
 
cluster.name: TANAKEIQ_ES

node.name: ${NODE_NAME}

# ESのバージョンが5.3以下の場合multicastが機能するため、無効化する
discovery.zen.ping.multicast.enabled: false
You can’t perform that action at this time.