yarn add -D @nxpm/cli
yarn nxpm-stack lint
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
# Build the image: | |
# docker build . -t solana-validator-docker | |
# Run a basic container: | |
# docker run --rm -it --init solana-validator-docker:latest | |
# Run the solana-test-validator and expose port 8899: | |
# docker run --rm -it --init -p 8899:8899 solana-validator-docker:latest solana-test-validator | |
# | |
# Based on Ubuntu 22.04 LTS (Jammy) | |
FROM ubuntu:jammy | |
# Set the workdir to $HOME |
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 { useConnection, useWallet } from '@solana/wallet-adapter-react' | |
import { useSolana } from './solana-provider' | |
export function AppFeature() { | |
const { connection } = useConnection() | |
const { network } = useSolana() | |
const wallet = useWallet() | |
if (wallet.connecting) { | |
return <div>Connecting wallet...</div> |
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
FROM debian:bullseye as base | |
RUN rm /bin/sh && ln -s /bin/bash /bin/sh | |
WORKDIR /workspace | |
RUN mkdir -pv "/workspace/bin" && echo 'echo test' > '/workspace/bin/test.sh' && chmod +x '/workspace/bin/test.sh' | |
ENV PATH="/workspace/bin:${PATH}" | |
FROM base as builder |
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 const DEFAULT_ENGINE = 'davinci'; | |
export const ENGINE_LIST = ['ada', 'babbage', 'curie', 'davinci', 'davinci-instruct-beta', 'curie-instruct-beta']; | |
export const ORIGIN = 'https://api.openai.com'; | |
export const DEFAULT_API_VERSION = 'v1'; | |
export const DEFAULT_OPEN_AI_URL = `${ORIGIN}/${DEFAULT_API_VERSION}`; |
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 { Logger, Module } from '@nestjs/common' | |
import { ServeStaticModule } from '@nestjs/serve-static' | |
import { ensureDirSync, existsSync, writeFileSync } from 'fs-extra' | |
import { join } from 'path' | |
const rootPath = join(__dirname, '..', 'admin') | |
@Module({ | |
imports: [ | |
// Feature modules here... |
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
{ | |
"angular": { | |
"alias": ["ng"], | |
"terms": { | |
"router": [ | |
{ "label": "In-app navigation: routing to views", "url": "https://angular.io/guide/router" }, | |
{ "label": "Observables in Angular - Router", "url": "https://angular.io/guide/observables-in-angular#router" } | |
] | |
} | |
}, |
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
@Injectable() | |
export class DataService extends PrismaClient implements OnModuleInit, OnModuleDestroy { | |
constructor() { | |
super() | |
} | |
async onModuleInit() { | |
await this.$connect() | |
} |
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
[iPhone 6s]: INFO: HMR: Hot Module Replacement Enabled. Waiting for signal. | |
2020-08-13 11:36:33.536 nsplaydev[8557:706933] PlayLiveSync: applicationDidFinishLaunching | |
2020-08-13 11:36:33.600 nsplaydev[8557:706933] ***** Fatal JavaScript exception - application has been terminated. ***** | |
2020-08-13 11:36:33.600 nsplaydev[8557:706933] Native stack trace: | |
1 0x10319b2fc NativeScript::reportFatalErrorBeforeShutdown(JSC::ExecState*, JSC::Exception*, bool) | |
2 0x1031d1a38 NativeScript::FFICallback<NativeScript::ObjCMethodCallback>::ffiClosureCallback(ffi_cif*, void*, void**, void*) | |
3 0x103cc4afc ffi_closure_SYSV_inner | |
4 0x103cc81b4 .Ldo_closure | |
5 0x19f000644 <redacted> | |
6 0x19f00068c <redacted> |
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
curl 'http://api.loklak.org/api/user.json?screen_name=amcdnl&followers=10000&following=10000' |
NewerOlder