This is helpful if you've previously installed git from source on OSX, and other compilers can't find the correct path. You need to remove the current version of git, then re-install with brew.
- Check which git you're running:
which git
How To Power Up SFDX-CLI with VS Code Remote - SSH, Windows Edition | |
by Vernon Keenan | |
from SalesforceDevops.net | |
Youtube: https://youtu.be/vdwM2WOUBuk | |
Change these values for your environment: | |
devops = DNS hostname of remote SSH server | |
vern = Linux username on remote server |
/* | |
Mermaid + DuckDB for generating customer hierarchy diagrams | |
DuckDB version: 0.10.2 | |
Bill Wallis, 2024-05-09 | |
*/ | |
select version(); |
# Nerd Fonts for your IDE | |
# https://www.nerdfonts.com/font-downloads | |
brew tap homebrew/cask-fonts && brew install --cask font-3270-nerd-font | |
brew tap homebrew/cask-fonts && brew install --cask font-fira-mono-nerd-font | |
brew tap homebrew/cask-fonts && brew install --cask font-inconsolata-go-nerd-font | |
brew tap homebrew/cask-fonts && brew install --cask font-inconsolata-lgc-nerd-font | |
brew tap homebrew/cask-fonts && brew install --cask font-inconsolata-nerd-font | |
brew tap homebrew/cask-fonts && brew install --cask font-monofur-nerd-font | |
brew tap homebrew/cask-fonts && brew install --cask font-overpass-nerd-font |
This is helpful if you've previously installed git from source on OSX, and other compilers can't find the correct path. You need to remove the current version of git, then re-install with brew.
which git
To send a request via the sandbox, you can use pm.sendRequest.
pm.test("Status code is 200", function () {
pm.sendRequest('https://postman-echo.com/get', function (err, res) {
pm.expect(err).to.not.be.ok;
pm.expect(res).to.have.property('code', 200);
pm.expect(res).to.have.property('status', 'OK');
});
});
/** | |
* Created by brettbarlow on 2/24/18. | |
*/ | |
// LightningComponentInVisualforce | |
window._lightningComponentInVisualforce = (function() { | |
return { | |
LightningComponent : function(type, attributes, locator) { | |
this.type = type; | |
this.attributes = attributes; |
'use strict' | |
class JSONMap extends Map { | |
constructor (value) { | |
let mapArgs = [] | |
if (value) { | |
for (let k of Object.keys(value)) { | |
mapArgs.push([ k, value[k] ]) | |
} | |
} |
/*Javascript snippet to use HTML5 localStorage easily. | |
Properly handles situation like 'localStorage not being supported by the browser' and excedding localSorage quota. | |
Supports storing any kind of data */ | |
/*key should be String, value can be any Javascript object */ | |
function writeToLocalStorage(key,value) | |
{ | |
if(typeof(Storage) == 'undefined') | |
{ |
This fork of JamieMason's implementation changes the key
parameter to be an array of keys instead of just a single key. This makes it possible to group by multiple properties instead of just one.
const groupBy = keys => array =>
array.reduce((objectsByKeyValue, obj) => {
const value = keys.map(key => obj[key]).join('-');