Step 1
If any version of postman is installed we need to remove it
sudo rm -rf /opt/PostmanStep 2
| image: lorisleiva/laravel-docker:latest | |
| phpunit: | |
| stage: test | |
| script: | |
| - composer install --prefer-dist --no-ansi --no-interaction --no-progress --no-scripts | |
| - cp .env.example .env | |
| - php artisan key:generate | |
| - phpunit --colors=never |
| function sendMessage(message){ | |
| const mainEl = document.querySelector('#main') | |
| const textareaEl = mainEl.querySelector('div[contenteditable="true"]') | |
| if(!textareaEl) { | |
| throw new Error('There is no opened conversation') | |
| } | |
| textareaEl.focus() | |
| document.execCommand('insertText', false, message) |
| # Update Jan 2024 | |
| # Deploying Cloud Functions is much simpler than it was 6 years ago. | |
| # I'm leaving the gist in it's original 2018 state for now, | |
| # but skip the the recent comments below for a simpler solution. | |
| variables: | |
| GCP_ZONE: us-central1-a | |
| stages: | |
| - npm-install |
This is the source code of one of my blog post. To read the full blog post please click here.
| // 1. Anonymous Async Function | |
| let main = (async function() { | |
| let value = await doAsync(); | |
| })(); | |
| // 2. Async Function Declaration | |
| let main = async function() { | |
| let value = await doAsync(); |
| /** | |
| * @desc Injects jQuery into Instagram feed page and likes X posts at a time | |
| * | |
| * Usage: Open https://www.instagram.com/ in Chrome and login to view your feed; | |
| * run this script in the JS console to like posts in your feed in batches. | |
| * | |
| * @param {number} start - starting post index (should be 0 unless manually continuing a prev. exec.) | |
| * @param {number} count - number of posts to like per batch (like X posts, wait a little, repeat) | |
| * @param {number} interval - number of milliseconds to wait between batches, +/- some randomness | |
| */ |
| Service | SSL | status | Response Type | Allowed methods | Allowed headers |
|---|