Skip to content

Instantly share code, notes, and snippets.

View psqq's full-sized avatar
🙃
Where is my mind?

Sergey Pestov psqq

🙃
Where is my mind?
View GitHub Profile
openapi: 3.0.2
info:
title: API
version: 1.0.0
description: API
tags:
- name: test
description: test
security:
- bearerAuth: [ ]
{
"React useState": {
"scope": "javascript,typescript,javascriptreact",
"prefix": "rus",
"body": [
"const [${1}, set${1/(.*)/${1:/capitalize}/}] = useState($2);",
"$0"
],
"description": "useState"
}
@psqq
psqq / index.html
Created December 17, 2021 16:25
HTML5: Blank Template
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Main page</title>
</head>
<body></body>
</html>
({
id: 'anything-plugins-updater',
author: 'psqq',
tags: ['psqq-plugins-group'],
name: 'Auto update plugins from psqq/anything-plugins',
run() {
cordovaFetch('https://api.github.com/repos/psqq/anything-plugins/contents/plugins')
.then((res) => {
return res.json();
})
{
name: 'Calculator',
run() {
document.body.innerHTML = `
<input type="text"><br><br>
Result: <span></span>
`;
var result = document.querySelector('span');
var input = document.querySelector('input');
input.onkeyup = () => {
{
name: "Hello, World! Plugin",
run() {
document.body.innerHTML = 'Hello, World!';
}
}
from itertools import *
ar = range(1, 10)
ae = range(1, 6)
ash = range(0, 10)
ai = range(0, 6)
as_ = range(1, 6)
al = range(0, 6)
an = range(0, 6)
@psqq
psqq / README.md
Last active November 3, 2020 06:19

Running

deno run -A --unstable https://gist.github.com/psqq/5c9b1d4bf6b5cc3469fde370d73fafb8/raw/29bbb3f19e9ba2f8b8e630ef1224d360281b8c9a/main.ts
@psqq
psqq / Readme.md
Created June 20, 2020 08:34
My vim config

Install Plug

Vim

Unix

curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
    https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
@psqq
psqq / README.md
Last active March 29, 2020 09:42
Id generator

Id generator.

Install

yarn add gist:14b0e71326d41620ca3957e850f4b05f

Use