Skip to content

Instantly share code, notes, and snippets.

View odanado's full-sized avatar

odanado odanado

View GitHub Profile
@startuml
UA -> App: /login
UA <-- App: Redirect
UA -> 認可サーバー: /auhorize
UA <- 認可サーバー: ログインページ表示
UA -> 認可サーバー: ログイン
UA <- 認可サーバー: 認可(AppにXXXを許可しますか?
UA -> 認可サーバー: OK
UA <-- 認可サーバー: Redierct
UA -> App: /callback?code=xxx&state=xxx
@voluntas
voluntas / loadtest.rst
Last active April 3, 2024 03:25
負荷試験コトハジメ
@ihsgnef
ihsgnef / colorize_text.py
Last active January 17, 2024 02:01
Visualize attention over text with background colors
import numpy as np
import matplotlib
import matplotlib.pyplot as plt
def colorize(words, color_array):
# words is a list of words
# color_array is an array of numbers between 0 and 1 of length equal to words
cmap = matplotlib.cm.get_cmap('RdBu')
template = '<span class="barcode"; style="color: black; background-color: {}">{}</span>'
colored_string = ''
@HyperBrain
HyperBrain / lifecycle-cheat-sheet.md
Last active March 20, 2024 00:17
Serverless Lifecycle Cheat Sheet

Serverless plugin author's cheat sheet

This cheat sheet provides a detailed overview of the exposed lifecycle events and available commands (and entrypoints) of the Serverless framework, that can be hooked by plugins (internal and external ones). The document is structured by the commands invoked by the user.

Lifecycle events are shown as the globally available outer events (all providers) and sub lifecycle events that are provider specific in the called order. Currently only the AWS provider is shown. If you have information about the other provider,

@mvoelk
mvoelk / resnet-152_keras.py
Last active March 11, 2022 08:06
Resnet-152 pre-trained model in TF Keras 2.x
# -*- coding: utf-8 -*-
import cv2
import numpy as np
from tensorflow.keras.layers import Input, Dense, Conv2D, MaxPool2D, AvgPool2D, Activation
from tensorflow.keras.layers import Layer, BatchNormalization, ZeroPadding2D, Flatten, add
from tensorflow.keras.optimizers import SGD
from tensorflow.keras.models import Model
from tensorflow.keras import initializers
Japanese English French Spanish German Italian Korean MandarinChinese CantoneseChinese
0 あくしゅう Stench Puanteur Tanfo Duftnote Hedor 악취 恶臭 惡臭
1 あめふらし Drizzle Crachin Piovischio Niesel Llovizna 잔비 降雨 降雨
2 かそく Speed Boost Turbo Acceleratore Temposchub Impulso 가속 加速 加速
3 カブトアーマー Battle Armor Armurbaston Lottascudo Kampfpanzer Armadura Batalla 전투무장 战斗盔甲 戰鬥盔甲
4 がんじょう Sturdy Fermeté Vigore Robustheit Robustez 옹골참 结实 結實
5 しめりけ Damp Moiteur Umidità Feuchtigkeit Humedad 습기 湿气 濕氣
6 じゅうなん Limber Échauffement Scioltezza Flexibilität Flexibilidad 유연 柔软 柔軟
7 すながくれ Sand Veil Voile Sable Sabbiavelo Sandschleier Velo Arena 모래숨기 沙隐 沙隱
8 せいでんき Static Statik Statico Statik Elec. Estática 정전기 静电 靜電
@sskwwskwww
sskwwskwww / Inv.vb
Created December 12, 2016 15:16
SM孵化最下位bit列から元の乱数列を計算する奴
Public Module Inv
Private ReadOnly invlist() As ULong = {&HAF630C9B9374B832UL, &H5FC1AAB2E39C4434UL, &HBD3BDA1869A675F1UL, &H1085296E28C0425AUL, &H2C23BA331C3BE6FCUL, &H31C7020BDEBC413DUL, &H69E216E9BBD26EC9UL, &H224AEB96ADD37392UL, &H7E22D643E79CD92EUL, &H2A335AD5F6E13D06UL, &HDEB7E9E63117D9ABUL, &H2EC75958BA057AD8UL, &HE769C722C8A18CB0UL, &H2CD358B8CFE73970UL, &H53582C1F25385E43UL, &H2DEB94943D604BB2UL, &H347150FC3CB5F0FEUL, &H2D6C077E2A7A2373UL, &H2FF951D9B993151UL, &H2D2343FDB9BAB82AUL, &H2F551181AE422688UL, &H5D237E3D6F7DCB49UL, &HDECC07E80CC01041UL, &H30C48335335FEB7FUL, &HA925A653684A5D01UL, &H4B79F55CC2563B50UL, &H16F3746C77F1BD4DUL, &H668CDA849CD2E78CUL, &H1E6349B08F0545C8UL, &H40160FF7C6DB891DUL, &HFA7967F7689DD586UL, &H32F3516717ECA59FUL, &H4A3130D70705F98CUL, &H7DA1B0D3E68B56C3UL, &HA827F3266CCF66A6UL, &H26822282FAD804BUL, &HEC6D5D890574B761UL, &H71441643F3F1F14EUL, &H90C1691508849DD0UL, &H4C66DA6DF0F8D52DUL, &H342643143AFBB98CUL, &H68D2E0330E2D5AB6UL, &H18913AE950077189UL, &H3869A1AD6FF21DBD
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@TsunaMoo
TsunaMoo / GAME_MASTER_POKEMON_v0_2.tsv
Last active August 9, 2023 12:10 — forked from anonymous/GAME_MASTER_POKEMON_v0_2.tsv
Pokemon from GAME_MASTER protobuf file v0.2 in a .tsv
We can make this file beautiful and searchable if this error is corrected: It looks like row 4 should actually have 31 columns, instead of 20. in line 3.
PkMn Identifier EvolvesFrom EvolvesTo EvoChainID EvoStage EvolutionPips BaseStamina BaseAttack BaseDefense Type1 Type2 BaseCaptureRate BaseFleeRate CollisionRadiusM CollisionHeightM CollisionHeadRadiusM MovementType MovementTimerS JumpTimeS AttackTimerS QuickMoves CinematicMoves PokemonClass PokedexHeightM PokedexWeightKg HeightStdDev WeightStdDev CandyFamily CandyToEvolve AnimTime
1 Bulbasaur 0 Ivysaur 1 1 NORMAL 90 126 126 GRASS POISON 0,16 0,10 0,38 0,65 0,27 JUMP 10,00 1,15 29,00 Vine Whip, Tackle Sludge Bomb, Seed Bomb, Power Whip 1,00 0,70 6,90 0,09 0,86 001_BULBASAUR 25 6d56d53fdaac2a3f6d56d53f93a9ea3f0000000036ab0a403333b33fbfbbbb3f
2 Ivysaur Bulbasaur Venusaur 1 2 NORMAL 120 156 158 GRASS POISON 0,08 0,07 0,32 0,64 0,25 JUMP 23,00 1,50 8,00 Razor Leaf, Vine Whip Sludge Bomb, Solar Beam, Power Whip 1,00 1,00 13,00 0,13 1,63 001_BULBASAUR 100 36ab2a40daac2a3f6d56d53f36ab0a4000000000000000406d56d53fdbdddd3f
3 Venusaur Ivysaur 0 1 3 NORMAL 160 198 200 GRASS POISON 0,04 0,05 0,76 1,03 0,38 JUMP 11,00 1,25
@KazWolfe
KazWolfe / Pokemon GO Data Dump.txt
Last active February 28, 2022 04:27
A data dump of a lot of cool Pokemon GO facts
###########
# Pokemon GO Data Dump (in no order)
# By Kaz Wolfe (@KazWolfe on gaming.stackexhange.com)
# Dump version 3.3, pulled from 0.29.0
#
# Feel free to use this dump in anything, but please link back to it!
# This ensures that people can see and use the source of the data
# (which updates regularly), and find out new things.
#
# Thanks Anonymous for some data: https://gist.github.com/anonymous/077d6dea82d58b8febde54ae9729b1bf