This file contains hidden or 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 python3 | |
# -*- coding:utf-8 -*- | |
# Author: kakakaya, Date: Thu Mar 16 09:35:47 2017 | |
import openpyxl as px | |
def main(): | |
wb = px.load_workbook("sheet_with_cell_name.xlsx") | |
defined_names = wb.defined_names.definedName | |
for defined_name in defined_names: |
This file contains hidden or 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 python3 | |
# -*- coding:utf-8 -*- | |
# Author: kakakaya, Date: Tue Dec 13 12:20:26 2016 | |
# from pprint import pprint as p | |
from bs4 import BeautifulSoup | |
import json | |
def main(): | |
# read html |
This file contains hidden or 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 python3 | |
# -*- coding:utf-8 -*- | |
# Author: kakakaya, Date: Sat Mar 11 00:10:35 2017 | |
import csv | |
import json | |
"""Elonaでランダムに生成される異名の一覧を全て生成する。 | |
http://elona.wikiwiki.jp/?%3A%B2%F2%C0%CF%2F%A5%A2%A5%A4%A5%C6%A5%E0#w25458e3 | |
に基き、mode 0, mode 1, mode 2, mode 3それぞれの名前一覧を出力する。 | |
""" |
This file contains hidden or 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 bs4 import BeautifulSoup | |
import requests | |
soup = BeautifulSoup(requests.get("http://kaomoji.n-at.me/kaomoji.html").text, "html.parser") | |
kaomojis = filter(None, ['かおもじ\t'+i.getText()+'\t顔文字' if '\n' not in i.getText() else None for i in soup.find_all('span', class_='kaomoji')]) | |
with open('kaomoji_dic.txt', 'w') as f: | |
f.write('\n'.join(kaomojis)+'\n') |
This file contains hidden or 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
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAUEP9Ydtr8bP7i/qyuHCnUJvMp5jqO7X48qmA1JhprR kakakaya@Sharo |
This file contains hidden or 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
// -*- mode:js2; coding:utf-8 -*- | |
// Created: Wed Dec 9 17:00:55 2015 | |
function isXmasBusy() { | |
var calendars = CalendarApp.getAllOwnedCalendars(); | |
var xmas_eve = new Date(2015, 11,24); | |
var xmas = new Date(2015, 11, 25); | |
for (i=0,len=calendars.length;i!=len;i++) { | |
var calendar = calendars[i]; |
This file contains hidden or 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
head -1 /proc/meminfo | awk '{print int($2/1024/1000)}' |
This file contains hidden or 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
digraph Aikatsu { | |
rankdir=neato; | |
いちご -> 美月; | |
いちご -> セイラ; | |
いちご -> 斧; | |
あおい -> 蘭; | |
蘭 -> あおい; | |
あおい -> 斧; | |
蘭 -> 斧; | |
おとめ -> 斧; |
This file contains hidden or 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
;;; ika.el | |
;; Copyright (C) 2015 kakakaya | |
;; Author: kakakaya <kakakaya AT gmail.com> | |
;; Keywords: games | |
(defun ika () | |
(interactive) | |
(artist-mode)) |
NewerOlder