Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 Twitter Scroll Restore | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author @kiliman | |
// @match https://twitter.com/* | |
// @icon https://www.google.com/s2/favicons?domain=twitter.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
#!/bin/bash | |
# Check if the correct number of arguments is provided | |
if [ "$#" -ne 2 ]; then | |
echo "Usage: $0 source_folder target_folder" | |
exit 1 | |
fi | |
source_folder="$1" | |
target_folder="$2" |
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
export type MakeOptional<Type, Key extends keyof Type> = Omit<Type, Key> & | |
Partial<Pick<Type, Key>>; | |
export type PickNullable<T> = { | |
[P in keyof T as null extends T[P] ? P : never]: T[P]; | |
}; | |
export type PickNotNullable<T> = { | |
[P in keyof T as null extends T[P] ? never : P]: T[P]; | |
}; |
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 { spawn } = require("child_process"); | |
const fs = require("fs"); | |
const command = process.argv[2]; | |
const appName = process.argv[3]; | |
if (!fs.existsSync("apps")) { | |
fs.mkdirSync("apps"); | |
} | |
if (fs.existsSync(`apps/${appName}`)) { |
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 GitHub open npm from import | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1.1 | |
// @description Opens the npm package by Ctrl/Cmd+click on import statement | |
// @author Kiliman | |
// @match https://github.com/* | |
// @icon https://www.google.com/s2/favicons?domain=github.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
diff --git a/node_modules/@remix-run/react/dist/data.js b/node_modules/@remix-run/react/dist/data.js | |
index b3b935f..58a4874 100644 | |
--- a/node_modules/@remix-run/react/dist/data.js | |
+++ b/node_modules/@remix-run/react/dist/data.js | |
@@ -61,6 +61,12 @@ async function fetchData(request, routeId, retry = 0) { | |
init.body = await request.formData(); | |
} | |
} | |
+ init.headers = { | |
+ ...init.headers, |
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 env = getEnvVars(); | |
function myTracesSampler(samplingContext: SamplingContext) { | |
// Don't trace healthcheck or HEAD requests | |
const { transactionContext } = samplingContext; | |
if ( | |
transactionContext.name === 'routes/healthcheck/_index' || | |
transactionContext.tags?.method === 'HEAD' | |
) { | |
return false; |
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/@remix-run/server-runtime/dist/responses.js b/node_modules/@remix-run/server-runtime/dist/responses.js | |
index d042d61..1e6d5c6 100644 | |
--- a/node_modules/@remix-run/server-runtime/dist/responses.js | |
+++ b/node_modules/@remix-run/server-runtime/dist/responses.js | |
@@ -47,7 +47,7 @@ function isDeferredData(value) { | |
return deferred && typeof deferred === "object" && typeof deferred.data === "object" && typeof deferred.subscribe === "function" && typeof deferred.cancel === "function" && typeof deferred.resolveData === "function"; | |
} | |
function isResponse(value) { | |
- return value != null && typeof value.status === "number" && typeof value.statusText === "string" && typeof value.headers === "object" && typeof value.body !== "undefined"; | |
+ return value instanceof router.ErrorResponse || (value != null && typeof value.status === "number" && typeof value.statusText === "string" && typeof value.headers === "object" && typeof value.body !== "undefined"); |
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 { ActionArgs, LoaderArgs } from "@remix-run/node"; | |
import { json } from "@remix-run/node"; | |
import type { SubmitOptions } from "@remix-run/react"; | |
import { useActionData, useNavigation, useSubmit } from "@remix-run/react"; | |
import { useCallback, useEffect, useMemo } from "react"; | |
export function loader({ request }: LoaderArgs) { | |
return json({ message: "Hello World" }); | |
} |
NewerOlder