- SIROBAKO
- プリティーリズムシリーズ
- マイリトルポニー
- あいうら
- GJ部
- ゆゆ式
- まどか☆マギカ
import re | |
import urllib.request | |
import csv | |
from bs4 import BeautifulSoup | |
# page = 1,2,... | |
# prefnum = 01,02,...,47 | |
BASE_URL = "http://www.aikatsu.com/stars/playshop/list.php?p={page:d}&pref={prefnum:02d}" | |
rows = [["店名", "住所"]] |
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
""" | |
三者三葉の公式アイコン | |
http://sansyasanyou.com/special/twitter.html | |
を全部(333個)ダウンロードする. | |
""" | |
from urllib.request import urlretrieve |
// | |
// トランプのダイヤの3を作成する。 | |
// ポリゴン1,2,3を作り、ポリゴン1,3をそれぞれy軸側に-0.5, +0.5 移動させる。 | |
// 全体を45度回転させる。 | |
// | |
#include <cstdlib> | |
#include <cstdio> | |
#include "GL/glut.h" |
#include <cstdio> | |
#include <cstdlib> | |
#include "GL/glut.h" | |
using namespace std; | |
// 直方体の表面 | |
int face[][4] = { | |
{0, 3, 2, 1}, | |
{1, 2, 6, 5}, |
// | |
// 家に影を付ける | |
// | |
#include <cstdlib> | |
#include <cmath> | |
#include "GL/glut.h" | |
using namespace std; |
struct LCA { | |
typedef vector<vector<int>> Graph; | |
Graph G; | |
vector<int> depth; | |
vector<vector<int>> parent; | |
int n, root, MAXLOG; | |
LCA(int _n) { | |
root = 0; | |
n = _n; |
# | |
# ツイートは 2014/04/01 まで取得済み | |
# | |
import tweepy | |
import random | |
import time | |
def get_api(): |
// | |
// $ dmd margesort.d -main -unittest | |
// | |
import std.stdio; | |
T[] margesort(T)(T[] a) { | |
int n = a.length; | |
if (n <= 1) return a; | |
T[] left = a[0..n/2].margesort; |