https://github.com/discourse/discourse/blob/master/docs/INSTALL-cloud.md#access-your-cloud-server
| const groupName = '美区服务' | |
| const usServices = [ | |
| 'claude.ai', | |
| 'anthropic.com', | |
| 'openai.com', | |
| 'adobe.com', | |
| 'adobe.io', | |
| 'meta.ai', | |
| 'hume.ai', |
| import * as fs from 'node:fs' | |
| import * as path from 'node:path' | |
| import { startCase } from 'lodash-es' | |
| import { format } from 'prettier' | |
| import * as Rx from 'rxjs' | |
| import * as svgo from 'svgo' | |
| import config from './iconset' |
| // ==UserScript== | |
| // @name Gitbub Blocks | |
| // @namespace https://github.com/ | |
| // @version 1.0 | |
| // @description Add a button to replace github.com with block.githubnext.com in the URL bar on GitHub repositories page | |
| // @author https://twitter.com/stackobserve | |
| // @match https://github.com/*/* | |
| // @grant window.onurlchange | |
| // ==/UserScript== |
| enum Code { | |
| // Not an error; returned on success | |
| // | |
| // HTTP Mapping: 200 OK | |
| OK = 0; | |
| // The operation was cancelled, typically by the caller. | |
| // | |
| // HTTP Mapping: 499 Client Closed Request | |
| CANCELLED = 1; |
| declare module '//cdnjs.cloudflare.com/ajax/libs/Faker/3.0.1/locales/zh_CN/faker.zh_CN.min.js' { | |
| export = Faker; | |
| } | |
| declare namespace Faker { | |
| namespace address { | |
| function zipCode(format?:string); |
| declare module 'react-grid-layout' { | |
| import * as React from 'react' | |
| export namespace utils { | |
| type Maybe<T> = T | undefined | |
| type LayoutItemRequired = { w: number, h: number, x: number, y: number, i: string } | |
| type LayoutItem = | |
| { minW ?: number, minH ?: number, maxW ?: number, maxH ?: number, moved ?: boolean, static ?: boolean, isDraggable?: boolean, isResizable?: boolean } | |
| & LayoutItemRequired |
| // Place your settings in this file to overwrite the default settings | |
| { | |
| "editor.fontFamily": "Source Code Pro", | |
| "editor.fontSize": 14, | |
| "editor.formatOnType": true, | |
| "go.gopath": "/Users/X/Workspace/GOPATH", | |
| "rust.rustLangSrcPath": "/usr/local/src/rust/src", | |
| "rust.racerPath": "/Users/X/.multirust/toolchains/nightly/cargo/bin/racer", |
| def unsafe: Unsafe = { | |
| val field = classOf[Unsafe].getDeclaredField("theUnsafe") | |
| field.setAccessible(true) | |
| field.get(null) | |
| val unsafe = field.asInstanceOf[Unsafe] | |
| unsafe | |
| } |