The main difference between the two pages is the method of sending messages. Recieving messages is the same in both.
Send messages to iframe using iframeEl.contentWindow.postMessage
Recieve messages using window.addEventListener('message')
### bitcoin.conf configuration file. Lines beginning with # are comments. | |
### Uncomment and edit options you wish to use. | |
## JSON-RPC options (for controlling a running bitcoin-qt/bitcoind process) | |
# server=1 tells Bitcoin to accept JSON-RPC commands. | |
server=1 | |
# Use this for Bitcoin core for development and blockchain analysis | |
txindex=1 |
/* | |
* MIT License | |
* | |
* Copyright (c) 2017-2018 Bannerets <save14@protonmail.com> | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy | |
* of this software and associated documentation files (the "Software"), to deal | |
* in the Software without restriction, including without limitation the rights | |
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
* copies of the Software, and to permit persons to whom the Software is |
rabbitmqctl add_user username password | |
rabbitmqctl set_user_tags username administrator | |
rabbitmqctl set_permissions -p / username ".*" ".*" ".*" |
#Nginx Ghost Config | |
server { | |
listen 80; | |
server_name somedomain.com; | |
rewrite ^(.*) https://$host$1 permanent; | |
} | |
# the secure nginx server instance | |
server { | |
listen 443 ssl; |
const { watch, dest, series, parallel } = require('gulp'); | |
const sourcemaps = require('gulp-sourcemaps'); | |
const terser = require('gulp-terser-js'); | |
const browserify = require('browserify'); | |
const watchify = require('watchify'); | |
const babelify = require('babelify'); | |
const source = require('vinyl-source-stream'); | |
const buffer = require('vinyl-buffer'); | |
function Task() { |
import findspark | |
findspark.init() | |
from pyspark.sql import SparkSession | |
# Connect to Remote Spark Deployment | |
# spark = SparkSession \ | |
# .builder.master('spark://master-node:7077') \ | |
# .appName("read-csv") \ | |
# .getOrCreate() |
class Foo { | |
constructor(x) { this.foo = x; } | |
hello() { console.log(this.foo); } | |
} | |
class Bar extends Foo { | |
constructor(x) { super(x); this.bar = x * 100; } | |
world() { console.log(this.bar); } | |
} |
#!/bin/bash | |
# download and install latest geckodriver for linux or mac. | |
# required for selenium to drive a firefox browser. | |
install_dir="/usr/local/bin" | |
json=$(curl -s https://api.github.com/repos/mozilla/geckodriver/releases/latest) | |
if [[ $(uname) == "Darwin" ]]; then | |
url=$(echo "$json" | jq -r '.assets[].browser_download_url | select(contains("macos"))') | |
elif [[ $(uname) == "Linux" ]]; then | |
url=$(echo "$json" | jq -r '.assets[].browser_download_url | select(contains("linux64"))') |
# !pip install python-docx Pillow | |
import os | |
from docx import Document | |
from docx.shared import Inches | |
from docx.enum.text import WD_ALIGN_PARAGRAPH | |
from PIL import Image | |
def build_document(images_folder_path, output_path, columns, rows, add_text): | |
# List all files in the folder |