This document outlines how to export CloudWatch Metrics to CSV.
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
// path: qmk_firmware/keyboards/gmmk/pro/ansi/keymaps/viapro/config.h | |
#pragma once | |
#ifdef RGB_MATRIX_ENABLE | |
#define RGB_DISABLE_WHEN_USB_SUSPENDED true | |
#endif // RGB_MATRIX_ENABLE |
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
declare namespace Backbone { | |
class Model<T> { | |
constructor(attr?:T, opt?:any) | |
attributes : T | |
collection: Collection<this> | |
cid: string | |
get<K extends keyof T>(prop:K) : T[K] | |
set<K extends keyof T>(prop:K , val:T[K]) : void | |
defaults() : T | |
on(eventName: string, callback: (...args: any[]) => void) |
Made this example to show how to use Next.js router for a 100% SPA (no JS server) app.
You use Next.js router like normally, but don't define getStaticProps
and such. Instead you do client-only fetching with swr
, react-query
, or similar methods.
You can generate HTML fallback for the page if there's something meaningful to show before you "know" the params. (Remember, HTML is static, so it can't respond to dynamic query. But it can be different per route.)
Don't like Next? Here's how to do the same in Gatsby.
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 axios, { type AxiosError, type InternalAxiosRequestConfig, type AxiosResponse } from 'axios' | |
/** | |
* Create axios instance with default configuration | |
*/ | |
const request = axios.create({ | |
baseURL: import.meta.env.VITE_API_URL, | |
timeout: 5000 | |
}) |
OlderNewer