- macOS 10.13.6
- Xcode 10.1 (10B61)
いつの間にかビルドがうまく出来なくなったので対処。
import os | |
import time | |
import urllib.request | |
import zipfile | |
import pandas as pd | |
from pandarallel import pandarallel | |
URL = "https://www.post.japanpost.jp/zipcode/dl/utf/zip/utf_ken_all.zip" | |
ZIP_FILE_NAME = URL.split("/")[-1] |
#include <stdio.h> | |
#include <stdlib.h> | |
#define NUM_PATTERN 5 | |
#define MAX_LENGTH 255 | |
char user_input; | |
int idx; | |
char response[NUM_PATTERN][MAX_LENGTH]={ | |
{"さすがですね!"}, |
import re | |
import sqlite3 | |
import time | |
import requests | |
DB_PATH = 'wnjpn.db' | |
SWN_PATH = 'SentiWordNet_3.0.0_20130122.txt' | |
URL = 'https://script.google.com/macros/s/Please_write_here/exec?text=%s&source=en&target=ja' | |
RESULT_PATH = 'result.csv' |
#!/usr/bin/sh | |
git clone --depth=1 -b patch https://github.com/humem/cabocha /tmp/cabocha | |
cd /tmp/cabocha | |
./configure --with-charset=utf8 | |
make | |
make install | |
pip install git+https://github.com/taku910/cabocha.git#subdirectory=python |
#!/usr/bin/env python | |
# The MIT License (MIT) | |
# Copyright © 2015 Recruit Technologies Co.,Ltd. | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
# copies of the Software, and to permit persons to whom the Software is | |
# furnished to do so, subject to the following conditions: |
import glob | |
import html | |
import re | |
import sys | |
import jaconv | |
re_ogt = re.compile(' OrthographicTranscription="([^"]+)"') | |
re_a = re.compile('\;([^\)]+)\)?') | |
re_semicolon = re.compile(';([^\)]+)\)?') |
def mergesort(l): | |
if len(l) > 1: | |
mid = len(l) // 2 | |
left = l[:mid] | |
right = l[mid:] | |
left = mergesort(left) | |
right = mergesort(right) | |
i = 0 |
def quicksort(x): | |
if not x: | |
return [] | |
pivot = x[0] | |
smaller = quicksort([a for a in x[1:] if a <= pivot]) | |
bigger = quicksort([a for a in x[1:] if a > pivot]) | |
return(smaller + [pivot] + bigger) |
# -*- coding: utf-8 -*- | |
import re | |
from robobrowser import RoboBrowser | |
PIXIV_BASE_URL = 'https://www.pixiv.net' | |
TAG = '巴マミ' | |
MAX_PAGE = 190 | |
browser = RoboBrowser(parser='lxml', history=True) | |
browser.open('https://accounts.pixiv.net/login') |