deno run -A --unstable https://gist.github.com/psqq/5c9b1d4bf6b5cc3469fde370d73fafb8/raw/29bbb3f19e9ba2f8b8e630ef1224d360281b8c9a/main.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// type "node index.mjs" for run | |
import assert from 'assert'; | |
import test, { describe } from 'node:test'; | |
export default function classes(BasesArg) { | |
class Bases { | |
constructor() { | |
BasesArg.forEach((Base) => Object.assign(this, new Base())); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
openapi: 3.0.2 | |
info: | |
title: API | |
version: 1.0.0 | |
description: API | |
tags: | |
- name: test | |
description: test | |
security: | |
- bearerAuth: [ ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"React useState": { | |
"scope": "javascript,typescript,javascriptreact", | |
"prefix": "rus", | |
"body": [ | |
"const [${1}, set${1/(.*)/${1:/capitalize}/}] = useState($2);", | |
"$0" | |
], | |
"description": "useState" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
({ | |
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(); | |
}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
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 = () => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
name: "Hello, World! Plugin", | |
run() { | |
document.body.innerHTML = 'Hello, World!'; | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
NewerOlder