command: '<,'>s/%V(regex)%V/(operation)&/g
change query column into uppercase
import { z } from 'zod' | |
import { ref } from 'vue' | |
import type { DefaultError, QueryKey } from "@tanstack/query-core"; | |
import type { QueryClient } from "@tanstack/vue-query/src/queryClient"; | |
import { | |
UseQueryDefinedReturnType, | |
UseQueryOptions, | |
UseQueryReturnType, | |
useQuery as useVueQuery, | |
} from "@tanstack/vue-query"; |
<?php | |
namespace App\Console\Commands; | |
use Illuminate\Console\Command; | |
class EnsureQueueListenerIsRunning extends Command | |
{ | |
/** | |
* The name and signature of the console command. |
body { | |
background-color: #282a36 !important; | |
} | |
.Header, .Header-old { | |
background-color: #48396C !important; | |
} | |
@media (min-width: 1012px) { | |
.page-responsive .HeaderMenu-link { | |
color: #dfb4fb; | |
} |
#!/usr/bin/env python | |
# coding: utf-8 | |
class AttrDict(object): | |
def __init__(self, init=None): | |
if init is not None: | |
self.__dict__.update(init) | |
def __getitem__(self, key): | |
return self.__dict__[key] |
def multireplace(string, replacements, ignore_case=False): | |
""" | |
Given a string and a replacement map, it returns the replaced string. | |
:param str string: string to execute replacements on | |
:param dict replacements: replacement dictionary {value to find: value to replace} | |
:param bool ignore_case: whether the match should be case insensitive | |
:rtype: str | |
""" |
let regex; | |
/* matching a specific string */ | |
regex = /hello/; // looks for the string between the forward slashes (case-sensitive)... matches "hello", "hello123", "123hello123", "123hello"; doesn't match for "hell0", "Hello" | |
regex = /hello/i; // looks for the string between the forward slashes (case-insensitive)... matches "hello", "HelLo", "123HelLO" | |
regex = /hello/g; // looks for multiple occurrences of string between the forward slashes... | |
/* wildcards */ | |
regex = /h.llo/; // the "." matches any one character other than a new line character... matches "hello", "hallo" but not "h\nllo" | |
regex = /h.*llo/; // the "*" matches any character(s) zero or more times... matches "hello", "heeeeeello", "hllo", "hwarwareallo" |
# KDE | |
# create right click action, to open xterm alongside konsole | |
# location: /usr/share/kservices5/ServiceMenus | |
[Desktop Entry] | |
Type=Service | |
X-KDE-ServiceTypes=KonqPopupMenu/Plugin | |
MimeType=inode/directory; | |
Actions=openXTerminalHere; | |
X-KDE-AuthorizeAction=shell_access |
# | |
# NB : this is not secure | |
# from http://code.activestate.com/recipes/266586-simple-xor-keyword-encryption/ | |
# added base64 encoding for simple querystring :) | |
# | |
# modify for compatibility on python 3 | |
import sys | |
import base64 |