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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>repl.it</title> | |
<link href="style.css" rel="stylesheet" type="text/css" /> | |
</head> | |
<body> | |
<script |
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
from flask import Flask, render_template, request, redirect, url_for | |
import os | |
app = Flask(__name__) | |
# "magic code" -- boilerplate | |
if __name__ == '__main__': | |
app.run(host=os.environ.get('IP'), |
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
{ | |
"Source": "Giffyglyph's Monster Maker", | |
"Type": "humanoid", | |
"HP": { | |
"Value": 18, | |
"Notes": "" | |
}, | |
"AC": { | |
"Value": 11, | |
"Notes": "" |
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
import dash | |
import dash_core_components as dcc | |
import dash_html_components as html | |
import plotly.express as px | |
import pandas as pd | |
external_stylesheets = ['https://codepen.io/chriddyp/pen/bWLwgP.css'] | |
app = dash.Dash(__name__, external_stylesheets=external_stylesheets) | |
######################### YOUR CODE BEGINS HERE ###################### |
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
from flask import Flask, render_template, request, redirect, url_for | |
import os | |
import pymongo | |
from dotenv import load_dotenv | |
load_dotenv() | |
app = Flask(__name__) | |
MONGO_URI = os.environ.get('MONGO_URI') |
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
git rm --cached <file> |
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
from flask import Flask, render_template, request, redirect, url_for | |
import os | |
app = Flask(__name__) | |
# "magic code" -- boilerplate | |
if __name__ == '__main__': | |
app.run(host='localhost', |
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
echo "Setting the greeting" | |
sed -i "s/USER_NAME/$GITPOD_GIT_USER_NAME/g" ${GITPOD_REPO_ROOT}/README.md | |
echo "Creating the ${C9_USER} user in MySQL" | |
mysql -e "CREATE USER '${C9_USER}'@'%' IDENTIFIED BY '';" -u root | |
echo "Granting privileges" | |
mysql -e "GRANT ALL PRIVILEGES ON *.* TO '${C9_USER}'@'%' WITH GRANT OPTION;" -u root |
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
# don't use the validate password component | |
CREATE USER 'user'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password'; | |
GRANT ALL PRIVILEGES ON *.* TO 'user'@'localhost'; | |
FLUSH PRIVILEGES; |
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
render() { | |
return ( | |
<React.Fragment> | |
<div> | |
<label>Name:</label> | |
<input name="name" type="text" value={this.state.name} onChange={this.updateFormField}/> | |
</div> | |
<div> | |
<label>Favourite Colour:</label> | |
{this.renderColours()} |
OlderNewer