Skip to content

Instantly share code, notes, and snippets.

View justin-lyon's full-sized avatar

Justin Lyon justin-lyon

  • Daejeon, South Korea
View GitHub Profile
{
"emmet.includeLanguages": {
"vue-html": "html",
"vue": "html"
},
"standard.autoFixOnSave": true,
"standard.validate": [
"javascript",
"javascriptreact",
Game.spawns['Spawn1'].spawnCreep( [WORK, CARRY, MOVE], 'Harvester1' );
Game.spawns['Pekkerwood'].spawnCreep( [WORK, CARRY, MOVE], 'Harvester1', { memory: { role: 'harvester' } });

Build your own Vue JS App

  1. Install Node JS
    • This contains both node and npm.
# Install Vue CLI
npm install --global @vue/cli

# Create new project from Template

JS Frameworks

Why use them?

Frameworks Covered

@justin-lyon
justin-lyon / lightning-record-form-issue
Created October 31, 2018 13:37
lightning-record-form-issue
<aura:component description="Sample Record Form Issue" >
<lightning:card title="New Contact Compact">
<lightning:recordForm
objectApiName="Contact"
layoutType="Compact"
mode="edit"
columns="2" />
</lightning:card>
</aura:component>
@justin-lyon
justin-lyon / aura-input-validation.js
Last active April 17, 2020 16:26
lightning input validation
({
validateForm: function(cmp) {
// Get All lightning:input elements with aura:id "input"
var inputs = cmp.find("input");
// Iterate over array of input components
// `acc` is a local variable, defined as a boolean in this case
// `input` is the input component during iteration
var isValid = inputs.reduce(function(acc, input) {
input.showHelpMessageIfInvalid();
@justin-lyon
justin-lyon / fmt-env-setup.md
Last active December 7, 2018 19:56
Install and setup a windows machine for Salesforce Release Management

Release Manager Environment and Tools

Install and setup a windows machine for Salesforce Release Management

Command Line Applications

  • Install Java
  • Install Ant
  • Salesforce Force Migration Tool
  • git
public String getResourceContent(StaticResource resource, String fileName) {
String modStamp = String.valueOf(((DateTime)resource.SystemModStamp).getTime());
List<String> path = new List<String>();
path.add('/resource');
path.add(modStamp);
path.add(resource.Name);
path.add(fileName);
String url = String.join(path, '/');

Select an FLS Block provided field name

\n.*<fieldPermissions>\n.*\n.*OBJECT_NAME\.FIELD_NAME(.|\n)*?<\/fieldPermissions>

Select all of a given tag

\n.*<TAGNAME>(.|\n)*<\/TAGNAME>

Select all of these four tags

\n.*<categoryGroupVisibilities>(.|\n)*<\/categoryGroupVisibilities>|\n.*<recordTypeVisibilities>(.|\n)*<\/recordTypeVisibilities>|\n.*<tabVisibilities>(.|\n)*<\/tabVisibilities>|\n.*<userPermissions>(.|\n)*<\/userPermissions>