Skip to content

Instantly share code, notes, and snippets.

View byronferguson's full-sized avatar

Byron Ferguson byronferguson

View GitHub Profile
import { api } from './index';
const PATH = '/v2/auth';
export function login(username: string, password: string) {
return api
.post(`${PATH}/login`, {
username,
password,
type: 'family',
<template>
<div>
<label :for="name" class="label">{{ label }}</label>
<input
:id="name"
ref="el"
v-model="input"
type="text"
class="rounded-input"
:required="required"
@byronferguson
byronferguson / printer.cfg
Last active March 6, 2024 00:45
fluidd console dump
17:46:58
// probe at 239.250,194.550 is z=-0.005000
17:46:59
// probe at 239.250,194.550 is z=-0.002500
17:46:59
// Starting manual Z probe. Use TESTZ to adjust position.
// Finish with ACCEPT or ABORT command.
17:46:59
// Z position: ?????? --> 4.998 <-- ??????
18:03:53
@byronferguson
byronferguson / factory.v1.ts
Last active February 20, 2024 08:05
HttpFactory for Repo pattern in Nuxt3
import type { $Fetch } from 'nitropack';
import type { AsyncDataOptions } from 'nuxt/app';
import type { FetchOptions } from 'ofetch';
import { joinURL } from 'ufo';
import { z } from 'zod';
export type { $Fetch };
type Method = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE';
yarn test --passWithNoTests
shell: /usr/bin/bash -e {0}
yarn run v1.22.10
$ jest --passWithNoTests
PASS src/modules/ticket/ticket.controller.spec.ts (6.959s)
FAIL src/modules/nps-survey/nps-survey.service.spec.ts
● Test suite failed to run
src/modules/nps-survey/nps-survey.service.ts:110:24 - error TS2769: No overload matches this call.
The last overload gave the following error.
studentID cID studentRank suggestedRank
459 5 1 1
459 25 2 3
459 3 3 2
459 7 4 11
459 20 NULL 4
459 19 NULL 5
459 4 NULL 6
459 2 NULL 7
459 14 NULL 8
SELECT (sr.studentResponseValue * cw.categoryWeightValue) AS weightedResponse
, cw.occupationalCategoryID AS cID
, iqo.interviewQuestionOptionID AS oID
FROM dbo.StudentResponseTable AS sr
INNER JOIN dbo.InterviewQuestionOptionTable AS iqo
ON (sr.interviewQuestionOptionID = iqo.interviewQuestionOptionID)
AND (sr.studentID = @studentID)
AND (iqo.interviewQuestionOptionActive = 1)
INNER JOIN dbo.CategoryWeightTable AS cw
ON (sr.interviewQuestionOptionID = cw.interviewQuestionOptionID)
[
{
"oID": 369,
"oValue": 40,
"tValue": ""
},
{
"oID": 370,
"oValue": 20,
"tValue": ""
struct
Detail [empty string]
ErrNumber 0
Message Object of type class java.lang.String cannot be used as an array
StackTrace coldfusion.runtime.NonArrayException: Object of type class java.lang.String cannot be used as an array at coldfusion.runtime.Cast._List(Cast.java:1378) at cfQuestionFormats2ecfm1914422829$funcSINGLE.runFunction(C:\ColdFusion11\cfusion\wwwroot\myccmajors\test\includes\QuestionFormats.cfm:12) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:487) at coldfusion.filter.SilentFilter.invoke(SilentFilter.java:47) at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:420) at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:383) at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:95) at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:334) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:231) at coldfusion.runtime.CfJspPage._invokeUDF(CfJspPage.java:2845) at cfoptions2ecfm700512126.runPage(C:\ColdFusion11\cfusi
@byronferguson
byronferguson / app.scripts.json
Last active October 28, 2015 20:14
Current Gulp build process
{
"prebuild": [
"angular",
"angular-animate",
"angular-ui-router",
"angular-bootstrap",
"angular-bootstrap-tpls",
"angular-utf8-base64",
"ng-fastclick"