Función para forzar la descarga de un archivo usando Javascript puro
A Pen by Vladimir Salguero on CodePen.
# 警告: 后果自负, 作者不承担任何责任, 也不提供任何支持... | |
import requests | |
import json | |
import re | |
import os | |
import time | |
import subprocess | |
import sys | |
VI/REk7lC1kj |
Función para forzar la descarga de un archivo usando Javascript puro
A Pen by Vladimir Salguero on CodePen.
using System; | |
using System.Text; | |
using NetMQ; | |
using NetMQ.Sockets; | |
using System.Threading; | |
namespace cshap_zmq | |
{ | |
class Program | |
{ |
This guide will enable systemd
to run as normal under WSL 2. This will enable services like microk8s
, docker
and many more to just work
during a WSL session. Note: this was tested on Windows 10 Build 2004, running Ubuntu 20.04 LTS in WSL 2.
To enable systemd
under WSL we require a tool called systemd-genie
Copy the contents of install-sg.sh
to a new file /tmp/install-sg.sh
:
cd /tmp
#include <vector> | |
#include <iostream> | |
using namespace std; | |
struct Neuron; | |
template <typename Self> | |
struct SomeNeurons { | |
// must be declaration here only | |
// implementation should be placed at the end |
void detectMotion(AVPixelFormat format, AVFrame *pFrame) | |
{ | |
static bool firstRun = true; | |
static cv::Mat lastImage; | |
static double _area = 0; | |
static double area = 0; | |
static int frameProcessed = 0; | |
vector<vector<cv::Point> > cnts; | |
cv::Mat origin; | |
avcvhelpers::frame2mat(format, pFrame, origin); |
/*# 1- Identify the UART interface, GPIO pins and Alternate Function #########*/ | |
/* For example: | |
* B-L475E-IOT01A: | |
* PB6 ------> USART1_TX | |
* PB7 ------> USART1_RX | |
* | |
* NUCLEO-L476RG: | |
* PA2 ------> USART2_TX | |
* PA3 ------> USART2_RX | |
* |
#!/bin/sh | |
gst-launch-1.0 -v \ | |
rtpbin name=rtpbin \ | |
udpsrc caps="application/x-rtp,media=video,clock-rate=90000,encoding-name=H264" port=5004 \ | |
! rtpbin.recv_rtp_sink_0 \ | |
rtpbin. \ | |
! rtph264depay ! h264parse \ | |
! avdec_h264 ! videoconvert \ | |
! ximagesink |