apt update && apt install jpegoptim optipng -y
cd /path/to/your/image/folder
| # .github/workflows/test.yaml | |
| name: test | |
| on: push | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| # Service containers to run with `container-job` | |
| services: | |
| # Label used to access the service container | |
| postgres: |
| import sublime, sublime_plugin | |
| import re | |
| import threading | |
| # This is an example plugin that simulates a completion interaction with an | |
| # LSP server, while correctly apply any edits that are received from the | |
| # server. This is trickier than you'd expect, due to the async nature the | |
| # server communication, the async auto complete system in Sublime Text, and | |
| # the use of row+col offsets within the LSP protocol. |
| import sublime | |
| import asyncio | |
| import threading | |
| import sys | |
| class Handle: | |
| def __init__(self, callback, args): | |
| self.callback = callback | |
| self.args = args |
| const handler = { | |
| get(target, key) { | |
| if (key == 'isProxy') | |
| return true; | |
| const prop = target[key]; | |
| if (typeof prop == 'undefined') | |
| return; | |
| if (!prop.isProxy && typeof prop === 'object') | |
| target[key] = new Proxy(prop, handler); |