pip install -r requirements.txt
Run the backend server
// Определяем зависимости в переменных | |
var gulp = require('gulp'), | |
cache = require('gulp-cache'), | |
clean = require('gulp-clean'), | |
stream = require('event-stream'), | |
size = require('gulp-size'), | |
jshint = require('gulp-jshint'), | |
concat = require('gulp-concat'), | |
uglify = require('gulp-uglify'), | |
minifyCSS = require('gulp-minify-css'), |
var gulp = require('gulp'); | |
var sourcemaps = require('gulp-sourcemaps'); | |
var source = require('vinyl-source-stream'); | |
var buffer = require('vinyl-buffer'); | |
var browserify = require('browserify'); | |
var watchify = require('watchify'); | |
var babel = require('babelify'); | |
function compile(watch) { | |
var bundler = watchify(browserify('./src/index.js', { debug: true }).transform(babel)); |
server { | |
listen 80 default_server; | |
listen [::]:80 default_server ipv6only=on; | |
root /var/www/YOUR_PROJECT/public; | |
index index.php index.html index.htm; | |
# Make site accessible from http://localhost/ | |
server_name YOUR_IP_OR_DOMAIN; |
from rest_framework import permissions | |
class IsOwner(permissions.BasePermission): | |
""" | |
Custom permission to only allow owners of an object to edit it. | |
""" | |
def has_permission(self, request, view): | |
return request.user and request.user.is_authenticated() |
70-odd | |
able | |
above | |
abreast | |
abrupt | |
absent | |
abstracted | |
absurd | |
accessible | |
accident |
# Backup | |
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql | |
# Restore | |
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE | |
Positive Adjective List | |
abundant | |
accessible | |
accommodative | |
accomplished | |
accurate | |
achievable | |
adaptable | |
adaptive |
From ee6d6a6154ce35a4945add6aa6bd57f2144b185c Mon Sep 17 00:00:00 2001 | |
From: extremeheat <[email protected]> | |
Date: Sun, 24 Apr 2016 00:46:33 -0400 | |
Subject: [PATCH 1/4] Keep better track of inventory changes on Windows 10 | |
Edition, fix inventory moving issues | |
--- | |
src/pocketmine/Player.php | 198 ++++++++++++++++++++- | |
.../inventory/SimpleTransactionGroup.php | 26 ++- | |
2 files changed, 221 insertions(+), 3 deletions(-) |
import asyncio | |
import time | |
def timeit(func): | |
async def process(func, *args, **params): | |
if asyncio.iscoroutinefunction(func): | |
print('this function is a coroutine: {}'.format(func.__name__)) | |
return await func(*args, **params) | |
else: |