Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
U
uva
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Taddeüs Kroes
uva
Commits
d61ef451
Commit
d61ef451
authored
Mar 10, 2011
by
Taddeüs Kroes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Telematica ass2: Added code to report.
parent
01dfe8cf
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletion
+12
-1
telematica/ass2/report.tex
telematica/ass2/report.tex
+11
-0
telematica/ass2/translate
telematica/ass2/translate
+1
-1
No files found.
telematica/ass2/report.tex
View file @
d61ef451
\documentclass
[10pt,a4paper]
{
article
}
\documentclass
[10pt,a4paper]
{
article
}
\usepackage
{
float, url
}
\usepackage
{
float, url
}
% Load code highlighter color scheme
\input
{
colors
}
\title
{
Telematica assignment 2: Google Translate
}
\title
{
Telematica assignment 2: Google Translate
}
\author
{
Tadde
\"
us Kroes (6054129)
\and
Sander van Veen (6167969)
}
\author
{
Tadde
\"
us Kroes (6054129)
\and
Sander van Veen (6167969)
}
...
@@ -90,4 +93,12 @@ return $response["data"]["translations"][0]["translatedText"];
...
@@ -90,4 +93,12 @@ return $response["data"]["translations"][0]["translatedText"];
\end
{
verbatim
}
\end
{
verbatim
}
% }}}
% }}}
\appendix
\section
{
Code
}
% {{{
\input
{
translate
}
% }}}
\end
{
document
}
\end
{
document
}
telematica/ass2/translate
View file @
d61ef451
...
@@ -22,7 +22,7 @@ function translate($text, $from, $to) {
...
@@ -22,7 +22,7 @@ function translate($text, $from, $to) {
if
(
$argc
!=
3
)
{
if
(
$argc
!=
3
)
{
echo
sprintf
(
"Usage: %s FROM TO
\n
"
,
$argv
[
0
]);
echo
sprintf
(
"Usage: %s FROM TO
\n
"
,
$argv
[
0
]);
if
(
$argv
[
1
]
==
"--help"
)
{
if
(
$arg
c
>
1
&&
$arg
v
[
1
]
==
"--help"
)
{
echo
"FROM is the input language, TO is the language to translate to.
\n
"
echo
"FROM is the input language, TO is the language to translate to.
\n
"
.
"Both languages should be entered as a 2-character long code.
\n
"
;
.
"Both languages should be entered as a 2-character long code.
\n
"
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment