This file contains hidden or 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
Available idols: | |
========= | |
11 | |
Juri, Otome, Akari, Sumire, Ichigo, Hinaki, Madoka, Rin | |
(Vampire Mystery, Luminas, Vanilla Chili Pepper, DansingDiva, Jonetsu Jalapeño, Skips♪, Oshare Kaito Swallowtailshin, Aikatsu! Sensei, Tsunagaru Baton, Oto | |
me to Hinaki no Mattari Saka, Gogo wa Ichi Ichi Ichigo Kibun) | |
========= | |
10 | |
Juri, Sakura, Otome, Akari, Sumire, Shion, Ichigo, Hinaki | |
(Vampire Mystery, Powax2PuRiRiN, Luminas, Jonetsu Jalapeño, Oshare Kaito Swallowtailshin, Fushigi no Kuni no Alice, Aikatsu! Sensei, Tsunagaru Baton, Otome |
This file contains hidden or 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
sealed abstract class Idol(val id: String) | |
case class Subunit(name: String, members: Set[Idol]) | |
object Subunit { | |
def apply(name: String, members: Idol*): Subunit = apply(name, members.toSet) | |
} | |
case class IdolUnit(members: Set[Idol], subunits: Seq[Subunit]) |
This file contains hidden or 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
source 'https://rubygems.org' | |
gem 'twitter' | |
gem 'dotenv' |
This file contains hidden or 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 | |
title='恋するみたいなキャラメリゼ' | |
curl -s 'http://www.clubdam.com/app/search/searchKeywordKaraoke.html' \ | |
-H 'Content-Type: application/x-www-form-urlencoded' \ | |
--data "keyword=$title&searchType=1&matchOption=0&x=0&y=0" \ | |
--compressed \ | |
| grep -i $title \ | |
| perl -pe 's/<.*?>/ /g' |
This file contains hidden or 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
# This is pretty bad code. Don't use it expecting it to work well | |
require 'net/http' | |
require 'uri' | |
require 'nokogiri' | |
# copied and pasted from: | |
# http://ruby-doc.org/stdlib-2.2.3/libdoc/net/http/rdoc/Net/HTTP.html#class-Net::HTTP-label-Following+Redirection | |
def fetch(uri_str, limit = 2) | |
raise ArgumentError, 'HTTP redirect too deep' if limit == 0 |
NewerOlder