Skip to content

Instantly share code, notes, and snippets.

View yuntan's full-sized avatar
💼
full time worker

Yuto Tokunaga yuntan

💼
full time worker
View GitHub Profile
--- 自動コマンド ---
ALECleanupGroup BufDelete
* if exists('*ale#engine#Cleanup') | call ale#engine#Cleanup(str2nr(expand('<abuf>'))) | endif
fzf_buffers BufDelete
* silent! call remove(g:fzf#vim#buffers, expand('<abuf>'))
filetypedetect BufEnter
*.scss :syntax sync fromstart
* call LaTeXtoUnicode#Refresh()
call s:L2UTrigger()
MyAutoCmd BufEnter
@yuntan
yuntan / proff.md
Created May 11, 2024 03:08
Keybase proof

Keybase proof

I hereby claim:

  • I am yuntan on github.
  • I am yuntan (https://keybase.io/yuntan) on keybase.
  • I have a public key ASBooBNK1T2X5YtuRAisinpzspKYwfRxX3cBJ-U_HQhNyAo

To claim this, I am signing this object:

@yuntan
yuntan / LknA8PMvmB4.txt
Created March 3, 2024 13:42
LLM fine-tuning
ユーザー:<START_OF_STREAM>
ユーザー:あ、メルさんだメルさんだ、来た来た来た
ユーザー:それでは、夜空メルさんへの質問がある方は挙手にてお願いしまーす。
システム:なんでしょうか!
ユーザー:はいはいはい!じゃあ白上いいですか!それじゃあ、はいはい行きますえっとですね、アセロラジュースがお好きとのことなんですけども、
システム:はい
ユーザー:実は赤い飲み物なら何でもいいという噂を聞いたんですが本当でしょうか?
システム:トマトジュースオッケー、イチゴジュースオッケー、ザクロオッケー
ユーザー:おーなんでもいい
システム:オッケーだね!
import os
import tensorflow as tf
if __name__ == "__main__":
print(os.environ["MY_ENV"])
@yuntan
yuntan / model.py
Created December 26, 2020 12:19
DeBlurNet
import tensorflow as tf
from tensorflow.keras import Model, Sequential
from tensorflow.keras.layers import (
Input, Add, Concatenate, Conv2D, Conv2DTranspose, BatchNormalization, ReLU,
Activation,
)
def conv_bn_relu(n_channels: int, kernel_size: int=3, strides: int=1,
name: str=None):
require 'gtk3'
class Model < GLib::Object
type_register
include Gio::ListModel
def initialize
super
require 'gtk3'
Gtk.init
class MyWidget < Gtk::Widget
type_register
def initialize
super
require 'gtk3'
class MyWidget < Gtk::Widget
type_register
def initialize()
super()
self.has_window = true
self.redraw_on_allocate = true
@yuntan
yuntan / id_rsa.pub
Last active September 15, 2019 07:55
Public key
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCpk7W4tMLbyXyzUcHPDDEF5qdM76gtdajRvJx8VBjAnPSLg8lERetAnn+H/h4CgJdBKIRp1PJFT1XRD2DRgJZzTGyUl0WWwpn/FQuUxoOtrDlGYcX3Bfp1gl+EswykBOyIRpH1TrYt8zZ1MX112jW/ET2IkYKetaEZ2qxXzczlAmLitj5QjUA5PFPc8vH2pDDWL+Dzzc+qHKNZStP4sk48Y2jaHPuV0NAjNfhCodnkRZpuHQFMnxBJl4xukBEJPLaBknWTeUje79EglQyc5dsjwL/fMo2MZyKad/G9oD2q+JqexWULzi8uJ6qWQDMEsymyG7livISL8DPa9Q34PxuuTh+RvQN1PjuNfDxOdpILolMTdtIDSauQFbh4o+ns057WHf0yDG04FpoqJLihDeYymvKX0gdC49lryaHzkrVLwLyp/m868wUipc9PEFhQen7mWe9BSKtSQ2DkvuU5PS0apJclbhH73HWOG1VrHSy0gaRrtAcc1KX4MdhiUaWVJyU= yuntan@Arch-X230
@yuntan
yuntan / custom.css
Last active April 20, 2020 05:17
writefreely custom CSS for listing page
body#collection section#wrapper {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
grid-auto-rows: 240px;
row-gap: 24px;
}
body#collection section#wrapper article {
margin-bottom: 0;
padding: 0 24px;