This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# コンパイラ | |
CC = g++ | |
# コンパイルオプション | |
CFLAGS = -std=c++20 | |
# 実行ファイル名 | |
TARGET = Sample |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local wezterm = require 'wezterm'; | |
return { | |
disable_default_key_bindings = true, -- デフォルトのキーバインドを無効 | |
font = wezterm.font("SF Mono"), -- フォントの設定 | |
tab_bar_at_bottom = true, -- タブバーをボトムに設定 | |
keys = { | |
{key="c", mods="SUPER", action=wezterm.action{CopyTo="Clipboard"}}, | |
{key="v", mods="SUPER", action=wezterm.action{PasteFrom="Clipboard"}}, | |
{key="t", mods="SUPER", action=wezterm.action{SpawnTab="CurrentPaneDomain"}}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import fire | |
import glob | |
import gzip | |
import pandas as pd | |
from tqdm.auto import tqdm | |
import regex | |
from multiprocessing import Pool, cpu_count | |
import zlib | |
from pathlib import Path | |
from loguru import logger |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
############################################### | |
# tmuxでvim, python等を実行した時、nerdfontで # | |
# 起動アプリケーションとその引数を表示 # | |
############################################### | |
if [[ -n "$TMUX" ]]; then | |
TMUX_CURRENT_WINDOW=`tmux display-message -p '#I'` | |
fi | |
autoload -Uz add-zsh-hook | |
preexec_support_tmux () { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from google.cloud import language_v1 | |
def sample_analyze_syntax(text_content): | |
client = language_v1.LanguageServiceClient() | |
type_ = language_v1.Document.Type.PLAIN_TEXT | |
language = "ja" | |
document = {"content": text_content, "type_": type_, "language": language} | |
encoding_type = language_v1.EncodingType.UTF8 | |
response = client.analyze_syntax(request = {'document': document, 'encoding_type': encoding_type}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# Ported to Python from http://www.vim.org/scripts/script.php?script_id=1349 | |
print("Color indexes should be drawn in bold text of the same color.") | |
colored = [0] + [0x5f + 40 * n for n in range(0, 5)] | |
colored_palette = [ | |
"%02x/%02x/%02x" % (r, g, b) | |
for r in colored |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"global": { | |
"check_for_updates_on_startup": true, | |
"show_in_menu_bar": true, | |
"show_profile_name_in_menu_bar": false | |
}, | |
"profiles": [ | |
{ | |
"complex_modifications": { | |
"parameters": { |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" | |
Example application for the 'blessed' Terminal library for python. | |
This isn't a real progress bar, just a sample "animated prompt" of sorts that demonstrates the | |
separate move_x() and move_yx() capabilities, made mainly to test the `hpa' compatibility for | |
'screen' terminal type which fails to provide one, but blessed recognizes that it actually does, and | |
provides a proxy. | |
""" | |
from __future__ import print_function |
NewerOlder