Skip to content

Instantly share code, notes, and snippets.

yokota kenji yokotak0527

Block or report user

Report or block yokotak0527

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
@yokotak0527
yokotak0527 / webpack.config.js
Last active Sep 20, 2019
webpack splitchunk 例
View webpack.config.js
optimization : {
splitChunks : {
name : false,
cacheGroups : {
default : false,
vendors : {
test : /node_modules/,
chunks (chunk) {
return chunk.name !== 'js/preload'
},
@yokotak0527
yokotak0527 / async2sync.js
Last active Aug 28, 2019
並列処理を直列処理にする案
View async2sync.js
function async1 () {
return new Promise(resolve => {
setTimeout(() => {
resolve('async1 done')
}, 3000)
})
}
function async2 () {
return new Promise(resolve => {
setTimeout(() => {
@yokotak0527
yokotak0527 / getfile.js
Created Aug 23, 2019
globでファイル一覧取得
View getfile.js
// node_modulesを除くjsファイル
glob.sync('{,!(node_modules)/**/}[!_]*.js')
// node_modulesを除くSassファイル (.sassと.scss)
glob.sync('{,!(node_modules)/**/}[!_]*.s[a|c]ss')
View blog-6506-components.pu
@startuml kubernetes components
skinparam monochrome true
skinparam shadowing false
skinparam linetype ortho
skinparam defaultFontName Cica
skinparam noteBackgroundColor white
rectangle kubectl
rectangle "Kubernetes Cluster" {
@yokotak0527
yokotak0527 / v-input.vue
Last active May 26, 2019
inputタグのradio,checkbox,text(etc.), submit,buttonをまとめたvueテンプレート
View v-input.vue
<template>
<div>
<v-radio v-if="type === 'radio'" />
<v-checkbox v-else-if="type === 'checkbox'" />
<v-button v-else-if="type === 'button' || type === 'submit'" />
<v-text v-else />
</div>
</template>
<script>
View keybase.md

Keybase proof

I hereby claim:

  • I am yokotak0527 on github.
  • I am yokotak0527 (https://keybase.io/yokotak0527) on keybase.
  • I have a public key ASBh0EFyiK1je-2pFf6BsucJLr2rOUl9Rw4LfEneZyHd3go

To claim this, I am signing this object:

@yokotak0527
yokotak0527 / async_series_with_generator.js
Created Feb 12, 2019
ジェネレータ関数を使った直接非同期通信
View async_series_with_generator.js
// ジェネレータ関数
const gfn = function * (start, end) {
while(start <= end) {
yield [expect Promise code]
start++
}
}
const g = gfn(1, 10)
@yokotak0527
yokotak0527 / Excel_cell_pointer.php
Last active May 23, 2018
Excelのラベルを参照するクラス
View Excel_cell_pointer.php
<?php
class Excel_cell_pointer {
private $map = ['A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Z'];
/**
*
* @param string $col_label // 列
* @param integer $row_label // 行
*/
public function __construct($col_label = 'A', $row_label = 1){
View gist:69b5b41d6be2c1d06ace8889f0a8eef0
- Backtraking
- Knight's tour problem
- N Queens Problem
- Cryptography
- Affine Cipher
- Caesar Cipher
- Dynamic Programming
- Catalan Number
- Fibonacci Sequence
- Integer Partition
@yokotak0527
yokotak0527 / js
Created Feb 14, 2016
簡易イベント管理
View js
!function(app){
let instance = null;
let listener = {};
let callback = {};
let nonameListener = 'event';
let nonameListenerNum = 0;
class Event{
constructor(){
You can’t perform that action at this time.