Skip to content

Instantly share code, notes, and snippets.

View ssafy-john's full-sized avatar

john ssafy-john

View GitHub Profile
@ssafy-john
ssafy-john / students.py
Created July 11, 2019 05:45
dictionary 연습
ssafy = {
"location": ["서울", "대전", "구미", "광주"],
"language": {
"python": {
"python standard library": ["os", "random", "webbrowser"],
"frameworks": {
"flask": "micro",
"django": "full-functioning"
},
"data_science": ["numpy", "pandas", "scipy", "sklearn"],
git clone https://github.com/pyenv/pyenv.git ~/.pyenv
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bashrc
echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bashrc
echo -e 'if command -v pyenv 1>/dev/null 2>&1; then\n eval "$(pyenv init -)"\nfi' >> ~/.bashrc
exec "$SHELL"
git clone https://github.com/pyenv/pyenv-virtualenv.git $(pyenv root)/plugins/pyenv-virtualenv
echo 'eval "$(pyenv virtualenv-init -)"' >> ~/.bashrc
exec "$SHELL"
@ssafy-john
ssafy-john / app.py
Last active February 7, 2019 06:06
flask sql alchemy
from flask import Flask, render_template, request
from flask_sqlalchemy import SQLAlchemy
app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///blog2.db'
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False
db = SQLAlchemy(app)
@ssafy-john
ssafy-john / 11.html
Created January 22, 2019 09:00
workshop_11
<!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">
<!-- Bootstrap files -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/css/bootstrap.min.css" integrity="sha384-GJzZqFGwb1QTTN6wy59ffF1BuGJpLSa9DkKMp0DgiMDm4iYMj70gZWKYbI706tWS" crossorigin="anonymous">
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
@ssafy-john
ssafy-john / clova_telegram.py
Created December 21, 2018 08:28
Using clova 유명인 얼굴인식 with telegram
from flask import Flask, request
import requests
import os
from pprint import pprint as pp
app = Flask(__name__)
my_url = "https://saramin-biniprc.c9users.io"
token = os.getenv('TELEGRAM_TOKEN')