Skip to content

Instantly share code, notes, and snippets.



  • co-meeting, Inc.
  • Tokyo
View GitHub Profile
atskimura / project-scratch-def.json
Created May 19, 2020
Person Account Scratch Org Definition
View project-scratch-def.json
"orgName": "Person Account Company",
"edition": "Enterprise",
"hasSampleData": true,
"features": ["PersonAccounts"],
"settings": {
"lightningExperienceSettings": {
"enableS1DesktopEnabled": true
View SecureDML.cls
public class SecureDML {
public class SecureDMLException extends Exception {}
* CRUD/FLSチェックを行うinsert
public static sObject[] secureInsert(sObject[] records) {
return secureDML(records, AccessType.CREATABLE);
atskimura / notifyApexErrorSample.js
Last active Mar 1, 2020
View notifyApexErrorSample.js
import { LightningElement, wire, track } from 'lwc';
import getContacts from '@salesforce/apex/NotifyApexErrorSampleController.getContacts'
import { notifyApexError } from 'c/util';
export default class NotifyApexErrorSample extends LightningElement {
@track contacts;
wiredContacts({ error, data }) {
if (data) {
View three-vrm-bones-motion.html
<!DOCTYPE html>
<meta charset="utf-8" />
<title>three-vrm example</title>
content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"
View ManagedExample.cmp
<aura:component >
<p>This is a lightning component in a managed package.</p>
View draggable.cmp
<aura:component implements="force:appHostable">
<div aura:id="draggable" draggable="true" class="draggable"></div>
<div aura:id="draggable" draggable="true" class="draggable"></div>