Skip to content

Instantly share code, notes, and snippets.

View paustint's full-sized avatar
🏠
Working from home

Austin Turner paustint

🏠
Working from home
View GitHub Profile
// Name: List Jetstream users
import "@johnlindquist/kit";
import { unzipSync } from "zlib";
let papaparse: typeof import("papaparse") = await npm("papaparse");
let { App }: typeof import("@slack/bolt") = await npm("@slack/bolt");
let {
formatISO,
@paustint
paustint / platformeventViewer.html
Last active January 17, 2025 15:35
Salesforce - subscribe to platform events - LWC
<template>
<lightning-card title="PLATFORM EVENT TABLE" icon-name="standard:customer_portal_users">
<lightning-button slot="actions" variant={buttonVariant} label={buttonLabel} onclick={handleToggleSubscribe}></lightning-button>
<div class="slds-m-around_medium">
<p>
View platform events.
</p>
<div class="slds-m-top_medium">
@paustint
paustint / 1.1.cls
Created November 21, 2021 15:49
js-for-apex-developers
Integer amount; // null
@paustint
paustint / launch.json
Created September 30, 2020 19:11 — forked from cecilemuller/launch.json
Run ts-node in VSCode Debugger
{
"version": "0.2.0",
"configurations": [
{
"name": "Example",
"type": "node",
"request": "launch",
"runtimeExecutable": "node",
"runtimeArgs": ["--nolazy", "-r", "ts-node/register/transpile-only"],
@paustint
paustint / Dockerfile
Created May 21, 2020 15:44
Deploy zip to Heroku with GitHub Action
FROM alpine
RUN apk add --no-cache curl jq
@paustint
paustint / ApexUtils.cls
Last active February 12, 2025 13:01
Apex Utility Classes / CPQ Quote Calculator Plugin Example
/**
* Utility class for common operations
*
* Any classes that use Schema.SObjectField, this property is object by calling "Schema.Account.Description"
* This allows type safety to ensure that code will not break if fields are changed
* this will not work with person accounts
*
* (c) Advanced Technology Group, 2019
* This code may be used and modified freely as long as this copyright attribution
* is included with the code.
@paustint
paustint / AccountTriggerExample
Last active February 19, 2019 16:34
sfdcTriggerHandlerExample
trigger AccountTriggerExample on Accont (before insert, after insert, before update, after update) {
new AccountTriggerHandlerExample().run();
}
@paustint
paustint / salesforce-qcp-stock.ts
Last active March 3, 2021 03:09
Salesforce CPQ - Stock QCP
const DEBUG = true;
function log(...args) {
if (DEBUG) {
console.log(...args);
}
}
/**
* This method is called by the calculator when the plugin is initialized.
/**
*
* @description Data models for interacting with Steelbrick CPQ
* // https://community.steelbrick.com/t5/Developer-Guidebook/Public-API-Technical-Documentation-amp-Code-1/ta-p/5690
*
*/
public without sharing class CPQ_ApiDataModels {
/** INPUT PAYLOADS */