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 { retryFunction } from '@lib/utils/retryFunction'; | |
import { ClientOptions, EventSchemas, EventsFromOpts, Inngest } from 'inngest'; | |
import { SendEventPayload } from 'inngest/helpers/types'; | |
import { Events } from './events'; | |
const inngestOptions = { | |
id: 'my-app', | |
schemas: new EventSchemas().fromRecord<Events>(), | |
} satisfies ClientOptions; |
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
# ~/.fetchmailrc | |
poll mail.privateemail.com | |
with proto IMAP | |
uidl | |
user "[email protected]" | |
there with pass "password" | |
mda "msmtp -a [email protected] -- [email protected]" | |
folders "INBOX", "INBOX/Folder 1", , "INBOX/Folder 2" | |
ssl |
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
const extendedOrderArgs = Prisma.validator<Prisma.OrderArgs>()({ | |
include: { | |
orderStatus: true, | |
orderItems: { | |
include: { | |
orderItemStatus: true, | |
}, | |
}, | |
}, | |
}); |
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
#!/bin/sh | |
ffmpeg -i "$URL" -protocol_whitelist "file,http,https,tcp,tls" -codec copy out.mp4 |
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 React, { | |
ReactElement, | |
useRef, | |
useState, | |
useCallback, | |
createRef, | |
RefObject, | |
useEffect, | |
useMemo, | |
} from 'react'; |
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
/* eslint-disable no-inner-declarations */ | |
import { canUseDOM } from 'fbjs/lib/ExecutionEnvironment'; | |
let isEnabled = false; | |
if (canUseDOM) { | |
/** | |
* Web browsers emulate mouse events (and hover states) after touch events. | |
* This code infers when the currently-in-use modality supports hover | |
* (including for multi-modality devices) and considers "hover" to be enabled |
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
Show hidden characters
{ | |
"compilerOptions": { | |
"target": "ES6", | |
"module": "ESNext", | |
"lib": [ "DOM", "ESNext" ], | |
// Search under node_modules for non-relative imports. | |
"moduleResolution": "node", | |
// Process & infer types from .js files. | |
"allowJs": true, |
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
module.exports = { | |
defaultNamespace: 'common', | |
useKeysAsDefaultValue: true, | |
locales: ['en', 'es'], | |
output: 'src/i18n/locales/$LOCALE/$NAMESPACE.json', | |
input: 'src/**/*.{js,ts,tsx}', | |
sort: true, | |
lexers: { | |
js: ['JsxLexer'], | |
ts: ['JavascriptLexer'], |
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
{ | |
"window.zoomLevel": -1, | |
"window.titleBarStyle": "custom", | |
"editor.fontFamily": "Cascadia Code", | |
"editor.fontSize": 15, | |
"editor.fontLigatures": true, | |
"editor.tabSize": 2, | |
"editor.suggestSelection": "first", | |
"editor.tabCompletion": "onlySnippets", | |
"editor.codeActionsOnSave": { |
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
public class MySingleton { | |
private static MySingleton sInstance; | |
private final Context mContext; | |
private MySingleton(Context context) { | |
mContext = context.getApplicationContext(); | |
} | |
public getInstance(Context context) { | |
synchronized (MySingleton.class) { |