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
let stores = []; | |
const links = $$('.dl-prefectures-body-list-item-link').map(e => e.href) | |
for (let i = 0; i < links.length; i++) { | |
const res = await fetch(links[i]) | |
const text = await res.text() | |
const doc = await (new DOMParser).parseFromString(text, "text/html"); | |
const cnt = doc.querySelectorAll('body > div.l-wrapper > main > section > ul > li').length | |
for (let i = 1; i <= cnt; i++) { | |
const nameSelector = "body > div.l-wrapper > main > section > ul > li:nth-child(" + i + ") > div > div.store-list-item-body > a > h2" | |
const addressSelector = "body > div.l-wrapper > main > section > ul > li:nth-child(" + i + ") > div > div.store-list-item-body > a > p.store-list-item-body-address" |
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
# development enviornment generator for python and visual studio | |
# ref. https://qiita.com/shibukawa/items/1650724daf117fad6ccd | |
PIPENV_VENV_IN_PROJECT=true; | |
mkdir $1 | |
cd $1 | |
pipenv install | |
mkdir .vscode | |
touch .vscode/extension.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
import java.io.UnsupportedEncodingException; | |
import com.google.bitcoin.core.AddressFormatException; | |
import com.google.bitcoin.core.Base58; | |
/** | |
* @author satou30 | |
* | |
*/ | |
public class Decrypt { |
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 java.util.stream.Stream; | |
public class FizzBuzzApp { | |
public static void main(String[] args) { | |
FizzBuzzApp app = new FizzBuzzApp(); | |
FizzBuzz fizzBuzz = app.getFizzBuzz(); | |
fizzBuzz.traditional(); |
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 requests | |
import simplejson | |
import sys | |
import time | |
BASE_URL = "https://api.loctouch.com/v1/geo/address_normalize" | |
def execute(): | |
for line in sys.stdin: |
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
# coding: utf-8 | |
from PIL import Image, ImageDraw | |
from math import sqrt | |
import random | |
def readfile(filename): | |
lines = [line for line in file(filename)] | |
# 最初の行は列のタイトル | |
colnames = lines[0].strip().split('\t')[1:] |