Flask apps are bound to port 5000 by default. To bind it to port 80, you would need to change the port as follows:
if __name__ == '__main__':
app.run(host='0.0.0.0', port=80, debug=True)
And to run it:
Flask apps are bound to port 5000 by default. To bind it to port 80, you would need to change the port as follows:
if __name__ == '__main__':
app.run(host='0.0.0.0', port=80, debug=True)
And to run it:
public class BigDecimalCodec implements Codec<BigDecimal> { | |
// Note that you may not want it to be double -- choose your own type. | |
@Override | |
public void encode(final BsonWriter writer, final BigDecimal value, final EncoderContext encoderContext) { | |
writer.writeDouble(value); | |
} | |
@Override | |
public BigDecimal decode(final BsonReader reader, final DecoderContext decoderContext) { | |
return reader.readDouble(); |
## | |
# | |
# Custom resource setup to provide an identity function that can be used to | |
# implement "custom variables". | |
# See: https://serverfault.com/a/812040/6438 | |
# | |
# Usage: | |
# | |
# After deploying the below code to your stack, you can define computed | |
# variables thus: |
image: golang:1.8.1 | |
variables: | |
BIN_NAME: go-practice-ci | |
ARTIFACTS_DIR: artifacts | |
GO_PROJECT: gitlab.com/go-practice-ci | |
stages: | |
- build | |
- test |
image: golang:1.7 | |
stages: | |
- build | |
- test | |
before_script: | |
- go get github.com/tools/godep | |
- cp -r /builds/user /go/src/github.com/user/ | |
- cd /go/src/github.com/user/repo |
#!/usr/bin/env bash | |
usage="Usage: $(basename "$0") region stack-name [aws-cli-opts] | |
where: | |
region - the AWS region | |
stack-name - the stack name | |
aws-cli-opts - extra options passed directly to create-stack/update-stack | |
" |
#Download Elementary OS from here: | |
#https://elementary.io/ | |
#Clean-up System | |
sudo apt-get purge midori-granite -y | |
sudo apt-get purge yelp -y | |
sudo apt-get purge evince -y | |
sudo apt-get purge gnome-orca -y | |
sudo apt-get autoremove -y | |
sudo apt-get autoclean -y |
People
![]() :bowtie: |
😄 :smile: |
😆 :laughing: |
---|---|---|
😊 :blush: |
😃 :smiley: |
:relaxed: |
😏 :smirk: |
😍 :heart_eyes: |
😘 :kissing_heart: |
😚 :kissing_closed_eyes: |
😳 :flushed: |
😌 :relieved: |
😆 :satisfied: |
😁 :grin: |
😉 :wink: |
😜 :stuck_out_tongue_winking_eye: |
😝 :stuck_out_tongue_closed_eyes: |
😀 :grinning: |
😗 :kissing: |
😙 :kissing_smiling_eyes: |
😛 :stuck_out_tongue: |
# encoding: utf-8 | |
# Copyright 2013 Diego Navarro Mellén. All rights reserved. | |
# | |
# Redistribution and use in source and binary forms, with or without modification, are | |
# permitted provided that the following conditions are met: | |
# | |
# 1. Redistributions of source code must retain the above copyright notice, this list of | |
# conditions and the following disclaimer. | |
# |