Things you need...
chrome browser in your system chromdervier (add it in your environment PATH) https://chromedriver.chromium.org/downloads
install selenium with pip
pip install selenium
then use below script
| // | |
| // Created by https://quickplan.app on 2020/11/8. | |
| // | |
| import SwiftUI | |
| /// Control if allow to dismiss the sheet by the user actions | |
| /// - Drag down on the sheet on iPhone and iPad | |
| /// - Tap outside the sheet on iPad | |
| /// No impact to dismiss programatically (by calling "presentationMode.wrappedValue.dismiss()") | 
Things you need...
chrome browser in your system chromdervier (add it in your environment PATH) https://chromedriver.chromium.org/downloads
install selenium with pip
pip install selenium
then use below script
| const crypto = require('crypto') | |
| const Swarm = require('discovery-swarm') | |
| const defaults = require('dat-swarm-defaults') | |
| const getPort = require('get-port') | |
| const readline = require('readline') | |
| /** | |
| * Here we will save our TCP peer connections | |
| * using the peer id as key: { peer_id: TCP_Connection } | |
| */ | 
| import WebKit | |
| public class CustomWebView: WKWebView { | |
| // var javascript: Javascript! | |
| public override init(frame: CGRect, configuration: WKWebViewConfiguration = WKWebViewConfiguration()) { | |
| super.init(frame: frame, configuration: configuration) | |
| doInit() | 
For a brief user-level introduction to CMake, watch C++ Weekly, Episode 78, Intro to CMake by Jason Turner. LLVM’s CMake Primer provides a good high-level introduction to the CMake syntax. Go read it now.
After that, watch Mathieu Ropert’s CppCon 2017 talk Using Modern CMake Patterns to Enforce a Good Modular Design (slides). It provides a thorough explanation of what modern CMake is and why it is so much better than “old school” CMake. The modular design ideas in this talk are based on the book [Large-Scale C++ Software Design](https://www.amazon.de/Large-Scale-Soft
| #include <Windows.h> | |
| #include <mmdeviceapi.h> | |
| #include <endpointvolume.h> | |
| int CALLBACK WinMain(HINSTANCE, HINSTANCE, LPSTR, int) { | |
| CoInitializeEx(NULL, COINIT_APARTMENTTHREADED); | |
| IMMDeviceEnumerator* deviceEnumerator; | |
| CoCreateInstance(__uuidof(MMDeviceEnumerator), NULL, CLSCTX_INPROC_SERVER, IID_PPV_ARGS(&deviceEnumerator)); | 
| package main | |
| import ( | |
| "crypto/aes" | |
| "crypto/cipher" | |
| "crypto/rand" | |
| "encoding/base64" | |
| "fmt" | |
| "io" | |
| ) | 
To provide better shopping experience for Onefill users, we want to support as many shopping site as we can by injecting our JavaScript engine into those sites. However, some of them are using iframe which is outdated HTML tag to implement some forms like payment and signup. And due to security issue JavaScript can’t communicate with iframe unless it’s same domain or it’s your domain. So here is the approach we did to support iframe under iOS web view and so we can communicate with it.