- sss
- ddd
- ccc
View calc-blood-type.py
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 |
View zshrc
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 () { |
View gcp-nlp-api-jp-koubun.py
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}) |
View true-color.py
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 |
View karabiner.json
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": { |
View elastic_japanese_example.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View Untitled.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View google_cals.py
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 |
View google_cals.py
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 |
View memo.md
NewerOlder