-
First you select development build for Android.(Build Settings-> Android -> check Develop Build box)
-
Here is the guide from Unity doc: https://docs.unity3d.com/Manual/ProfilerWindow.html
-
Before the 'adb forward' you should check the port(34999) first using:
netstat -a -o -n | find "34999"
-
Kill the process that alreay take the port "34999" using:
taskkill /F /PID process_id
-
adb forward --remove-all
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
dataPath:/data/app/your.package.name-1/base.apk | |
persistentDataPath:/storage/emulated/0/Android/data/your.package.name/files | |
streamingAssetsPath:jar:file:///data/app/your.package.name-1/base.apk!/assets | |
temporaryCachePath:/storage/emulated/0/Android/data/your.package.name/cache |
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 -*- |
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
{% with messages = get_flashed_messages(with_categories=true) %} | |
<!-- Categories: success (green), info (blue), warning (yellow), danger (red) --> | |
{% if messages %} | |
{% for category, message in messages %} | |
<div class="alert alert-{{ category }} alert-dismissible" role="alert"> | |
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button> | |
<!-- <strong>Title</strong> --> {{ message }} | |
</div> | |
{% endfor %} | |
{% endif %} |
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
created_on = db.Column(db.DateTime, server_default=db.func.now()) | |
updated_on = db.Column(db.DateTime, server_default=db.func.now(), onupdate=db.func.now()) |
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
pip install autopep8 | |
autopep8 your_script.py # dry-run, only print | |
autopep8 -i your_script.py # replace content |
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
data = {} | |
data['key'] = 'value' | |
json_data = json.dumps(data) |
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
input[type=number]::-webkit-inner-spin-button, | |
input[type=number]::-webkit-outer-spin-button { | |
-webkit-appearance: none; | |
margin: 0; | |
} |
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
$(document).ready(function (){ | |
$('#btn-send').click(function countdown(){ | |
var phoneNumber = $('#phone').val() | |
$.ajax({ | |
method: "POST", | |
url: "/getcode", | |
data: JSON.stringify({"number":phoneNumber},null,4), | |
contentType:'application/json;charset=UTF-8' | |
}) | |
30 }); |
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
A warning occurred (42 apples) | |
An error occurred |
NewerOlder