- Application => Viewer
- Data => Data
- Backend => Loader
This file contains hidden or 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
127.0.0.1:6379> subscribe q:events | |
Reading messages... (press Ctrl-C to quit) | |
1) "subscribe" | |
2) "q:events" | |
3) (integer) 1 | |
1) "message" | |
2) "q:events" |
This file contains hidden or 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
var bounds = viewer.viewport.getBounds() | |
var imageCoordinates = viewer.viewport.viewportToImageRectangle(bounds.x, bounds.y, bounds.width, bounds.height) | |
/* | |
* Use | |
* imageCoordinates.x | |
* imageCoordinates.y and so on | |
*/ |
This file contains hidden or 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
Show hidden characters
{ | |
"presets": ["es2015", "react"] | |
} |
This file contains hidden or 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
module.exports = { | |
entry: "./public/javascripts/src/App.jsx", //entry point of your app | |
output: { | |
filename: "./public/javascripts/build/bundle.js" //output transpiled and compiled code | |
}, | |
module: { | |
loaders:[ | |
{ | |
test: /\.js[x]?$/, //list of extensions | |
exclude: /node_modules/, |
This file contains hidden or 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
#Import library essentials | |
from sumy.parsers.plaintext import PlaintextParser #We're choosing a plaintext parser here, other parsers available for HTML etc. | |
from sumy.nlp.tokenizers import Tokenizer | |
from sumy.summarizers.lex_rank import LexRankSummarizer #We're choosing Lexrank, other algorithms are also built in | |
file = "plain_text.txt" #name of the plain-text file | |
parser = PlaintextParser.from_file(file, Tokenizer("english")) | |
summarizer = LexRankSummarizer() | |
summary = summarizer(parser.document, 5) #Summarize the document with 5 sentences |
This file contains hidden or 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
function(text){ | |
var score = 0; | |
var words = text.split(" "); | |
for(var i in words){ | |
word = words[i]; | |
if(word in this.wordList){ | |
score+= this.wordList[word]; | |
} | |
} | |
return score/words.length; |
This file contains hidden or 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
tweets = []; | |
socket.on("tweet", function(data){ | |
console.log(data); | |
tweets.push(data); | |
}); |
This file contains hidden or 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
io.on("connection", function (socket){ | |
t.on("tweet", function(tweet){ | |
var tweetText = tweet.text; | |
var score = s.score(tweetText); | |
socket.emit("tweet", {tweet: tweetText, score:score}) | |
}); | |
}); |
This file contains hidden or 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
29 attributes(24 filtering) | |
1mil - memory exceeded | |
500k - memory exceeded | |
250k - memory exceeded | |
100k -1100 | |
50k- 1000 | |
20 attributes (15 filtering) | |
1mil - memory exceeded | |
500k - memory exceeded |