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 WarehouseCalloutService { | |
private static final String WAREHOUSE_URL = 'https://th-superbadge-apex.herokuapp.com/equipment'; | |
@future(callout=true) | |
public static void runWarehouseEquipmentSync(){ | |
Http http = new Http(); | |
HttpRequest request = new HttpRequest(); | |
request.setEndpoint(WAREHOUSE_URL); | |
request.setMethod('GET'); |
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 class MaintenanceRequestHelper { | |
public static void updateWorkOrders(List<Case> caseList){ | |
Map<Id, Case> caseToNewCaseMap = new Map<Id, Case>(); | |
for(Case caseInstance : caseList) | |
{ | |
Case oldCase = (case)Trigger.oldMap.get(caseInstance.Id); | |
if(caseInstance.Status == 'Closed' && oldCase.Status != 'Closed' && (caseInstance.Type == 'Repair' || caseInstance.Type == 'Routine Maintenance')) |
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
// Place your settings in this file to overwrite the default settings | |
{ | |
"editor.rulers": [160], | |
"editor.renderWhitespace": "all", | |
"editor.formatOnSave": false, | |
"workbench.editor.enablePreview": false, | |
"workbench.colorTheme": "Monokai", | |
"window.openFoldersInNewWindow": "on", | |
"files.exclude": { | |
"**/.git": true, |
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
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
users: [], | |
actions: { | |
addUser: function() { | |
let user = this.store.createRecord('user', { | |
name: 'test' | |
}); | |
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
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
something: 'check console' | |
}); |
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
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle', | |
isLoading: false, | |
counter: 0, | |
actions: { | |
load: function() { | |
var counter = 0; | |
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
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
comments: Ember.computed('model.comments.[]', function() { | |
return window.comments; | |
}) | |
}); |
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
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
comments: Ember.computed('model.comments.[]', function() { | |
return this.get('model').hasMany('comments').value(); | |
}) | |
}); |
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
["ActionLinkGroupTemplate", "AnalyticSnapshot", "ApexClass", "ApexComponent", "ApexPage", "ApexTrigger", "AppMenu", "ApprovalProcess", "AssignmentRules", "AuraDefinitionBundle", "AuthProvider", "AutoResponseRules", "CallCenter", "ChannelLayout", "Community", "ConnectedApp", "CorsWhitelistOrigin", "CustomApplication", "CustomLabels", "CustomMetadata", "CustomObject", "CustomObjectTranslation", "CustomPageWebLink", "CustomPermission", "CustomSite", "CustomTab", "Dashboard", "DataCategoryGroup", "Document", "EmailTemplate", "EscalationRules", "ExternalDataSource", "FlexiPage", "Flow", "FlowDefinition", "Group", "HomePageComponent", "HomePageLayout", "InstalledPackage", "Layout", "Letterhead", "ManagedTopics", "MatchingRules", "NamedCredential", "Network", "PathAssistant", "PermissionSet", "PostTemplate", "Profile", "Queue", "QuickAction", "RemoteSiteSetting", "Report", "ReportType", "Role", "SamlSsoConfig", "Scontrol", "Settings", "SharingRules", "SharingSet", "SiteDotCom", "StaticResource", "SynonymDictionary", |
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
-------------------------------------------- | |
---------- NEW OPERATION REQUESTED --------- | |
-------------------------------------------- | |
compile | |
Namespace(client='SUBLIME_TEXT_3', format='json', offline=False, operation='compile', quiet=False, respond_with_html=False, ui_switch=False, uid=None, verbose=False) | |
{u'files': [u'C:\\Users\\Dylan\\Projects\\MavensMate\\dylanmensaert\\src\\classes\\MyTest.cls', u'C:\\Users\\Dylan\\Projects\\MavensMate\\dylanmensaert\\src\\classes\\OtherTest.cls'], u'project_name': u'dylanmensaert', 'verbose': False, 'args': Namespace(client='SUBLIME_TEXT_3', format='json', offline=False, operation='compile', quiet=False, respond_with_html=False, ui_switch=False, uid=None, verbose=False), 'client': 'SUBLIME_TEXT_3', 'ui': False, u'workspace': u'C:\\Users\\Dylan\\Projects\\MavensMate', 'operation': 'compile'} | |
-------------------------------------------- |