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
| <apex:page showHeader="true" sidebar="true" id="page"> | |
| <apex:includeScript value="https://code.jquery.com/jquery-2.2.4.min.js" /> | |
| <apex:stylesheet value="{!URLFOR( $Resource.Bootstrap337, 'dist/css/bootstrap.css' )}" /> | |
| <apex:includeScript value="{!URLFOR( $Resource.Bootstrap337, 'dist/js/bootstrap.min.js' )}"/> | |
| <!-- App --> | |
| <div class="myBootstrap"> | |
| <!-- alert --> | |
| <div class="alert alert-success" role="alert">Success!!</div> | |
| <div class="alert alert-info" role="alert">Info!!</div> | |
| <div class="alert alert-warning" role="alert">Warning!!</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
| public interface InterfaceSample { | |
| String sampleMethod1(); | |
| String sampleMethod2(Integer num); | |
| } |
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
| public abstract with sharing class ExEmployee { | |
| /** | |
| * コンストラクタ | |
| */ | |
| public ExEmployee() { | |
| } | |
| private String name; |
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
| public virtual with sharing class Employee { | |
| // 社員名 | |
| private String name; | |
| // 役職 | |
| private String position; | |
| /** | |
| * コンストラクタ | |
| */ |
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
| package jp.co.bbreak.sokusen._1._8._3; | |
| public class Employee { | |
| // 社員名 | |
| private String name; | |
| // 役職 | |
| private String position; | |
| // 社員名のゲッタ | |
| public String getName() { | |
| return name; |
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
| String target = 'Helloooooooooooo!!'; | |
| String result = ''; | |
| // subString | |
| result = target.substring(0, 5) + '...'; | |
| System.debug('subString : ' + result + ' (' + result.length() + ')'); | |
| // abbreviate | |
| result = target.abbreviate(8); | |
| System.debug('abbreviate : ' + result + ' (' + result.length() + ')'); |
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
| var gulp = require('gulp'); | |
| var zip = require('gulp-zip'); | |
| var forceDeploy = require('gulp-jsforce-deploy'); | |
| var fs = require('fs'); | |
| var path = require('path'); | |
| var rename = require("gulp-rename"); | |
| // function.getFolders | |
| var getFolders = function (dir) { | |
| return fs.readdirSync(dir) |
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
| <aura:component> | |
| <aura:attribute name="expense" type="Expense__c"/> | |
| <p>Amount: | |
| <ui:outputCurrency value="{!v.expense.Amount__c}"/> | |
| </p> | |
| <p>Client: | |
| <ui:outputText value="{!v.expense.Client__c}"/> | |
| </p> |
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
| <aura:component > | |
| <aura:attribute name="item" type="Camping_Item__c" required="true" /> | |
| <aura:attribute name="packed" type="Boolean" default="false"/> | |
| <ui:outputText value="{!v.item.Name}" /> | |
| <ui:outputCheckbox value="{!v.item.Packed__c}" /> | |
| <ui:outputCurrency value="{!v.item.Price__c}" /> | |
| <ui:outputNumber value="{!v.item.Quantity__c}" /> | |
| <ui:button label="Packed!" press="{!c.packItem}" disabled="{!v.Packed}" /> | |
| </aura:component> |
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
| public with sharing class StringFormatDemoController { | |
| public StringFormatDemoController() { | |
| this.demo01(); | |
| this.demo02(); | |
| } | |
| private void demo01() { | |
| String placeholder = 'Hello {0}, {1} is cool!'; | |
| List<String> fillers = new String[]{'Jason','Apex'}; |