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
| trait Higher<A, B> { | |
| type Target; | |
| } | |
| trait Higher3<A, B, C> { | |
| type Target2; | |
| type Target3; | |
| } | |
| impl<A, B> Higher<A, B> for Option<A> { |
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 * as vscode from "vscode"; | |
| import { initUsePackage, usePackage, configSet } from "vscode-use-package"; | |
| import * as nav from "./nav"; | |
| import * as js from "./js"; | |
| import * as rust from "./rust"; | |
| export function init(context: vscode.ExtensionContext) { | |
| console.log(`HELLO FROM INIT SCRIPT`); |
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 generator, { OAuth } from "megalodon"; | |
| import PleromaAPI from "megalodon/lib/src/pleroma/api_client"; | |
| import { DEFAULT_UA } from "megalodon/lib/src/default"; | |
| import * as readline from "readline-sync"; | |
| async function main() { | |
| const baseUrl = readline.question('URL of Pleroma instance (ex. "https://lol.camp"): '); | |
| const registerClient = generator("pleroma", baseUrl); | |
| const appData = await registerClient.registerApp("User Alias Editor", {}); |
OlderNewer