- Automation
- Infrastructure
- Deployment
- Clean up
- Multi-Cloud
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
runtime: nodejs # hier könnte auch python oder java stehen | |
env: flex # wir möchten skalieren können | |
manual_scaling: | |
instances: 2 # die Anwendung soll auf genau zwei Instanzen laufen | |
resources: # die gewünschte Hardware | |
cpu: 1 | |
memory_gb: 1 | |
disk_size_gb: 20 |
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
/** | |
* This is server-side code and should be in /server | |
* This file should must be imported to /server/main.js with import './crawler'; | |
*/ | |
import {Meteor} from 'meteor/meteor'; | |
import {Mongo} from 'meteor/mongo'; | |
import _ from 'underscore'; | |
import Crawler from 'crawly-mccrawlface'; | |
import Cheerio from 'cheerio'; |
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
fCreateSimilarityVectorJaccard=function(v,M){ | |
vResult=vector() | |
mUI.bin=M | |
mUI.bin[which(!is.na(mUI.bin))]=1 | |
mUI.bin[which(is.na(mUI.bin))]=0 | |
vU.bin = v | |
vU.bin[which(!is.na(vU.bin))]=1 | |
vU.bin[which(is.na(vU.bin))]=0 | |
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
load('Database_BookX.Rdata') | |
fCreateResult <- function(vResult, title='', iSize=500){ | |
########## PROCESSING ########## | |
FPR=((sort(vResult)-1))/(iSize-1) | |
FPR=c(0,FPR,1) | |
TPR=(1:length(vResult))/length(vResult) | |
TPR=c(0,TPR,1) | |
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
load('Database_BookX.Rdata') | |
fCreateResult <- function(vResult, title='', iSize=500){ | |
########## PROCESSING ########## | |
FPR=((sort(vResult)-1))/(iSize-1) | |
FPR=c(0,FPR,1) | |
TPR=(1:length(vResult))/length(vResult) | |
TPR=c(0,TPR,1) | |
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
load('Database_BookX.Rdata') | |
require(proxy) | |
fCreateResult <- function(vResult, title='', iSize=500){ | |
########## PROCESSING ########## | |
FPR=((sort(vResult)-1))/(iSize-1) | |
FPR=c(0,FPR,1) | |
TPR=(1:length(vResult))/length(vResult) | |
TPR=c(0,TPR,1) |
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
load('Database_BookX.Rdata') | |
fCreateResult <- function(vResult, title='', iSize=500){ | |
########## PROCESSING ########## | |
FPR=((sort(vResult)-1))/(iSize-1) | |
FPR=c(0,FPR,1) | |
TPR=(1:length(vResult))/length(vResult) | |
TPR=c(0,TPR,1) | |
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
load('Database_BookX.Rdata') | |
fCreateResult <- function(vResult, title='', iSize=500){ | |
########## PROCESSING ########## | |
FPR=((sort(vResult)-1))/(iSize-1) | |
FPR=c(0,FPR,1) | |
TPR=(1:length(vResult))/length(vResult) | |
TPR=c(0,TPR,1) | |