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 -*- | |
require 'open-uri' | |
require 'json' | |
require 'sru' | |
require 'pry' | |
require 'nokogiri' | |
class Twitter | |
# Twitterのトレンドワードを配列で返す | |
def trends |
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 -*- | |
require 'uri' | |
require 'csv' | |
require 'mechanize' | |
require 'hashie' | |
class Booklog | |
def initialize | |
@agent = Mechanize.new |
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
require 'open-uri' | |
require 'json' | |
module NDCLD | |
# NDCコードからラベルを取得するためのライブラリ | |
class NDC | |
SPARQL_ENDPOINT = "http://www.kanzaki.com/works/2015/ndc-ld/sparql" | |
attr_accessor :code |
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
@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 === |
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
#!/usr/bin/env bash | |
docker run --rm -v $PWD:/workdir paperist/alpine-texlive-ja latexmk $@ |