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
package main | |
import ( | |
"fmt" | |
"math" | |
"reflect" | |
) | |
func main() { | |
// 深夜料金と高速料金のみオプションあり |
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
package main | |
import ( | |
"fmt" | |
"math" | |
"reflect" | |
) | |
func main() { | |
// 深夜料金と高速料金のみオプションあり |
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
package main | |
import ( | |
"fmt" | |
"math" | |
) | |
func main() { | |
// 深夜料金と高速料金のみオプションあり | |
rideInfo := NewRideInfo(6.5, &Options{nightTimeSurcharge: true, highwayTolls: 600}) |
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
package main | |
import ( | |
"fmt" | |
"math" | |
) | |
func main() { | |
// 距離6.5km, 深夜割増あり, 高速料金 600円, 割引 500円 | |
rideInfo := NewRideInfo(6.5, true, 600, 500) |
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
\expandafter\ifx\csname ifDraft\endcsname\relax | |
\documentclass[thesis]{subfiles} | |
\begin{document} | |
\fi | |
\section*{概要} | |
% | |
%ここに文章を記述 | |
% |
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
\documentclass[a4paper,10pt]{ujarticle} | |
\newcommand{\ifDraft}{false} | |
\usepackage[dvipdfmx]{graphicx} | |
\usepackage{subfiles} | |
\begin{document} | |
% タイトル | |
\include{title} |
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
String URL = "http://weather.livedoor.com/forecast/webservice/json/v1?city=170010"; | |
String title,date,time; | |
JSONArray forecasts; | |
void setup(){ | |
size(300,300); | |
loadJson(); |
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 "date" | |
require 'ruby_gntp' | |
data = CSV.read("TimeTable.csv") | |
data.map! { |item| [item[0].to_i,item[1..item.length].map! { |i| i.to_i } ] } | |
table = Hash[*data.flatten(1)] |
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 'nokogiri' | |
require 'csv' | |
url = 'http://ekikara.jp/newdata/ekijikoku/1720011/down1_17361011.htm' | |
charset = nil | |
html = open(url) do |f| | |
charset = f.charset | |
f.read |
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
void setup(){ | |
size(500,500); | |
surface.setResizable(true); | |
//PSurface psf = getSurface(); | |
//psf.setResizable(true); | |
frameRate(30); | |
textAlign(CENTER,CENTER); |
NewerOlder