Skip to content

Instantly share code, notes, and snippets.

View 4513ECHO's full-sized avatar

Hibiki 4513ECHO

View GitHub Profile
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
[n for n in [{}] if not(n.update({"r":__import__("random")}) or n.update({"d":("●","●","●","▲","▲","■")}) or n.update({"c":1000}) or [print(f"{x}: {y:.3%}") for x, y in {x:([sorted([n["r"].choice(n["d"]) for _ in [0,0]]) for _ in range(n["c"])].count(sorted([x[0],x[1]]))/n["c"]) for x in {x+y for x in n["d"] for y in n["d"]}}.items()]) or None]
@4513ECHO
4513ECHO / CC0-1.0.md
Last active February 3, 2022 14:42
License templates

Creative Commons Legal Code

CC0 1.0 Universal

CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE
LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN
ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS
INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES
REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS

PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM

Minimal .vimrc

if &compatible
  set nocompatible
endif
let g:denops#debug = v:true
let g:denops#trace = v:true
set rtp+=~/.cache/vim/dein/repos/github.com/vim-denops/denops.vim
---
main:
shell: zsh
filter_command: fzf --ansi --no-preview --height=40% --reverse
http:
- name: high-moctane/nextword-data
description: Dataset for nextword.
url: https://github.com/high-moctane/nextword-data/archive/refs/tags/large.tar.gz
command:
[tool.poetry]
name = "discord-bot"
version = "0.0.1"
description = ""
authors = ["Hibiki(4513ECHO) <4513echo@gmail.com>"]
license = "MIT"
repository = "https://github.com/4513ECHO/discord-bot"
[tool.poetry.dependencies]
python = "^3.9"
@4513ECHO
4513ECHO / vimrc.vim
Last active July 1, 2022 13:12
sample function of kana/vim-gf-user
function! gf#vimrc#find() abort
let path = expand('<cfile>')
let [line, col] = [0, 0]
if path =~# '\v:\d+%(:\d+)?:?$'
let line = matchstr(path, '\v\d+\ze%(:\d+)?:?$')
let col = matchstr(path, '\v:\d+:\zs\d+\ze:?$')
let path = matchstr(path, '\v.{-}\ze:\d+%(:\d+)?:?$')
endif
if path =~# '^file://'
let path = substitute(path, '^file://', '', '')
恋愛裁判 40mP
alive 市瀬るぽ
on the rocks OSTER PROJECT
リンちゃんなう! オワタP
パラジクロロベンゼン オワタP
フロムトーキョー 夏代孝明
エンドマークに希望と涙を添えて cosMo@暴走P
雨とペトラ バルーン
シャルル バルーン
メーベル バルーン