Skip to content

Instantly share code, notes, and snippets.

View huseyinozsoy's full-sized avatar

Hüseyin Özsoy huseyinozsoy

  • ProteinTech
  • İstanbul
View GitHub Profile
{% extends "layout.html" %}
{% block content %}
<div class="container">
<div class="row">
<div class="col-12">
<div class="alert alert-primary" role="alert">
Merhaba {{name}}
</div>
</div>
</div>
@huseyinozsoy
huseyinozsoy / app.py
Last active March 6, 2020 21:11
app.py Get Post
from flask import Flask,render_template,request,redirect
app = Flask(__name__)
@app.route('/',methods=["GET","POST"])
def index():
if request.method == "GET":
return render_template("index.html")
if request.method == "POST":
name = request.form.get("name")
{% extends "layout.html" %}
{% block content %}
<div class="container">
<div class="row d-flex justify-content-center">
<div class="col-6 pt-5 pb-5 border border-primary rounded">
<form action="/" method="POST">
<div class="form-group">
<label for="exampleInputEmail1">Email</label>
<input type="text" class="form-control" name ="name"aria-describedby="emailHelp" placeholder="Email...">
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>{% block title %}{% endblock %}</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
</head>
<body>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Merhaba Flask</title>
</head>
<body>
<b>Merhaba Flask</b>
#app.py kodları
from flask import Flask,render_template
app = Flask(__name__)
@app.route('/')
def index():
return render_template('index.html')
app.run()
@huseyinozsoy
huseyinozsoy / LZ77_78_W.cpp
Created December 18, 2018 11:06 — forked from majedsiefalnasr/LZ77_78_W.cpp
LZ 77 - LZ 78 - LZW c++ code
/*********************************************************************
LZ 77, 78, W Algorithms
-------------------
_
___ ___ __| | ___ _____ ___ __ ___
/ __/ _ \ / _` |/ _ \ / _ \ \/ / '_ \ / _ \
| (_| (_) | (_| | __/ | __/> <| |_) | (_) |
\___\___/ \__,_|\___| \___/_/\_\ .__/ \___/
|_|