This file contains hidden or 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
| anyio==3.6.2 ; python_version >= "3.9" and python_version < "3.12" | |
| args==0.1.0 ; python_version >= "3.9" and python_version < "3.12" | |
| certifi==2022.12.7 ; python_version >= "3.9" and python_version < "3.12" | |
| charset-normalizer==3.1.0 ; python_version >= "3.9" and python_version < "3.12" | |
| click==8.1.3 ; python_version >= "3.9" and python_version < "3.12" | |
| clint==0.5.1 ; python_version >= "3.9" and python_version < "3.12" | |
| colorama==0.4.6 ; python_version >= "3.9" and python_version < "3.12" and sys_platform == "win32" or python_version >= "3.9" and python_version < "3.12" and platform_system == "Windows" | |
| deta==1.1.0 ; python_version >= "3.9" and python_version < "3.12" | |
| dnspython==2.3.0 ; python_version >= "3.9" and python_version < "3.12" | |
| email-validator==1.3.1 ; python_version >= "3.9" and python_version < "3.12" |
This file contains hidden or 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
| anyio==3.6.2 ; python_version >= "3.9" and python_version < "4.0" | |
| args==0.1.0 ; python_version >= "3.9" and python_version < "4.0" | |
| certifi==2022.12.7 ; python_version >= "3.9" and python_version < "4.0" | |
| charset-normalizer==3.1.0 ; python_version >= "3.9" and python_version < "4" | |
| click==8.1.3 ; python_version >= "3.9" and python_version < "4.0" | |
| clint==0.5.1 ; python_version >= "3.9" and python_version < "4.0" | |
| colorama==0.4.6 ; python_version >= "3.9" and python_version < "4.0" and sys_platform == "win32" or python_version >= "3.9" and python_version < "4.0" and platform_system == "Windows" | |
| dnspython==2.3.0 ; python_version >= "3.9" and python_version < "4.0" | |
| email-validator==1.3.1 ; python_version >= "3.9" and python_version < "4.0" | |
| fastapi==0.95.0 ; python_version >= "3.9" and python_version < "4.0" |
This file contains hidden or 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
| # https://github.com/realpython/python-speech-recognition/blob/master/guessing_game.py | |
| import random | |
| import time | |
| import speech_recognition as sr | |
| def recognize_speech_from_mic(recognizer, microphone): | |
| """Transcribe speech from recorded from `microphone`. |
This file contains hidden or 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 flask import current_app, Blueprint, render_template | |
| from database import db_session | |
| from model import Product | |
| admin = Blueprint('admin', __name__, url_prefix='/admin') | |
| @admin.route('/') | |
| def index(): | |
| product = db_session.query(Product).first() |
This file contains hidden or 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
| interface AnalyticsPayload { | |
| username: string; | |
| lastname: string; | |
| firstname: string; | |
| location: string; | |
| } | |
| const getIpAddress = async () => { | |
| try { | |
| const response = await fetch('https://api.ipify.org'); |
This file contains hidden or 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
| #!/usr/bin/env /Users/truongnguyen/.asdf/shims/python | |
| # coding: UTF-8 | |
| import requests | |
| icons = dict({ | |
| "01d":"☀️" , | |
| "02d":"⛅️" , | |
| "03d":"☁️" , | |
| "04d":"☁️" , |
This file contains hidden or 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
| sudo apt-get update | |
| sudo apt-get install \ | |
| python-dev \ | |
| python-pip \ | |
| python-virtualenv | |
| virtualenv findbots | |
| source findbots/bin/activate | |
| curl -O http://geolite.maxmind.com/download/geoip/database/GeoLite2-City.mmdb.gz |
This file contains hidden or 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
| <?xml version="1.0" encoding="utf-8"?> | |
| <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.myapp"> | |
| <application android:allowBackup="true" android:icon="@mipmap/ic_launcher android:label="@string/app_name" | |
| android:roundIcon="@mipmap/ic_launcher_round" android:supportsRtl="true" android:theme="@style/AppTheme"> | |
| <service android:name=".ForegroundService" android:enabled="true" android:exported="true"></service> | |
| <activity | |
| android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale" |