Skip to content

Instantly share code, notes, and snippets.

View mattparlane's full-sized avatar

Matt Parlane mattparlane

View GitHub Profile
(function () {
const items = document.getElementsByClassName('slider-component-2');
const slider = document.getElementById('slider-component-2');
const firstItem = items[0];
firstItem.classList.add('active');
// Set the automatic transition timer
const transitionInterval = "{{{transition_interval}}}";
#component {
position: relative;
#slider-component-2 {
background: $outer_bg_color;
padding: 40px 0;
background-size: cover;
background-repeat: no-repeat;
background-position: $background_horizontal_position $background_vertical_position;
<div id="component">
<div id="slider-component-2" class="carousel slide sbackground-image" data-bs-ride="false">
<div class="carousel-inner">
<div class="review-headline mb-4">
<{{review_headline_text_style_tag}} class="style-{{review_headline_text_style_id}}">
{{{review_headline}}}
</{{review_headline_text_style_tag}}>
</div>
{{#Reviews}}
<div class="carousel-item slider-component-2 text-center">
@mattparlane
mattparlane / r2_backup.rb
Created March 13, 2023 02:08
Simple multi-thread R2/S3 backup
#!/usr/bin/env ruby
require 'aws-sdk-core'
require 'aws-sdk-s3'
require 'digest'
date = Date.today.strftime('%Y-%m-%d')
client = Aws::S3::Client.new(
access_key_id: 'XXXXXX',
db.business_niches.save({
"_id" : ObjectId("536fde7757badfdd0cab5b2b"),
"name" : "Boat Building and Repairs",
"broad" : false
});
db.business_niches.save({
"_id" : ObjectId("536fde7757badfdd0cab5b31"),
"name" : "Building Supplies and Products",
"broad" : false
});
<!doctype html>
<html>
<head>
<script crossorigin=anonymous src="https://code.jquery.com/jquery-3.5.1.slim.js"></script>
<script crossorigin=anonymous src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/js/bootstrap.bundle.js"></script>
<link rel=stylesheet crossorigin=anonymous href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/css/bootstrap.css">
<link rel=stylesheet crossorigin=anonymous href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.3.0/font/bootstrap-icons.css">
<link rel=stylesheet href="{{{default_style}}}">
<link rel=stylesheet href="{{{google_font_urls}}}">
</head>
MacBook-Pro-3:fnsf-dx matt$ NODE_OPTIONS=--max-old-space-size=8192 /usr/local/bin/sfdx --dev-debug force:source:retrieve --manifest /Users/matt/sites/fnsf-dx/manifest/package.xml
Executing1: /Users/matt/.local/share/sfdx/client/bin/sfdx --dev-debug force:source:retrieve --manifest /Users/matt/sites/fnsf-dx/manifest/package.xml
Executing: SFDX_BINPATH=/Users/matt/.local/share/sfdx/client/bin/sfdx /Users/matt/.local/share/sfdx/client/bin/node --max-old-space-size=8192 /Users/matt/.local/share/sfdx/client/bin/sfdx.js --dev-debug force:source:retrieve --manifest /Users/matt/sites/fnsf-dx/manifest/package.xml
@oclif/config reading core plugin /Users/matt/.local/share/sfdx/client +0ms
@oclif/config loadJSON /Users/matt/.local/share/sfdx/client/package.json +0ms
@oclif/config loadJSON /Users/matt/.local/share/sfdx/client/oclif.manifest.json +3ms
@oclif/config:sfdx-cli using manifest from /Users/matt/.local/share/sfdx/client/oclif.manifest.json +0ms
@oclif/config reading user plugins pjson /Users/matt/.loca
This file has been truncated, but you can view the full file.
Skip to main content
Salesforce.com
Search...
Sandbox: Dev
Switch to Lightning ExperienceMatt Parlane
SetupHelp & Training
Marketing
Tab Navigation
HomeChatterGroupsCampaignsLeadsContactsAccountsOpportunitiesReportsDashboardsFilesRecurring DonationsSponsorships All Tabs
openjdk version "10.0.1" 2018-04-17
OpenJDK Runtime Environment (build 10.0.1+10-Ubuntu-3ubuntu1)
OpenJDK 64-Bit Server VM (build 10.0.1+10-Ubuntu-3ubuntu1, mixed mode)
**********************************************************************************************************************************************
* Starting Relational Junction for Salesforce 5.8.0.032318.2 at Thu May 31 08:31:35 GMT 2018
* Copyright (c) 2004 Sesame Software, Inc. All rights reserved.
* U.S. Patents 8122040, 8375010 Sesame Software, Inc. All rights reserved.
* This agreement is subject to licensing terms as specified in the Sesame Software, Inc Software License Agreement.
* See http://www.sesamesoftware.com/license.html for the full text of this agreement.
**********************************************************************************************************************************************
class AlphabetEncoder {
private static $ALPHABET;
private static $ENCODE_LENGTH;
private static function populateAlphabet() {
if (self::$ENCODE_LENGTH) return;
for ($n = 48; $n < 58; $n++)
self::$ALPHABET[] = chr($n);
for ($n = 65; $n < 91; $n++)
self::$ALPHABET[] = chr($n);