Skip to content

Instantly share code, notes, and snippets.

View KagamiChan's full-sized avatar
❤️
Pray for KyoAni

かがみ KagamiChan

❤️
Pray for KyoAni
View GitHub Profile
{
repository(name: "poi", owner: "poooi") {
releases(last: 100) {
nodes {
releaseAssets(first: 100) {
nodes {
name
downloadUrl
}
pageInfo {
@KagamiChan
KagamiChan / data.json
Last active December 3, 2018 18:14
fr i18n for poi
{
"HP": "PdV",
"Armor": "Armure",
"Firepower": "Puissance de feu",
"Torpedo": "Torpille",
"Speed": "Vitesse",
"Bombing": "Bombardement",
"AA": "AA",
"ASW": "ASM",
"Accuracy": "Précision",
@KagamiChan
KagamiChan / poc.js
Created August 17, 2018 15:07
ship full image
const secrets = {
resource: [6657, 5699, 3371, 8909, 7719, 6229, 5449, 8561, 2987, 5501, 3127, 9319, 4365, 9811, 9927, 2423, 3439, 1865, 5925, 4409, 5509, 1517, 9695, 9255, 5325, 3691, 5519, 6949, 5607, 9539, 4133, 7795, 5465, 2659, 6381, 6875, 4019, 9195, 5645, 2887, 1213, 1815, 8671, 3015, 3147, 2991, 7977, 7045, 1619, 7909, 4451, 6573, 4545, 8251, 5983, 2849, 7249, 7449, 9477, 5963, 2711, 9019, 7375, 2201, 5631, 4893, 7653, 3719, 8819, 5839, 1853, 9843, 9119, 7023, 5681, 2345, 9873, 6349, 9315, 3795, 9737, 4633, 4173, 7549, 7171, 6147, 4723, 5039, 2723, 7815, 6201, 5999, 5339, 4431, 2911, 4435, 3611, 4423, 9517, 3243],
voice: [2475, 6547, 1471, 8691, 7847, 3595, 1767, 3311, 2507, 9651, 5321, 4473, 7117, 5947, 9489, 2669, 8741, 6149, 1301, 7297, 2975, 6413, 8391, 9705, 2243, 2091, 4231, 3107, 9499, 4205, 6013, 3393, 6401, 6985, 3683, 9447, 3287, 5181, 7587, 9353, 2135, 4947, 5405, 5223, 9457, 5767, 9265, 8191, 3927, 3061, 2805, 3273, 7331],
}
const createKey = function (t) {
let e = 0
if (null != t
@KagamiChan
KagamiChan / scripts.txt
Last active February 27, 2018 09:43
Tanaka
0="気のせいだった。"
1="敵影を見ず。"
2=能動分岐
3="穏やかな海です。"
4="穏やかな海峡です。"
5="警戒が必要です。"
6="静かな海です。"
7="艦隊は対潜警戒進撃中。引き続き、対潜対空警戒を厳とせよ。"
8="敵哨戒機らしき機影認む。空襲の恐れあり。対空警戒を厳とせよ!"
9="1YB第一第二部隊栗田艦隊はパラワン水道を進撃中。現海域に敵影なし。警戒を厳とせよ!"
@KagamiChan
KagamiChan / using_jsx_in_vue.md
Last active March 4, 2018 17:47
How to turn vue template into JSX, a.k.a using JSX in Vue

How to turn vue template into JSX a.k.a using JSX in Vue

v-bind & v-on

<vue-component :value="value" @click="handleClick" />
<input :value="value" @click="handleClick" />
@KagamiChan
KagamiChan / text.md
Last active November 3, 2017 05:24
List of explicit dependencies of poi, a.k.a. packages shipped with poi

If a npm package is listed as explicit dependency in poi's package.json, this means that poi releases will contains a copy of the package. And then plugin author can directly import the package without adding to plugin's dependency. As we're working on 8.0 version, it might be a good time to do a housekeeping and add more packages that will be used.

Attention:

  • poi release does not ship with dev-deps, do not expect to safely use them in plugins.
  • We'll update packages when it is necessary (e.g. security issues), or when we feel it is time to

It the following table, CORE means that this is considered solid part of poi, we would seldom replace or remove them

| package | desc. | who's using it |

@KagamiChan
KagamiChan / viewer_or_browser.text
Last active October 13, 2017 18:09
discussion on viewer or browser for poi
Kagami, [12.10.17 09:53]
besides,why is the channel named poi-viewer
Kagami, [12.10.17 09:54]
should it be poi-browser or not?
Javran Cheng, [12.10.17 09:58]
well, discord guys tend to call it poi viewer, so I figure that would be fine
Kagami, [12.10.17 10:06]
@KagamiChan
KagamiChan / slotitemicon.es
Last active July 21, 2017 13:40
performance test
import fs from 'fs-extra'
import classnames from 'classnames'
import React from 'react'
import PropTypes from 'prop-types'
const readPngAsDataURL = path => {
const buf = fs.readFileSync(path)
return `data:image/png;base64,${buf.toString('base64')}`
}
@KagamiChan
KagamiChan / res.json
Created June 26, 2017 16:19
kancook result 170627
{
"2": {
"0": {
"-1": {
"fuel": 10,
"ammo": 30,
"steel": 60,
"bauxite": 0,
"reqItemId": -1,
"reqItemCount": 0,
@KagamiChan
KagamiChan / .vimrc
Last active June 15, 2017 17:50
vimrc
execute pathogen#infect()
syntax on
filetype plugin indent on
let g:jsx_ext_required = 0
nmap <silent> <C-k> <Plug>(ale_previous_wrap)
nmap <silent> <C-j> <Plug>(ale_next_wrap)
set background=dark
colorscheme base16-eighties