This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo spctl --master-disable | |
| https://github.com/ohmyzsh/ohmyzsh | |
| How to Install Zsh/ zsh-autosuggestions/ oh-my-zsh in Linux | |
| https://varunmanik1.medium.com/how-to-install-zsh-zsh-autosuggestions-oh-my-zsh-in-linux-65fa01cc038d | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| URL:https://sethrobertson.github.io/GitFixUm/fixup.html | |
| Checkout evHeroHeader.html file from "feature/events/events-record-list" branch to your working branch: | |
| git checkout feature/events/events-record-list force-app/events/main/default/lwc/evHeroHeader/evHeroHeader.html | |
| Pull all the files from master branch to your working branch: | |
| git pull origin master | |
| Reset a branch |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| fn main() { | |
| let i: i32 = 255; | |
| println!("{}", i); | |
| // Tuples | |
| let tup = (1, 'c', true); | |
| println!("{} {}", tup.0, tup.1); | |
| println!("{:?}", tup); | |
| // Destructuring |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * ***** A basic express example ***** | |
| */ | |
| const express = require("express"); | |
| const dotenv = require("dotenv"); | |
| /** | |
| * Load environment variables | |
| */ | |
| dotenv.config({ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const http = require("http"); | |
| const todos = [ | |
| { id: 1, text: "Todo one" }, | |
| { id: 2, text: "Todo two" }, | |
| { id: 3, text: "Todo three" } | |
| ]; | |
| const server = http.createServer((req, res) => { | |
| const { method, url } = req; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //Install Node: https://github.com/nvm-sh/nvm | |
| curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.2/install.sh | bash | |
| nvm install node | |
| which node | |
| node -v | |
| npm install serverless -g | |
| sls -v | |
| // Optional |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Array.from() will take something aray-ish and convert it into an array | |
| // *** Example 1: If we have DOM like below | |
| { | |
| /* <div class="people"> | |
| <p>John</p> | |
| <p>Kait</p> | |
| <p>Snickers</p> | |
| </div> */ | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --targetusername = -u (To specify a non-default scratch org) | |
| --targetdevhubusername = -v (To specify a non-default Dev Hub org) | |
| --setdefaultdevhubusername = -d | |
| --setdefaultusername = -s | |
| --instanceurl = -r | |
| --setalias = -a |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="UTF-8"?> | |
| <Package xmlns="http://soap.sforce.com/2006/04/metadata"> | |
| <types> | |
| <members>*</members> | |
| <name>ActionLinkGroupTemplate</name> | |
| </types> | |
| <types> | |
| <members>*</members> | |
| <name>AnalyticSnapshot</name> | |
| </types> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // AccountAfterUpdate.trigger | |
| trigger AccountAfterUpdate on Account (after update) { | |
| if (!Territory2Controller.inFutureContext) { | |
| List<Id> accountIds = new List<Id>(); | |
| for (Account acc : Trigger.new) { | |
| accountIds.add(acc.Id); | |
| } | |
| Territory2Controller.runTerritoryRules(accountIds, UserInfo.getSessionId()); | |
| } | |
| } |