Skip to content

Instantly share code, notes, and snippets.

View alexkadis's full-sized avatar

Alex Kadis alexkadis

View GitHub Profile
@alexkadis
alexkadis / VS Code Debug Contents.log
Last active April 27, 2020 03:05
Debug Contents & Error Log
TMScopeRegistry.ts:45 Overwriting grammar scope name to file mapping for scope text.log.
Old grammar file: file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/extensions/log/syntaxes/log.tmLanguage.json.
New grammar file: file:///Users/<snip>/.vscode/extensions/salesforce.salesforcedx-vscode-apex-replay-debugger-48.11.0/syntaxes/apexlog.tmLanguage.json
register @ TMScopeRegistry.ts:45
r @ TMGrammarFactory.ts:73
_getOrCreateGrammarFactory @ abstractTextMateService.ts:194
async function (async)
_getOrCreateGrammarFactory @ abstractTextMateService.ts:187
(anonymous) @ abstractTextMateService.ts:219
_registerDefinitionIfAvailable @ abstractTextMateService.ts:217
@alexkadis
alexkadis / tech-elevator-week-1.md
Created September 20, 2018 14:06
Tech Elevator .Net Week 1 Notes

Tech Elevator: Week 1 Notes

Command line in Windows is more common than it was

Drives > Folders/Directories > Files

Ways to navigate:

  • Absolute = Start from the top

  • Relative = start from current folder

  • home directory: ~

@alexkadis
alexkadis / Rubberduck VBA error: "Assignment Without Set" False Positive.vb
Last active March 8, 2018 15:51
Rubberduck VBA error: "Assignment Without Set" False Positive
' Error thrown:
' ----------------------------------------------------------------
' Purpose: Generic error handler.
' Logs errors to table "tLogError".
' Arguments: lngErrNumber - value of Err.Number
' strErrDescription - value of Err.Description
' strCallingProc - name of sub|function that generated the error.
' vParameters - optional string: List of parameters to record.
' bShowUser - optional boolean: If False, suppresses display.
' Author: Allen Browne, allen@allenbrowne.com
@alexkadis
alexkadis / Microsoft Access: Sum and Subtract.sql
Last active July 6, 2017 17:38
A Microsoft Access Query to get net transaction totals by Fund and Fiscal Year
-------------------------------------------------------------------------------
-- A Microsoft Access Query to get net transaction totals by Fund and Fiscal Year.
--
-- The process:
---- Incoming: Sum all incoming amounts by Fund and Fiscal Year
---- Outgoing: Sum all outcoming amounts by Fund and Fiscal Year
---- Result: Incoming - Outgoing by Fund and Fiscal Year
--
-- Known to work in MS Access 2010
--
@alexkadis
alexkadis / Email Affiliated Contacts by Matt Horine
Last active May 15, 2017 19:59 — forked from mdhorine/Email Affiliated Contacts
Email Affiliated Contacts button for use with Salesforce NPSP
/**************************************************
/ Button: Email Affiliated Contacts /
/ Author: Matt Horine /
/ Client: Step Up to Serve /
/ Date: 28 January 2015 /
/ /
/ Description: Button on Affiliated Contacts /
/ related list to allow selection and email of /
/ affiliated contacts from the Account Page in /
/ the same way the Send an Email button allows /
////////////////////////////////////////////////////////////////
// Title: Send Email from Affiliated Contacts of Organization
// Description:
// Allows for mass Salesforce emails without templates, with simply a click.
// Note that you could easily go over Salesforce's limits if you're not careful.
//
// By Alex Kadis, based on sources listed below, especially
// Matt Horine's "Email Affiliated Contacts button for use with
// Salesforce NPSP"
//
@alexkadis
alexkadis / Salesforce Send Mass Email from Campaign Members (uses built-in email).js
Last active June 30, 2017 19:39
Changed Related ID to correctly use Campaign ID
////////////////////////////////////////////////////////////////
// Title: Salesforce Send Mass Email from Campaign Members (uses built-in email)
// Description:
// Allows for mass Salesforce emails without templates, with simply a click.
// Note that you could easily go over Salesforce's limits if you're not careful.
//
// By Alex Kadis, based on sources listed below, especially
// Matt Horine's "Email Affiliated Contacts button for use with
// Salesforce NPSP"
////////////////////////////////////////////////////////////////
// Title: Send email to contacts from a list view (no templates needed).
// Description:
// Allows for mass Salesforce emails without templates, with simply a click.
// Note that you could easily go over Salesforce's limits if you're not careful.
//
// By Alex Kadis, based on sources listed below, especially
// Matt Horine's "Email Affiliated Contacts button for use with
// Salesforce NPSP"
//
@alexkadis
alexkadis / google_form_to_calendar_script.gs.js
Last active July 14, 2021 07:20 — forked from woodwardtw/gform_to_calendar_script.js
Google Script: Google Form > Google Sheets > Google Calendar
/**
* Adds a custom menu to the active spreadsheet, containing a single menu item
* for invoking the exportEvents() function.
* The onOpen() function, when defined, is automatically invoked whenever the
* spreadsheet is opened.
* For more information on using the Spreadsheet API, see
* https://developers.google.com/apps-script/service_spreadsheet
* FROM: https://stackoverflow.com/questions/15788897/create-google-calendar-events-from-spreadsheet-but-prevent-duplicates
*/
function onOpen() {
@alexkadis
alexkadis / cleantorrents.pl
Last active January 14, 2017 18:48
Clean up downloaded movie torrents
#!/usr/bin/perl
use strict;
use warnings;
use diagnostics;
use Cwd;
use File::Find;
use File::Copy;
use File::Basename;
use Cwd 'realpath';