Skip to content

Instantly share code, notes, and snippets.

View sankichi92's full-sized avatar

Takahiro Miyoshi sankichi92

View GitHub Profile
@sankichi92
sankichi92 / 2023-11-08-tellus-traveler-demo.ipynb
Last active November 8, 2023 15:01
2023-11-08 tellus-traveler-demo.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@sankichi92
sankichi92 / tsa.ipynb
Last active February 16, 2023 04:37
沖本竜義『経済・ファイナンスデータの計量時系列分析』の章末問題
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@sankichi92
sankichi92 / jserver.rb
Last active July 17, 2016 04:14
Service Computing Assignment 3 - Practice of Information Systems
require 'savon'
source_lang, target_lang, source = ARGV
wsdl = 'http://langrid.org/service_manager/wsdl/KyotoUJServer'
auth = %w(username password) # TODO: replace username and password with yours
client = Savon.client(wsdl: wsdl, basic_auth: auth)
response = client.call(:translate) do
@sankichi92
sankichi92 / zipcode_to_geocode.rb
Last active July 9, 2016 06:55
Service Computing Assignment 4 - Practice of Information Systems
require 'net/http'
require 'uri'
require 'json'
raise ArgumentError, "required argument 'zipcode' not found" if ARGV.empty?
ZIPCODE = ARGV[0]
API_KEY = ''.freeze # TODO: fill in your Google Maps Geocoding API key
def get_hash_from_json_web_api(uri, **params)
@sankichi92
sankichi92 / gnavi_rest.html
Last active June 28, 2016 01:59
Geolocation APIから現在位置を取り出して,ぐるなびでレストラン検索
<!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>現在位置からぐるなび検索</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css">
</head>
<body>
@sankichi92
sankichi92 / QuickSort.java
Last active August 29, 2015 14:03
クイックソート
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class QuickSort {
private static final int LEFT = 0;
private static final int RIGHT = 1;
protected static void exchange(int[] a, int i, int j) {