-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit fe70b34
Showing
10 changed files
with
743 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"url": "https://floobits.com/victoryqwei/TensorFlow" | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#* | ||
*.o | ||
*.pyc | ||
*~ | ||
extern/ | ||
heroku.yml | ||
node_modules/ | ||
tmp | ||
vendor/ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
#!/usr/bin/env node | ||
|
||
/** | ||
* Module dependencies. | ||
*/ | ||
|
||
var app = require('../app'); | ||
var debug = require('debug')('pong:server'); | ||
var http = require('http'); | ||
|
||
/** | ||
* Get port from environment and store in Express. | ||
*/ | ||
|
||
var port = normalizePort('1234'); | ||
app.set('port', port); | ||
|
||
/** | ||
* Create HTTP server. | ||
*/ | ||
|
||
var server = http.createServer(app); | ||
|
||
/** | ||
* Listen on provided port, on all network interfaces. | ||
*/ | ||
|
||
server.listen(port); | ||
server.on('error', onError); | ||
server.on('listening', onListening); | ||
|
||
/** | ||
* Normalize a port into a number, string, or false. | ||
*/ | ||
|
||
function normalizePort(val) { | ||
var port = parseInt(val, 10); | ||
|
||
if (isNaN(port)) { | ||
// named pipe | ||
return val; | ||
} | ||
|
||
if (port >= 0) { | ||
// port number | ||
return port; | ||
} | ||
|
||
return false; | ||
} | ||
|
||
/** | ||
* Event listener for HTTP server "error" event. | ||
*/ | ||
|
||
function onError(error) { | ||
if (error.syscall !== 'listen') { | ||
throw error; | ||
} | ||
|
||
var bind = typeof port === 'string' | ||
? 'Pipe ' + port | ||
: 'Port ' + port; | ||
|
||
// handle specific listen errors with friendly messages | ||
switch (error.code) { | ||
case 'EACCES': | ||
console.error(bind + ' requires elevated privileges'); | ||
process.exit(1); | ||
break; | ||
case 'EADDRINUSE': | ||
console.error(bind + ' is already in use'); | ||
process.exit(1); | ||
break; | ||
default: | ||
throw error; | ||
} | ||
} | ||
|
||
/** | ||
* Event listener for HTTP server "listening" event. | ||
*/ | ||
|
||
function onListening() { | ||
var addr = server.address(); | ||
var bind = typeof addr === 'string' | ||
? 'pipe ' + addr | ||
: 'port ' + addr.port; | ||
debug('Listening on ' + bind); | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
-----BEGIN CERTIFICATE----- | ||
MIIEqDCCA5CgAwIBAgIUO7HMTf2jsSESG6B+zBIAqH+PQX0wDQYJKoZIhvcNAQEL | ||
BQAwgYsxCzAJBgNVBAYTAlVTMRkwFwYDVQQKExBDbG91ZEZsYXJlLCBJbmMuMTQw | ||
MgYDVQQLEytDbG91ZEZsYXJlIE9yaWdpbiBTU0wgQ2VydGlmaWNhdGUgQXV0aG9y | ||
aXR5MRYwFAYDVQQHEw1TYW4gRnJhbmNpc2NvMRMwEQYDVQQIEwpDYWxpZm9ybmlh | ||
MB4XDTE4MTEwOTIzNTIwMFoXDTMzMTEwNTIzNTIwMFowYjEZMBcGA1UEChMQQ2xv | ||
dWRGbGFyZSwgSW5jLjEdMBsGA1UECxMUQ2xvdWRGbGFyZSBPcmlnaW4gQ0ExJjAk | ||
BgNVBAMTHUNsb3VkRmxhcmU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N3wbuFQoAKuFyGE47qJptfslAOBAKU6Zm1cxRiXzhD/wszPTrjEjkuRryWF | ||
G3CUXS9MMA0eFQpgsu/EoYPJI1VKCKJfpGqza8UHjb+4gBW+2bFI5VH8Zd7l9LxY | ||
RuBMR3KwXUrCtdpP6fyxCTttH+7E0DlbYHM+n0LwP+7d5RhMmul8EaTphXk= | ||
-----END CERTIFICATE----- |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
-----BEGIN PRIVATE KEY----- | ||
MIIEzgIBADANBgkqhkiG9w0BAQEFAASCBKkwggSlAgEAAoIBAQDGanoemgwnAsOj | ||
YiCzfkrzYbKGOLTHGOE6wzoKQl8LUyAeROS385wOX415B2pH+me+OCc3xnvX97ZO | ||
Yjg0VGMkMtqpszEt0xeBRUqtIVeiyL67HuaVfoRs5n+xzuvHbARfuVVwDeIWlteS | ||
5hXBVcYYUX/uBjfZAAChzGKAj5jLoT3ruXM+IjA03T5/tPTjitK697WnSDi9svdG | ||
s+92/bN9YLNORF98HTD3X5gm7bsTgDYAu3l4h35FOE28uIAQ0Ec5HXRZarD46p85 | ||
j/AJT3B8c3w2Bx5uXrhMdvnud8ekZA7mkTXwW5dSYD3WK76ryAoLEe3FWrSqR+q3 | ||
RCrMRmOlAgMBAAECggEBAIbU3m2jMzTjTPze9ufin54qOr25FSfiwVNETVGhbqLs | ||
dvv6xw42Dks6JZIkNtX41LzPvd7KE2hcXdeAKT9uRPzZTfxZ18aTFvrykl96M+pb | ||
zjisM/dMxUKXlBjJSzH2NjayY9vEo2nEUXPyxL/fwMDPyUZ/lT3yIXvRvvIsIqHk | ||
mzU9+y/gJm3KtBpKH2qAvc53V0tJTBcwdjIw3dDMwai0wvJ/H7SdHlay4qOUys+K | ||
rukaMiBK6pep+CU3ibOKF4eZos39KiUxnv1E+v7vP3ydtguESK1T9CrUYwqZYO5G | ||
fW9tT74QHhzbtSj2CWemZrA7OlQ0tubobta6x5/u/9UCgYEA4wbigop29sQIdX0F | ||
h4b9crmoGRW5121aOGIl4A1xQ2Ri0Dh75Uc2BL00+y/obS4qxzTHSDJomSE6Rh/w | ||
T9ODIT/JAY18TIHoNHsGzBxT9i5QabMbsWpb6YRMQ5Y11habNQoS8gfKoaw6jR+E | ||
PtzY8qUl6pYeRK4O+5VUYs574zsCgYEA37zaeo1misYLBVmttcxAh7aNvBataD/O | ||
P/1mDs4N2imRQIz/FzeGdr5KIQpoP099gdv3zozNJ7PSnqi8CAG6L+0Oa6Lq2FBW | ||
F/+Q9lSuF4WMosTlhuh+/DNLZFzdhJdey/lShRMcMY7MeJPeyjjC0+AHDJYSnL5b | ||
foi/OTA0pp8CgYEAlhiaLxZemr12nj6/JiBgdrY6ZgNQMBazPG3ffqdEh/rZvbJq | ||
b2bKVw3E9oFxGKYaUEQbsSbqsrseLPi2yAAeRSBHw8gIMwj8PZ5NGytrc2qhbZCm | ||
MYERLW1zgofQJjAiA0oaxnvSQ1t8Boucwnb+1EXNsK/5aQzvCPRsqzq6+7sCgYEA | ||
xWY8ZPAozruYsanDx6hkLtj0CEUBzf6tnGuYBevq8NbH3uoHjpZgvpd5k9k4zNL3 | ||
awGGi+hSgXr4kx9Qdsf/W5WNqY3eIegPbbEAVzWzO/GKeXm7AOJUV3NySyRcFUXw | ||
T4q0MdEAiQDyilf8svKNgp4f2gz2cvDIjMVd4bkUWwUCgYBEYQQfEspriq1aAThQ | ||
aCYmFVCFtmPvOXBvW8knwwoHPlbYOXWtrrX1flKfO72uevqgjNfQCh2N8wbl2kIX | ||
uDEvN8rGdUGl/9dYnDSpCjva/v4SqUpmfTcmTdvPBROW/N7mRHnJrzUhwgsZ3Gpt | ||
NyJciKaesBYLTTfjTmqdyCVtRKANMAsGA1UdDzEEAwIACA== | ||
-----END PRIVATE KEY----- |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
-----BEGIN CERTIFICATE----- | ||
MIIEqDCCA5CgAwIBAgIUO7HMTf2jsSESG6B+zBIAqH+PQX0wDQYJKoZIhvcNAQEL | ||
BQAwgYsxCzAJBgNVBAYTAlVTMRkwFwYDVQQKExBDbG91ZEZsYXJlLCBJbmMuMTQw | ||
MgYDVQQLEytDbG91ZEZsYXJlIE9yaWdpbiBTU0wgQ2VydGlmaWNhdGUgQXV0aG9y | ||
aXR5MRYwFAYDVQQHEw1TYW4gRnJhbmNpc2NvMRMwEQYDVQQIEwpDYWxpZm9ybmlh | ||
MB4XDTE4MTEwOTIzNTIwMFoXDTMzMTEwNTIzNTIwMFowYjEZMBcGA1UEChMQQ2xv | ||
dWRGbGFyZSwgSW5jLjEdMBsGA1UECxMUQ2xvdWRGbGFyZSBPcmlnaW4gQ0ExJjAk | ||
BgNVBAMTHUNsb3VkRmxhcmUgT3JpZ2luIENlcnRpZmljYXRlMIIBIjANBgkqhkiG | ||
9w0BAQEFAAOCAQ8AMIIBCgKCAQEAxmp6HpoMJwLDo2Igs35K82Gyhji0xxjhOsM6 | ||
CkJfC1MgHkTkt/OcDl+NeQdqR/pnvjgnN8Z71/e2TmI4NFRjJDLaqbMxLdMXgUVK | ||
rSFXosi+ux7mlX6EbOZ/sc7rx2wEX7lVcA3iFpbXkuYVwVXGGFF/7gY32QAAocxi | ||
gI+Yy6E967lzPiIwNN0+f7T044rSuve1p0g4vbL3RrPvdv2zfWCzTkRffB0w91+Y | ||
Ju27E4A2ALt5eId+RThNvLiAENBHOR10WWqw+OqfOY/wCU9wfHN8Ngcebl64THb5 | ||
7nfHpGQO5pE18FuXUmA91iu+q8gKCxHtxVq0qkfqt0QqzEZjpQIDAQABo4IBKjCC | ||
ASYwDgYDVR0PAQH/BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMCBggrBgEFBQcD | ||
ATAMBgNVHRMBAf8EAjAAMB0GA1UdDgQWBBSCoSNW22NGB2nbknGhMFSWDr+BmTAf | ||
BgNVHSMEGDAWgBQk6FNXXXw0QIep65TbuuEWePwppDBABggrBgEFBQcBAQQ0MDIw | ||
MAYIKwYBBQUHMAGGJGh0dHA6Ly9vY3NwLmNsb3VkZmxhcmUuY29tL29yaWdpbl9j | ||
YTArBgNVHREEJDAighAqLmNsb3VkeWZpbGVzLnRrgg5jbG91ZHlmaWxlcy50azA4 | ||
BgNVHR8EMTAvMC2gK6AphidodHRwOi8vY3JsLmNsb3VkZmxhcmUuY29tL29yaWdp | ||
bl9jYS5jcmwwDQYJKoZIhvcNAQELBQADggEBAKW6/dd6YfK7mzNXVSUom/2Vj9ac | ||
2JdhITcuzDofLoJ6Tuk0brDqvc3rEu4OBBE2gSR6Zqk+QcVNKf65pFnmGaAXUtW0 | ||
2vICLwnIC6TV8tjc16EWnBm7MqLQyhavoZtoEuYtsa77afHLfs7yUwmfmHxAthsc | ||
A6S3lN3wbuFQoAKuFyGE47qJptfslAOBAKU6Zm1cxRiXzhD/wszPTrjEjkuRryWF | ||
G3CUXS9MMA0eFQpgsu/EoYPJI1VKCKJfpGqza8UHjb+4gBW+2bFI5VH8Zd7l9LxY | ||
RuBMR3KwXUrCtdpP6fyxCTttH+7E0DlbYHM+n0LwP+7d5RhMmul8EaTphXk= | ||
-----END CERTIFICATE----- |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Oops, something went wrong.