summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoe Rubinstein <nrubinstein@avencall.com>2012-10-23 17:51:31 +0200
committerNoe Rubinstein <nrubinstein@avencall.com>2012-10-23 17:51:31 +0200
commitac6bbcc87b37ae44e66193f7ff9aea051a9a93b5 (patch)
tree38eb28bb7694f141de69aaf96c74596f0c1f1700
parent653984d89294e3bd5c20458fbe44c8c208f85d31 (diff)
parent4209ea3b37b5c0471720d5e6fd8c96933f309a67 (diff)
Merge branch 'master' of githardware:git/misc
-rw-r--r--digikey.coffee4
-rwxr-xr-x[-rw-r--r--]digikey.js4
2 files changed, 4 insertions, 4 deletions
diff --git a/digikey.coffee b/digikey.coffee
index b372ca7..f1a9580 100644
--- a/digikey.coffee
+++ b/digikey.coffee
@@ -1,12 +1,10 @@
-#!/home/xilun/phantomjs-1.6.1-linux-x86_64-dynamic/bin/phantomjs
-
webpage = require('webpage')
server = require('webserver').create()
query_parse = /search\/([^&]+)/
url = 'http://search.digikey.com/scripts/DkSearch/dksus.dll?Detail&name='
-service = server.listen 8080, (request, response) ->
+service = server.listen 8086, (request, response) ->
page = webpage.create()
search = query_parse.exec request.url
diff --git a/digikey.js b/digikey.js
index 9f4a571..ca4bc81 100644..100755
--- a/digikey.js
+++ b/digikey.js
@@ -1,3 +1,5 @@
+#!/usr/local/phamtomjs-1.6.1/bin/phantomjs
+
// Generated by CoffeeScript 1.3.3
(function() {
var query_parse, server, service, url, webpage;
@@ -10,7 +12,7 @@
url = 'http://search.digikey.com/scripts/DkSearch/dksus.dll?Detail&name=';
- service = server.listen(8080, function(request, response) {
+ service = server.listen(8086, function(request, response) {
var page, search, thisUrl, tries;
page = webpage.create();
search = query_parse.exec(request.url);