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 'csv' | |
require 'uri' | |
require 'net/http' | |
require 'json' | |
CSV_REPOS_DATA = <<EOS | |
discourse,discourse,https://github.com/discourse/discourse | |
gitlabhq,gitlabhq,https://github.com/gitlabhq/gitlabhq | |
huginn,huginn,https://github.com/huginn/huginn | |
diaspora,diaspora,https://github.com/diaspora/diaspora |
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 'uri' | |
require 'net/http' | |
require 'json' | |
require 'ostruct' | |
require 'link_header' # Please execute 'gem install link_header' | |
class ApiClient | |
def initialize(access_token) | |
@access_token = access_token | |
end |
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
<!DOCTYPE html> | |
<html lang="ja"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>Cloud Vision API Test</title> | |
<!-- Bootstrap --> |
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 'formula' | |
require 'set' | |
DESCRIPTION = <<EOS | |
List unnecessary formulae except for specified and its dependant formulae | |
usage: | |
brew list-unnecessaries FORMULA... | |
exmaple: | |
brew list-unnecessaries git rbenv |