https://gist.github.com/cheadrian/8424217dda5a28724f290eef7fb4e059
or
import glob | |
import os | |
import time | |
import torch | |
from PIL import Image | |
from vizer.draw import draw_boxes | |
import cv2 |
#Note: this solution dosen't guarantee that your network will work as expected after you convert with this, | |
#because it wasn't tested | |
#enought | |
#Environement: tensorflow 1.14.0 | |
# Lint as: python2, python3 | |
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); |
#With the help of this script you can download parts from the Youtube Video that is live streamed, from start of the stream till the end | |
import urllib.request | |
import os | |
#E.G: "https://r4---sn-gqn-p5ns.googlevideo.com/videoplayback?expire=1603041842& ..... 2.20201016.02.00&sq=" | |
#The sound link should contain: &mime=audio in it. | |
#Here's an example from NASA LIVE: | |
#VIDEO: https://r5---sn-gqn-p5ns.googlevideo.com/videoplayback?expire=1603165657&ei=eQmOX8TeFtS07gO1xLWwDA&ip=79.115.11.159&id=DDU-rZs-Ic4.1&itag=137&aitags=133%2C134%2C135%2C136%2C137%2C160&source=yt_live_broadcast&requiressl=yes&mh=PU&mm=44%2C29&mn=sn-gqn-p5ns%2Csn-c0q7lnsl&ms=lva%2Crdu&mv=m&mvi=5&pl=20&initcwndbps=1350000&vprv=1&live=1&hang=1&noclen=1&mime=video%2Fmp4&gir=yes&mt=1603143920&fvip=5&keepalive=yes&fexp=23915654&c=WEB&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Cvprv%2Clive%2Chang%2Cnoclen%2Cmime%2Cgir&sig=AOq0QJ8wRQIgQMnxy1Yk3HLTpqbOGmjZYH1CXCTNx6u6PgngAVGi4EQCIQDWyaye-u_KGyVQ0HRUsyKVaAzyXbmzDqOGVGpIyP7VtA%3D%3D&lspa |
/* | |
* Forward data received by webhook from Google Ads Form Extension | |
* to selected email | |
* Details at: | |
* https://che-adrian.medium.com/create-a-webhook-for-google-ads-lead-form-extension-using-wordpress-and-wp-webhooks-plugin-and-cd2a3c7fb1c3 | |
*/ | |
add_filter( 'wpwhpro/run/actions/custom_action/return_args', 'wpwh_ads_email', 10, 3 ); | |
function wpwh_ads_email( $return_args, $identifier, $response_body ){ | |
//Email where you receive the data | |
$to = "example@example.com"; |
from collections import OrderedDict | |
from torch import nn | |
from torch.nn import functional as F | |
class _SimpleSegmentationModel(nn.Module): | |
__constants__ = ['aux_classifier'] | |
def __init__(self, backbone, classifier, aux_classifier=None, export_onnx=False): |
Updated: 12.Feb.2024
MV3 doesn't support remote hosted code anymore so everything should be bind inside extension package.
Save Firebase Javascript modules inside /js/firebase/ of extension root.
E.g. files: https://www.gstatic.com/firebasejs/10.8.0/firebase-app.js
This will help you to block, part of, the Huawei tracking and ADS using AdAway in VPN mode.
Simple add these links to the list:
import fitz | |
import tkinter as tk | |
from tkinter import ttk | |
from tkinter import * | |
from tkinter import filedialog | |
from tkinterdnd2 import DND_FILES, TkinterDnD | |
def on_drop(file_path): | |
# Split multiple files: | |
paths = file_path.split(' ') |
These are the flows witch you can import into your Node-RED.
Contains OpenAI API examples for ChatGPT and Dall-e 2 combined with chat platforms, like Messenger, Whatsapp Business, Whatsapp Personal and Telegram.
There's also an example with email conversation.
You can find the list of articles which you can use with these files on Medium, here.