https://www.youtube.com/watch?v=OIpfWTThrK8
It is good but could use some clarification and revision 5 years later...
Reasons to test:
/** | |
* Stub out the component with this | |
*/ | |
export const StubFieldComponent = { | |
props: ["name"], | |
setup: (props: { name: string }): unknown => { | |
if (props.name === undefined) { | |
throw new Error("did not recv props!"); | |
} | |
const field = useField<unknown>(props.name); |
const fs = require('fs'); | |
// Check if a Markdown file is provided as a command-line argument | |
const filePath = process.argv[2]; | |
if (!filePath) { | |
console.error('Please provide a Markdown file as a command-line argument.'); | |
process.exit(1); | |
} |
import { ConnectError } from '@bufbuild/connect-web'; | |
import { Ref, ref } from 'vue'; | |
const useStreamingCall = <T>(controllerFn: StreamingCallController<T>) => { | |
const currentData = ref<T | undefined>(); // todo: optionally not make undefined | |
const cancel = controllerFn( | |
(data: T) => { | |
currentData.value = data; | |
// do something with data |
https://www.youtube.com/watch?v=OIpfWTThrK8
It is good but could use some clarification and revision 5 years later...
Reasons to test:
<script setup lang="ts"> | |
import { useCeVueApp } from './useCeVueApp'; | |
import PrimeVue from 'primevue/config' | |
useCeVueApp(app => { | |
app.use(PrimeVue); | |
}); | |
</script> |
import fs from 'fs'; | |
import path from 'path'; | |
import * as acorn from 'acorn'; | |
import * as walk from 'acorn-walk'; | |
const getRelativeModuleFilePath = ( | |
moduleFilePath: string, | |
adjacentModulePath: string | |
): string | false => { | |
const adjacentModuleFilePath = path.join(path.dirname(moduleFilePath), adjacentModulePath); |
#!/bin/bash | |
# Run this script with cURL: | |
# curl --silent -sLo $TMPDIR/azpat.sh https://gist.githubusercontent.com/scvnc/0567cd25a7f61ad17713b9490d3f4af2/raw/azpat.sh && bash $TMPDIR/azpat.sh | |
# Follows instructions from | |
# https://dev.azure.com/${ORG_SLUG}/${PROJECT_NAME}/_packaging?_a=connect&feed=${ORG_SLUG} | |
# Select npm from the side and select the "Other" tab in the Project Setup section | |
set -e |
import { useObservable } from '@/helpers/rxjs-helper'; | |
import { computed } from '@vue/composition-api'; | |
import { BehaviorSubject } from 'rxjs'; | |
interface Alert { | |
id: number; | |
text: string; | |
} | |
interface AlertsStoreState { |
$processes = ( | |
"Dropbox*", | |
"DbxSvc.exe", | |
"EpicGamesLauncher.exe", | |
"boinc*", | |
"OneDrive.exe", | |
"mDNSResponder.exe", | |
"Lightshot.exe", | |
"MoUsoCoreWorker.exe", | |
"PnkBstrA.exe", |