Skip to content

Instantly share code, notes, and snippets.

View tsunekawa's full-sized avatar

Mao Tsunekawa tsunekawa

View GitHub Profile
@tsunekawa
tsunekawa / dcr-latexmk
Last active October 2, 2018 10:27
latexmk with Docker
#!/usr/bin/env bash
docker run --rm -v $PWD:/workdir paperist/alpine-texlive-ja latexmk $@
@tsunekawa
tsunekawa / bibliobattle-ld.ttl
Created December 13, 2015 14:06
ビブリオバトル戦歴( http://www.kunimiya.info/bibliobattle/ )を生成するためのデータおよびスクリプト
@base <http://www.kunimiya.info/bibliobattle/> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix cc: <http://creativecommons.org/ns#> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix schema: <http://schema.org/> .
@prefix biblio: <http://bibliobattle-records/terms/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
# === Description ===
require 'open-uri'
require 'json'
module NDCLD
# NDCコードからラベルを取得するためのライブラリ
class NDC
SPARQL_ENDPOINT = "http://www.kanzaki.com/works/2015/ndc-ld/sparql"
attr_accessor :code
# -*- coding: utf-8 -*-
require 'uri'
require 'csv'
require 'mechanize'
require 'hashie'
class Booklog
def initialize
@agent = Mechanize.new
#-*- coding:utf-8 -*-
require 'open-uri'
require 'json'
require 'sru'
require 'pry'
require 'nokogiri'
class Twitter
# Twitterのトレンドワードを配列で返す
def trends