We should have at least three files: 'Widget.svelte', 'rollup.config.js' and 'package.json':
- Our widget
Widget.svelte
:
<script>
export let name;
</script>
<h1>Hello {name}!</h1>
const yargs = require("yargs"); | |
const robot = require("robotjs"); | |
const { hideBin } = require("yargs/helpers"); | |
let is_both; | |
let is_mouse; | |
let is_keyboard; | |
const arg = yargs(hideBin(process.argv)) | |
.command("$0 [interval]", true, (yargs) => { |
// Self invoking function | |
(function(w, d, link, script, p) { | |
window.onload = function() { | |
// Load css | |
var css = "https://cd.example.com/widget.css"; | |
// Load js | |
var js = "https://cd.example.com/widget.js"; | |
link = d.createElement("link"); | |
link.rel = "stylesheet"; |
Using rollup-plugin-vue |
# Protect WooCommerce upload folder from being accessed directly. | |
# You may want to change this config if you are using "Redirect Only" method for downloadable products. | |
# Place this config towards the end of "server" block in nGinx configuration. | |
location ~* /wp-content/uploads/woocommerce_uploads/ { | |
if ( $upstream_http_x_accel_redirect = "" ) { | |
return 403; | |
} | |
internal; | |
} |
We should have at least three files: 'Widget.svelte', 'rollup.config.js' and 'package.json':
Widget.svelte
:<script>
export let name;
</script>
<h1>Hello {name}!</h1>
Helpful Migration Guides:
let result = { | |
unique: [], | |
frequent: [] | |
} | |
const arr1 = ['a', 'b', 'c', 'e', 'j', 'f'] | |
const arr2 = ['a', 'a', 'f', 'b', 'g', 'r', 'e', 'f', 't'] | |
let count = {} |
Please submit your article including all of the information below. You can include this as a seperate file if you like - but please complete each section. Please use an online service to write your article, for example Dropbox Paper, Draft.in, Google Docs. For more help, see the editorial guide
Article Title
Ideally under 67 characters, what problem does this article solve?
Quick Summary
/** | |
* Module Dependencies | |
*/ | |
var express = require('express'); | |
var app = express(); | |
/** | |
* Configuration | |
*/ |
import AWS from 'aws-sdk'; | |
import stream from 'stream' | |
import axios from 'axios'; | |
export default async (url, filename, callback) => { | |
const s3 = new AWS.S3({ params: { Bucket: process.env.STATIC_MAPS_BUCKET }}); | |
let contentType = 'application/octet-stream' | |
let promise = null | |
const uploadStream = () => { |