sudo chmod 777 new-wp-site.sh
./new-wp-site.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
from awsglue.transforms import * | |
from awsglue.utils import getResolvedOptions | |
from pyspark.context import SparkContext | |
from awsglue.context import GlueContext | |
from awsglue.job import Job | |
from datetime import datetime | |
args = getResolvedOptions(sys.argv, ["JOB_NAME"]) | |
sc = SparkContext() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function (c) { | |
c.runtime.onMessage.addListener(async function ( | |
request, | |
sender, | |
sendResponse | |
) { | |
switch (request.type) { | |
case "EVENT_1": | |
// TODO: do something | |
break; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const setTweet = () => { | |
const commentEl = document.querySelector('[class="DraftEditor-root"]'); | |
const editable = commentEl.querySelector("[contenteditable]"); | |
const data = new DataTransfer(); | |
data.setData("text/plain", "Hello World! 😍"); | |
editable.dispatchEvent( | |
new ClipboardEvent("paste", { | |
bubbles: true, | |
clipboardData: data, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"printWidth": 80, | |
"tabWidth": 4, | |
"useTabs": false, | |
"singleQuote": true, | |
"phpVersion": "7.3", | |
"trailingCommaPHP": true, | |
"braceStyle": "psr-2", | |
"requirePragma": false, | |
"insertPragma": false |
docker run --rm --interactive --tty --volume $PWD:/app composer install
docker run --rm -v $(pwd):/app -w /app php:cli php artisan
Một số Framework hỗ trợ:
- @casl/vue cho Vue
- @casl/react cho React
- @casl/angular cho Angular 2+
NewerOlder