Skip to content

Commit

Permalink
html with bulma
Browse files Browse the repository at this point in the history
  • Loading branch information
akinhwan committed Jun 5, 2019
1 parent 20b1c2a commit 8cc0372
Show file tree
Hide file tree
Showing 10 changed files with 566 additions and 10 deletions.
22 changes: 22 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Distribution / packaging
.Python
env/
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
*.egg-info/
.installed.cfg
*.egg

# Serverless directories
.serverless

node_modules
15 changes: 10 additions & 5 deletions betalist.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
from textgenrnn import textgenrnn
textgen = textgenrnn(weights_path='betalist_model_weights.hdf5',
vocab_path='betalist_model_vocab.json',
config_path='betalist_model_config.json')

textgen.generate_samples(max_gen_length=1000)
textgen.generate_to_file('textgenrnn_texts.txt', max_gen_length=1000)
def main(event, context):
textgen = textgenrnn(weights_path='betalist_model_weights.hdf5',
vocab_path='betalist_model_vocab.json',
config_path='betalist_model_config.json')

textgen.generate_samples(max_gen_length=1000)
textgen.generate_to_file('betalist_output.txt', max_gen_length=1000)

if __name__ == "__main__":
main('','')
1 change: 1 addition & 0 deletions betalist_output.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
distributed version control for software developers
24 changes: 24 additions & 0 deletions handler.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import json


def hello(event, context):
body = {
"message": "Go Serverless v1.0! Your function executed successfully!",
"input": event
}

response = {
"statusCode": 200,
"body": json.dumps(body)
}

return response

# Use this code if you don't use the http event with the LAMBDA-PROXY
# integration
"""
return {
"message": "Go Serverless v1.0! Your function executed successfully!",
"event": event
}
"""
41 changes: 41 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Hello Bulma!</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.7.5/css/bulma.min.css">
<script defer src="https://use.fontawesome.com/releases/v5.3.1/js/all.js"></script>
</head>
<body>
<section class="section hero is-info is-medium">
<div class="container">
<h1 class="title">
Hello World
</h1>
<h2 class="subtitle">
Subtitle
</h2>
<p class="subtitle">
My first website with <strong>Bulma</strong>!
</p>
<button class="button is-large is-success is-rounded has-text-weight-bold">Click here</button>
<div class="columns">
<div class="column">
First column
</div>
<div class="column">
Second column
</div>
<div class="column">
Third column
</div>
<div class="column">
Fourth column
</div>
</div>

</div>
</section>
</body>
</html>
Loading

0 comments on commit 8cc0372

Please sign in to comment.