Skip to content

Instantly share code, notes, and snippets.

View koolii's full-sized avatar
remote, cold, snow

t.kuriyama koolii

remote, cold, snow
  • Freelancer
  • Bangkok, Thailand
  • 10:55 (UTC +07:00)
View GitHub Profile
package main
import "fmt"
func main() {
for i := 0; i <= 100; i++ {
if i%15 == 0 {
fmt.Printf("FizzBuzz: %d\n", i)
} else if i%3 == 0 {
fmt.Printf("Fizz: %d\n", i)
@koolii
koolii / k8s.md
Last active January 15, 2020 19:59

セルフ・ヒーリング

実行条件にはプロセス監視以外にHTTP/TCPやシェルスクリプトで成否を設定することも可能

サービスディスカバリ

  • Istio
  • Linkerd
  • Contour
  • Ambassador
@koolii
koolii / SMBDIS.ASM
Created March 7, 2018 09:00 — forked from 1wErt3r/SMBDIS.ASM
A Comprehensive Super Mario Bros. Disassembly
;SMBDIS.ASM - A COMPREHENSIVE SUPER MARIO BROS. DISASSEMBLY
;by doppelganger (doppelheathen@gmail.com)
;This file is provided for your own use as-is. It will require the character rom data
;and an iNES file header to get it to work.
;There are so many people I have to thank for this, that taking all the credit for
;myself would be an unforgivable act of arrogance. Without their help this would
;probably not be possible. So I thank all the peeps in the nesdev scene whose insight into
;the 6502 and the NES helped me learn how it works (you guys know who you are, there's no
npm i -D eslint eslint-config-airbnb eslint-plugin-react eslint-plugin-jsx-a11y eslint-plugin-import
#!/bin/sh
PYVER=3.4.3
DL_MECAB=/var/tmp
PROJECT=project
PROJECT_PATH=/var/work
PIP_PACKAGE=require_modules
set -e
'use strict';
let getUniqueArray = (str, delimiter) => {
let uniqueStore = new Set();
str.split(delimiter).forEach(function(id) {
if (id === '' || id === null) {
return;
}
uniqueStore.add(id);
});
'use strict';
let getUniqueArrayCreator = () => {
let store = new Set();
return ({
add: function(...array) {
if (!array) {
return;
}
array.forEach(function(item) {
if(!item && item === '') {
@koolii
koolii / dummyCsv.js
Last active December 22, 2015 07:17
// 基本
// どのくらいの数をどの段階に分けるのか指定し、振り分ける
// 応用
// 最低限ここまでは値が合ったほうが良い
// 最高でもここまでの値で良い
/*
下記を目指す。
createParagraph(70, 5);
var formatter = function(csv) {
var lines = csv.split("\n");
var result = [];
for (var i=0; i<lines.length;i++) {
var array = str.split(",");
var lineResult = [];
for (var i=0; i<array.length; i++) {
var strVal = array[i];
@koolii
koolii / .eslintrc
Last active November 18, 2015 00:01
{
"extends": "eslint:recommended",
"env": {
"es6": true,
"node": true,
"browser": true,
},
"ecmaFeatures": {
"jsx": true
},