Toggle navigation
Toggle navigation
This project
Loading...
Sign in
고원빈
/
weather
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
GyuhoLee
2019-12-07 11:17:26 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
552b2293bbcfe17d8b2cedf96d3058208b9ad385
552b2293
1 parent
53451e3a
[Update] Connect to port
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
56 additions
and
7 deletions
index.html
recommend_clothes.py
test.js
index.html
0 → 100644
View file @
552b229
<!DOCTYPE html>
<html
lang=
"en"
>
<head>
<meta
charset=
"UTF-8"
>
<title>
OSW
</title>
<link
rel=
"stylesheet"
href=
"/css/style.css"
crossorigin=
"anonymous"
>
<link
rel=
"stylesheet"
href=
"https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css"
integrity=
"sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO"
crossorigin=
"anonymous"
>
<link
href=
"https://fonts.googleapis.com/css?family=Jua&display=swap"
rel=
"stylesheet"
>
</head>
<body>
helloworld
<script
src=
"https://code.jquery.com/jquery-3.3.1.min.js"
integrity=
"sha384-tsQFqpEReu7ZLhBV2VZlAu7zcOV+rXbYlF2cqB8txI/8aZajjp4Bqd+V6D5IgvKT"
crossorigin=
"anonymous"
></script>
<script
src=
"https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js"
integrity=
"sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49"
crossorigin=
"anonymous"
></script>
<script
src=
"https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js"
integrity=
"sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy"
crossorigin=
"anonymous"
></script>
</body>
</html>
\ No newline at end of file
recommend_clothes.py
View file @
552b229
...
...
@@ -14,6 +14,9 @@ code = []
for
cell
in
sheet
[
'E'
]:
code
.
append
(
cell
.
value
)
sys
.
stdin
.
reconfigure
(
encoding
=
'utf-8'
)
sys
.
stdout
.
reconfigure
(
encoding
=
'utf-8'
)
area
=
input
()
print
(
area
)
col
=
code
.
index
(
area
)
...
...
test.js
View file @
552b229
var
http
=
require
(
'http'
);
var
fs
=
require
(
'fs'
);
var
app
=
http
.
createServer
(
function
(
request
,
response
){
var
url
=
request
.
url
;
if
(
request
.
url
==
'/'
){
url
=
'/index.html'
;
}
if
(
request
.
url
==
'/favicon.ico'
){
response
.
writeHead
(
404
);
response
.
end
();
return
;
}
response
.
writeHead
(
200
);
response
.
end
(
fs
.
readFileSync
(
__dirname
+
url
));
});
app
.
listen
(
3000
);
const
{
PythonShell
}
=
require
(
'python-shell'
);
let
iconv
=
require
(
'iconv-lite'
);
let
fs
=
require
(
'fs'
);
var
options
=
{
mode
:
'text'
,
pythonOptions
:
[
'-u'
],
scriptPath
:
''
,
args
:
[
"영통1동"
]
,
pythonPath
:
''
encoding
:
'utf8'
,
args
:
[
"영통1동"
]
};
var
arr
;
var
test
=
new
PythonShell
(
'recommend_clothes.py'
,
options
);
var
data
=
'
"영통1동"
'
;
var
data
=
'
영통1동
'
;
test
.
send
(
data
);
test
.
on
(
'message'
,
function
(
message
){
console
.
log
(
message
);
})
\ No newline at end of file
arr
=
message
.
split
(
' '
);
})
...
...
Please
register
or
login
to post a comment