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 * as React from 'react' | |
export function Ratings({ | |
value, | |
width = 18, | |
height = 16, | |
gap = 2, | |
maxStars = 5, | |
color = '#f39c12', | |
}: { |
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
// next.config.mjs | |
import type { NextConfig } from 'next' | |
function getBabelLoader() { | |
return { | |
loader: 'babel-loader', | |
options: { | |
presets: [ | |
[ | |
'next/dist/compiled/babel/preset-typescript', |
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
/** | |
* Copyright (c) Meta Platforms, Inc. and affiliates. | |
* | |
* This source code is licensed under the MIT license found in the | |
* LICENSE file in the root directory of this source tree. | |
* | |
* | |
*/ | |
const fs = require('fs'); |
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 * as React from 'react' | |
export function useIsMachineTranslationEnabled() { | |
const [isMachineTranslationEnabled, setIsMachineTranslationEnabled] = | |
React.useState(false) | |
React.useEffect(() => { | |
if (isMachineTranslationEnabled) { | |
return | |
} |
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 { parseArgs } from 'node:util' | |
import watchman, { Client } from 'fb-watchman' | |
import ansis from 'ansis' | |
import path from 'node:path' | |
import fs from 'node:fs' | |
import { globSync } from 'fast-glob' | |
import { transformSync } from '@babel/core' | |
import styleXBabelPlugin from '@stylexjs/babel-plugin' |
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
diff --git a/node_modules/react-native-star-io10/src/Error.ts b/node_modules/react-native-star-io10/src/Error.ts | |
new file mode 100644 | |
index 0000000..c9bc58a | |
--- /dev/null | |
+++ b/node_modules/react-native-star-io10/src/Error.ts | |
@@ -0,0 +1,4 @@ | |
+// https://github.com/star-micronics/react-native-star-io10/issues/15 | |
+export interface Error extends globalThis.Error { | |
+ code: string | |
+} |
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
/* | |
Description: | |
This script converts `yield call()` to `yield* call()` syntax and 'redux-saga/effects' to 'typed-redux-saga' | |
Make sure to commit your files first before you run the below script! | |
Usage: | |
npx jscodeshift --parser tsx -t ./migrate-redux-saga.ts ./sagas/**\/*.ts | |
Before: |
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
test |
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 <stdio.h> | |
#include <string.h> | |
int main(void) { | |
int n; | |
int employees[4000] = {0}; | |
while (1) { | |
scanf("%d", &n); | |
if (!n) break; | |
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
function* gcd(a, b) { | |
[a, b] | |
if (a < b) { | |
var t = a; | |
a = b; | |
b = t; | |
} | |
do { | |
r = a % b; |
NewerOlder