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
# Input: Strings Genome and symbol | |
# Output: SymbolArray(Genome, symbol) | |
def SymbolArray(Genome, symbol): | |
n = len(Genome) | |
ns = len(symbol) | |
ext = Genome + Genome[ 0 : (n // 2) ] | |
tarray = [] | |
tmpsum = 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
var express = require('express'); | |
var app = express(); | |
var bodyParser = require('body-parser'); | |
var fs = require('fs'); | |
var beautify_html = require('js-beautify').html; | |
app.use(bodyParser.json()); | |
app.use(bodyParser.urlencoded()); | |
app.use(bodyParser.urlencoded({ extended: true })); |
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
var express = require('express'); | |
var app = express(); | |
app.use('/', express.static(__dirname)); | |
var server = app.listen(9090, function () { | |
var host = server.address().address; | |
var port = server.address().port; | |
console.log('App listening at http://%s:%s', host, port); |