Skip to content

Instantly share code, notes, and snippets.

-----BEGIN PGP PUBLIC KEY BLOCK-----
mQENBGYARTQBCADpJtoQyH6SZYCdkBvx263xwD0NYiz7XInR+GyYpJdq873Wnkna
ST0PKPNnL39uFFY8CJlltQqjSAqw/o6qrRKD0BB15JfkZP/cjv44SGiQCvNANEle
K+TM1BmMSfk1RedwDUkCYQdHpVAKu4Sdby6FO7TqSEpNc8jnh0nMTXwP1nUr0bpV
KK3n7mJNQ0RAEmiaK0jGmMHe8p7h0FoC90quyp7Zbv33I8zOPtlEvx5q93GLuH3v
Epmenf2ATBWcC6mvNk3WC41EkM8HHki5Ee+00i3qwxZWclJ2EqMOvZnNCyrPic+2
uLNu7ma8BtcaUNk0KIYRutUB1ilSZEcI5423ABEBAAG0Lk5la29ubyBOYW5hIEtB
S0tPIEtBUkkgPDc3NDNAY2FsaWd1bGEtc2VhLm5ldD6JAVEEEwEIADsWIQRoi+tx
Z39JfBIvEf7bKQAb8RL19AUCZgBFNAIbAwULCQgHAgIiAgYVCgkICwIEFgIDAQIe
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@7kry
7kry / hoge.py
Created September 22, 2023 14:45
#!/usr/bin/env python
# coding: utf-8
# In[16]:
from tkinter import filedialog
from tkinter import messagebox
import csv
import xlwings
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import csv
import os
import os.path
import shutil
import sys
srcdir = sys.argv[1]
os.chdir(srcdir)
with open('activities.csv') as csvfile:
#!/usr/bin/env python
# coding: utf-8
# In[61]:
import PIL.Image as Image
import PIL.ImageDraw as Draw
import PIL.ImageFont as Font
import json
javascript: !(function() { var observer = new MutationObserver(function(MutationRecords, MutationObserver) { for (var i = 0; i < MutationRecords.length; ++i) { MutationRecords[i].addedNodes.forEach(function(elem) { console.log(elem); var msg = new SpeechSynthesisUtterance; var voices = window.speechSynthesis.getVoices(); msg.text = $(elem).find(".tw-comment-item-comment").text(); msg.lang = "ja-JP"; speechSynthesis.speak(msg) }) } }); observer.observe($(".tw-comment-list-view__scroller > div").get(0), { childList: true }) })();
@7kry
7kry / .gitignore
Last active October 21, 2019 04:45
Perspective with PIL
*/