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
import { build } from 'esbuild' | |
import { glob } from 'glob' | |
import { rimraf } from 'rimraf' | |
async function main() { | |
console.time('build') | |
await rimraf('./dist') | |
const globOptions = { ignore: ['node_modules/**', 'dist/**'] } | |
const files = await glob('**/*.{js,ts,json}', globOptions) | |
await build({ |
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
const yaml = require('js-yaml') | |
const fs = require('fs') | |
const path = require('path') | |
function* getDotPaths(data) { | |
function* iter(obj, parentPaths) { | |
for (const [k, v] of Object.entries(obj)) { | |
const p = [...parentPaths, k] | |
if (typeof v === 'object' && v !== null) { | |
yield* iter(v, p) |
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
:root { | |
--tab-height: 28px; | |
} | |
.tabs-container { | |
height: auto; | |
} | |
.tabs-container .tab, | |
.tabs-container .monaco-icon-label, |
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
# af-magic.zsh-theme | |
# Repo: https://github.com/andyfleming/oh-my-zsh | |
# Direct Link: https://github.com/andyfleming/oh-my-zsh/blob/master/themes/af-magic.zsh-theme | |
# Changed by Loskir | |
# settings | |
typeset +H return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})" | |
typeset +H my_gray="$FG[237]" | |
typeset +H my_orange="$FG[214]" |
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
// ==UserScript== | |
// @name Prevent link mangling on Google and Yandex | |
// @namespace LordBusiness.LMG | |
// @match https://www.google.com/search | |
// @match https://yandex.ru/search* | |
// @version 1.2 | |
// @author radiantly | |
// @description Prevent Google and Yandex from mangling the link when copying or clicking the link | |
// ==/UserScript== |
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
const Events = require('../models/events') | |
const Users = require('../models/users') | |
module.exports = async (ctx, next) => { | |
if (ctx.update?.my_chat_member?.chat?.type !== 'private') { | |
return next() | |
} | |
if (!ctx.update?.my_chat_member?.new_chat_member?.status) { | |
return next() | |
} |