iTorn
  • Home
  • Gists
  • Mongo Note
Subscribe
Python

line_profiler เช็คเวลาที่ใช้ของแต่ละบรรทัดใน Pythonและ Flask

  • Onyx

Onyx

10 ธ.ค. 2021 • 1 min read
line_profiler เช็คเวลาที่ใช้ของแต่ละบรรทัดใน Pythonและ Flask

ของดี

https://github.com/rkern/line_profiler

https://github.com/jlfwong/flask_debugtoolbar_lineprofilerpanel

https://github.com/flask-debugtoolbar/flask-debugtoolbar

ไว้วขยันจะมาเขียน

Sign up for more like this.

Enter your email
Subscribe
Note: Setup Flutter, FlutterFire, and Firebase Cloud Messaging with awesome notifications

Note: Setup Flutter, FlutterFire, and Firebase Cloud Messaging with awesome notifications

สร้าง Firebase Project เริ่มจากให้ตั้งชื่อ Package Name ของ android และ Bundle ID ของ IOS เอาไว้ก่อนตัวอย่างเช่น com.orgname.appname เสร็จแล้วให้เข้าไปสร้าง project ใน https://console.firebase.google.com/ และ setup setup step 1 กำหนด Package Name ของ android

  • Onyx
Onyx 13 ม.ค. 2022 • 6 min read
Rename Flutter Package Name หรือ Bundle ID และ App Name ใน Flutter project

Rename Flutter Package Name หรือ Bundle ID และ App Name ใน Flutter project

จากที่ได้ทดลองมาสองตัว มี package ที่ชื่อ rename สามารถใช้ในการ rename ได้ทั้ง bundle Id และ app name ดูเนื้อหาทั้งหมดได้ที่ rename การติดตั้งpub global activate renameการใช้งานถ้าไม่ได้ส่ง parameter -t or --target เข้าไปด้วย จะเป็นการ rename ใน platform

  • Onyx
Onyx 12 ม.ค. 2022 • 1 min read
Python get public IP

Python get public IP

I liked the http://ipify.org. They even provide Python code for using their API. # This example requires the requests library be installed. You can learn more # about the Requests library here: http://docs.python-requests.org/en/latest/ from requests import get ip = get('https://api.ipify.org').content.decode(

  • Onyx
Onyx 20 ธ.ค. 2021 • 1 min read
iTorn © 2022
Powered by Ghost