Runs a connect web server, serving files from /client
on port 3000
.
This file contains 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
X-team | |
Toptal | |
BairesDev | |
Truelogic | |
Avantica | |
Jobsity | |
VirtualMind | |
Venon solutions | |
Webfx | |
Authority Partners |
This file contains 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 implements="flexipage:availableForAllPageTypes" access="global" controller="LightningRecordEditFormController"> | |
<aura:attribute name="disabled" type="Boolean" default="false" /> | |
<aura:attribute name="layoutSections" type="List" /> | |
<aura:attribute name="saved" type="Boolean" default="false" /> | |
<aura:attribute name="showSpinner" type="Boolean" default="true" /> | |
<aura:attribute name="fieldName" type="String" default="StageName" /> | |
<aura:handler name="init" value="{!this}" action="{!c.doInit}"/> | |
<lightning:card title=""> |
This file contains 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
/// <summary> | |
/// Resultset to be JSON stringified and set back to client. | |
/// </summary> | |
[Serializable] | |
[SuppressMessage("ReSharper", "InconsistentNaming")] | |
public class DataTableResultSet | |
{ | |
/// <summary>Array of records. Each element of the array is itself an array of columns</summary> | |
public List<List<string>> data = new List<List<string>>(); |
This file contains 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
services.AddMvc().AddJsonOptions(options => | |
{ | |
options.SerializerSettings.ContractResolver = new CamelCasePropertyNamesContractResolver(); | |
options.SerializerSettings.DefaultValueHandling = DefaultValueHandling.Include; | |
options.SerializerSettings.NullValueHandling = NullValueHandling.Ignore; | |
}); |
This file contains 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
protected override void OnModelCreating(ModelBuilder modelBuilder) | |
{ | |
foreach (var entity in modelBuilder.Model.GetEntityTypes()) | |
{ | |
modelBuilder.Entity(entity.Name).ToTable(entity.Name + "s"); | |
} | |
} |
This file contains 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
.directive('bootstrapSwitch', [ | |
function() { | |
return { | |
restrict: 'A', | |
require: '?ngModel', | |
link: function(scope, element, attrs, ngModel) { | |
element.bootstrapSwitch(); | |
element.on('switchChange.bootstrapSwitch', function(event, state) { | |
if (ngModel) { |
When hosting our web applications, we often have one public IP
address (i.e., an IP address visible to the outside world)
using which we want to host multiple web apps. For example, one
may wants to host three different web apps respectively for
example1.com
, example2.com
, and example1.com/images
on
the same machine using a single IP address.
How can we do that? Well, the good news is Internet browsers
This file contains 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
/* PRE - model declaration on vf page | |
<apex:remoteObjects> | |
<apex:remoteObjectModel name="Account" fields="Id,Name" /> | |
</apex:remoteObjects> | |
*/ | |
/* INSTANCE */ | |
// 1. W/o default properties | |
var acc = new SObjectModel.Account(); |
NewerOlder