This is a small tool designed to emulate the Sublime style Command Palette as follows.
It requires the use of a specific extension to load the js file from this gist.
I'm using the APC extension, and the usage is as follows.
This is a small tool designed to emulate the Sublime style Command Palette as follows.
It requires the use of a specific extension to load the js file from this gist.
I'm using the APC extension, and the usage is as follows.
| <?php | |
| namespace Drupal\mymodule\StackMiddleware; | |
| use Drupal\Core\Cache\CacheTagsInvalidator; | |
| use Drupal\Core\Datetime\DateFormatter; | |
| use Drupal\Core\State\State; | |
| use Symfony\Component\HttpFoundation\Request; | |
| use Symfony\Component\HttpKernel\HttpKernelInterface; |
| import os | |
| import sqlite3 | |
| from datetime import datetime, date | |
| from typing import Tuple, Dict, List | |
| import getpass | |
| from mattermostdriver import Driver | |
| import pathlib | |
| import json |
| # This manifest assumes 'drupal' namespace is already present: | |
| # | |
| # kubectl create namespace drupal | |
| # | |
| # Apply the manifest with: | |
| # | |
| # kubectl apply -f drupal.yml | |
| --- | |
| kind: ConfigMap | |
| apiVersion: v1 |
| #!/usr/env/bin python | |
| from googletrans import Translator | |
| import polib | |
| translator = Translator(service_urls=[ | |
| 'translate.google.com', | |
| 'translate.google.co.kr', | |
| ]) | |
| #source file |
| #!/usr/bin/python | |
| # -*- coding: utf-8 -*- | |
| import os | |
| import csv | |
| import time | |
| delay = 2 | |
| csv_file = "pi_soc_results.csv" |
| #!/bin/bash | |
| # | |
| # Written by Chris Arceneaux | |
| # GitHub: https://github.com/carceneaux | |
| # Email: carcenea@gmail.com | |
| # Website: http://arsano.ninja | |
| # | |
| # Note: This code is a stop-gap to erase Job Artifacts for a project. I HIGHLY recommend you leverage | |
| # "artifacts:expire_in" in your .gitlab-ci.yml | |
| # |
| # Adjust the following variables as necessary | |
| REMOTE=origin | |
| BRANCH=$(git rev-parse --abbrev-ref HEAD) | |
| BATCH_SIZE=500 | |
| # check if the branch exists on the remote | |
| if git show-ref --quiet --verify refs/remotes/$REMOTE/$BRANCH; then | |
| # if so, only push the commits that are not on the remote already | |
| range=$REMOTE/$BRANCH..HEAD | |
| else |