Skip to content

Instantly share code, notes, and snippets.

@osieckiAdam
osieckiAdam / Antipattern_1.flow-meta.xml
Last active March 4, 2025 19:32
Bulkification in Flows - code for blog article
<?xml version="1.0" encoding="UTF-8"?>
<Flow xmlns="http://soap.sforce.com/2006/04/metadata">
<apiVersion>63.0</apiVersion>
<assignments>
<name>Some_logic_for_setting_general_values</name>
<label>Some logic for setting general values</label>
<locationX>176</locationX>
<locationY>323</locationY>
<assignmentItems>
<assignToReference>Task_Record_To_Insert.IsHighPriority</assignToReference>
@osieckiAdam
osieckiAdam / TestUtility.cls
Created February 8, 2023 13:37 — forked from scottmcclung/TestUtility.cls
Apex method to generate fake record ids in tests.
/**
* Apex method to generate fake record ids in tests
* Created by Stephen Willcock
* https://foobarforce.com/2013/08/15/apex-method-of-the-day-string-repeat/
*/
public class TestUtility
{
static Integer s_num = 1;
public static String getFakeId(Schema.SObjectType sot)
@osieckiAdam
osieckiAdam / index.js
Created December 8, 2019 12:55
Puppeteer example - display all badges from traiblazer.me website
const puppeteer = require("puppeteer");
const run = async () => {
//set up puppeteer and page
//remove the parameter from the function to run in the headless mode
const browser = await puppeteer.launch({ headless: false });
const page = await browser.newPage();
await page.setViewport({
width: 1920,
@osieckiAdam
osieckiAdam / index.html
Created August 16, 2018 08:52
Simple Counter
<span class="counter" style="display: inline-block;">8176</span>