Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 17 lines (16 sloc) 562 Bytes
#!/usr/bin/ruby
# coding: utf-8
#
# Scrapbox上にリストしたなぞなぞ問題プールからランダムに問題を選択してeasy.htmlを開く
# https://github.com/masui/EpisoQ/
#
# データ例: https://Scrapbox.io/masui/県名なぞなぞ
#
# % episoq masui 県名なぞなぞ 3
#
project = ARGV[0] || 'masui'
pagetitle = ARGV[1] || '県名なぞなぞ'
nquestions = ARGV[2] || 10
js = ARGV[3] || 'episopass.js'
url = "https://masui.github.io/EpisoQ/?qa=https://scrapbox.io/api/code/#{project}/#{pagetitle}/#{js}"
system "open '#{url}'"
You can’t perform that action at this time.