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 contextlib import contextmanager | |
import threading | |
from thread import get_ident | |
from sqlalchemy import * | |
from sqlalchemy.orm import * | |
from sqlalchemy.ext.declarative import declarative_base | |
from flask import Flask | |
from flask_sqlalchemy import SQLAlchemy |
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
First install pip for Python2. Download the get-pip.py file from https://bootstrap.pypa.io/get-pip.py | |
$ cd <download location> | |
$ sudo -H python ./get-pip.py | |
Installing pip also installs Python3 | |
To run Python3 | |
$ python3 | |
Install pip3 by just executing the same file as in the step above, but this time using Python3 | |
$ sudo -H python3 ./get-pip.py |
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
[{"type":"polyline","latLngs":[{"lat":50.454245,"lng":30.499996},{"lat":50.454245,"lng":30.499996}],"color":"#a24ac3"},{"type":"polyline","latLngs":[{"lat":50.451308,"lng":30.50488},{"lat":50.449099,"lng":30.503641},{"lat":50.449428,"lng":30.508716},{"lat":50.451308,"lng":30.50488},{"lat":50.451316,"lng":30.509528},{"lat":50.449428,"lng":30.508716},{"lat":50.448679,"lng":30.515753},{"lat":50.451316,"lng":30.509528},{"lat":50.448448,"lng":30.517231},{"lat":50.449428,"lng":30.508716}],"color":"#a24ac3"},{"type":"polyline","latLngs":[{"lat":50.451316,"lng":30.509528},{"lat":50.449083,"lng":30.514222},{"lat":50.449428,"lng":30.508716},{"lat":50.449333,"lng":30.512701},{"lat":50.451316,"lng":30.509528}],"color":"#a24ac3"},{"type":"polyline","latLngs":[{"lat":50.459574,"lng":30.50742},{"lat":50.45901,"lng":30.507094},{"lat":50.459263,"lng":30.506062},{"lat":50.458944,"lng":30.506551},{"lat":50.458039,"lng":30.506115},{"lat":50.458493,"lng":30.506868},{"lat":50.458064,"lng":30.507402},{"lat":50.458625,"lng":30.50771 |
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
public static IEnumerable<IAsync> Upload(string version, string config, byte[] content, byte[] thumbnail = null) | |
{ | |
var multiPart = new MultiPartForm(); | |
multiPart.AddData("config", config); | |
multiPart.AddFile("content", "application/octet-stream", content); | |
if (thumbnail != null) | |
multiPart.AddFile("thumbnail", "image/png", thumbnail); | |
var url = MakeUrl("upload", version); | |
var request = CreatePOSTRequest(url).Call<HttpWebRequest>(); |
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
%YAML 1.1 | |
%TAG !u! tag:unity3d.com,2011: | |
--- !u!1 &100000 | |
GameObject: | |
m_ObjectHideFlags: 0 | |
m_PrefabParentObject: {fileID: 0} | |
m_PrefabInternal: {fileID: 100100000} | |
serializedVersion: 4 | |
m_Component: | |
- 4: {fileID: 400000} |
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
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Net; | |
using UnityEngine; | |
namespace Asynko | |
{ | |
#region Interfaces |
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
[{"type":"polyline","latLngs":[{"lat":50.597393,"lng":27.647339},{"lat":51.054575,"lng":31.891872}],"color":"#a24ac3"},{"type":"polyline","latLngs":[{"lat":51.054575,"lng":31.891872},{"lat":48.89199,"lng":30.698538}],"color":"#a24ac3"},{"type":"polyline","latLngs":[{"lat":50.586994,"lng":27.673792},{"lat":51.054575,"lng":31.891872}],"color":"#a24ac3"},{"type":"polyline","latLngs":[{"lat":48.897729,"lng":30.698306},{"lat":50.619837,"lng":28.977153},{"lat":51.044747,"lng":31.880108}],"color":"#a24ac3"},{"type":"polyline","latLngs":[{"lat":51.045073,"lng":31.880767},{"lat":48.897729,"lng":30.698306}],"color":"#a24ac3"},{"type":"polyline","latLngs":[{"lat":48.894009,"lng":30.69687},{"lat":51.046279,"lng":31.88249}],"color":"#a24ac3"},{"type":"polyline","latLngs":[{"lat":51.046808,"lng":31.884026},{"lat":48.89199,"lng":30.698538}],"color":"#a24ac3"},{"type":"polyline","latLngs":[{"lat":51.045073,"lng":31.880767},{"lat":48.897729,"lng":30.698306}],"color":"#a24ac3"},{"type":"polyline","latLngs":[{"lat":48.894009,"l |
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
2659119772153226779682489404387918594905342200269924300660432789497073559873882909121342292906175583032440682826506723425601635775590279389642612611093020398930347774460613894425379600874662147884229022133853819192905427915750759274952935109319020362271989830578539328807633196834507090639946131138999460277671978289412532212329252032960511820487913640083895490443657920956267126291922289224609441034849578266461219690879675039920051391388174525259443193865041630348000323295729231692725808120388628956451330203199414186213654593812478970390749485268614971964248428562782648720818548493937299025693132719165544060431069136029010640558959534212123746079660766983306735060532482925553082121188696097199078085563246046013216102655431476452400396602364732664246252767374593256582134654265209220042370143240456646479703878634028476799516301302320589620637994623895999962376530625874148998609130106933187937209476887496871311072138713943694894357288061061557708461902289692063089736008186036231141171109877425423962410946849388972 |
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
!Schema | |
Schema: !Mapping | |
patterns: !PatternsList | |
- !PatternPair | |
key: Identifier | |
value: Rule | |
Rule: !Mapping | |
fields: !FieldsMap |
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
Field: !Mapping | |
fields: | |
type: # <--- that is name | |
type: | |
- string | |
- TypesList | |
optional: False # some explicid definition | |
optional: | |
type: boolean | |
optional: True |
NewerOlder