This file contains 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 { setup } from "@css-render/vue3-ssr"; | |
import { defineNuxtPlugin, type NuxtSSRContext } from "#app"; | |
export default defineNuxtPlugin((nuxtApp) => { | |
if (process.server) { | |
const { collect } = setup(nuxtApp.vueApp); | |
const originalRenderMeta = nuxtApp.ssrContext?.renderMeta; | |
nuxtApp.ssrContext = nuxtApp.ssrContext || ({} as NuxtSSRContext); | |
nuxtApp.ssrContext.renderMeta = () => { |
This file contains 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 type { AsyncData, UseFetchOptions, FetchResult } from "nuxt/app"; | |
import type { FetchError } from "ofetch"; | |
import type { | |
NitroFetchRequest, | |
AvailableRouterMethod as _AvailableRouterMethod, | |
} from "nitropack"; | |
// Custom options | |
interface UseFetchyOptions< | |
_ResT, |
This file contains 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 { ref, watch } from 'vue'; | |
type Func = (...args: any[]) => any; | |
const apiState = reactive({ | |
triggers: {} as Record<string, number> | |
}); | |
export function refetchApi(key: string) { | |
apiState.triggers[key] = (apiState.triggers[key] || 0) + 1; |
This file contains 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 Eolymp Group Problem Number | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description it's hard to know the problem number in eolymp groups, use this for more efficiency | |
// @author Barish Namazov | |
// @match https://www.eolymp.com/*/contests/*/problems/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=eolymp.com | |
// @grant none | |
// ==/UserScript== |
This file contains 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
#include <iostream> | |
using namespace std; | |
int main() { | |
int n; | |
cin>>n; | |
int birinci = (n/10000)%10; | |
int ikinci = (n/1000)%10; | |
int dorduncu = (n/10)%10; | |
int besinci = n%10; |