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
<?php | |
/** | |
* Пример набора классов для демонстрации роутинга с помощью набора роутеров | |
*/ | |
/** | |
* Статический роутер, умеет проверять URI на полное совпадение с одним из элементов списка путей | |
*/ | |
class StaticRouter implements RouterInterface | |
{ |
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
# to generate your dhparam.pem file, run in the terminal | |
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
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
# -*- coding: UTF-8 -*- | |
from flask import Flask, request, render_template, jsonify | |
from flaskext.mysql import MySQL | |
from flask_cors import CORS, cross_origin | |
from pymysql.cursors import DictCursor | |
import json | |
app = Flask(__name__) |
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
Vue.component('colorPicker', { | |
props: ['value'], | |
template: '<input type="text">', | |
mounted: function () { | |
var vm = this; | |
$(this.$el) | |
.val(this.value) | |
// WordPress color picker | |
.wpColorPicker({ | |
defaultColor: this.value, |
OlderNewer