Tutorial by Examples: ce

The following Less: .paragraph{ font-size: 12px; color: blue; background: white; } .parent{ font-size: 14px; color: black; background: green; .nestedParagraph:extend(.paragraph){ } } will compile into the following css: .paragraph, .parent .nestedParagraph { ...
CentOS versions 2 - 5 CentOS version 7 CentOS 7 is fully based on RedHat the detail documentation, examples and system administration guides are located here:CentOS 7 full documention
It's possible to specify several type constraints for generics using the where clause: func doSomething<T where T: Comparable, T: Hashable>(first: T, second: T) { // Access hashable function guard first.hashValue == second.hashValue else { return } // Access compa...
Sometimes you want to switch off all previously registered listeners. //Adding a normal click handler $(document).on("click",function(){ console.log("Document Clicked 1") }); //Adding another click handler $(document).on("click",function(){ console.log(&q...
To add a service with a name UserService, run: $ ng g s user installing service create src/app/user.service.spec.ts create src/app/user.service.ts To prevent .spec files creation add --spec false or -sp false flag $ ng g s user --spec false installing service ...
Here we give an example of ISP violation and then refactor that violation. Without talking unnecessary things let's jump into the code. ISP violation : public interface IMessage{ IList<string> ToAddress {get; set;} IList<string> BccAddresses {get; set;} string MessageBody {get; s...
To illustrate this, here is a function that has 3 different "wrong" behaviors the parameter is completely stupid: we use a user-defined expression the parameter has a typo: we use Oracle standard NO_DATA_FOUND error another, but not handled case Feel free to adapt it to your standa...
Each standard Oracle error is associated with an error number. It's important to anticipate what could go wrong in your code. Here for a connection to another database, it can be: -28000 account is locked -28001 password expired -28002 grace period -1017 wrong user / password Here is a way ...
Dim lo as ListObject Set lo = Sheet1.ListObjects("Table1") lo.Unlist
The idea behind the AdhocWorkspace is to create a workspace on the fly. var workspace = new AdhocWorkspace(); string projectName = "HelloWorldProject"; ProjectId projectId = ProjectId.CreateNewId(); VersionStamp versionStamp = VersionStamp.Create(); ProjectInfo helloWorldProject = P...
The MSBuildWorspace is built around the concept of handling MSBuild solutions (.sln files) and their respective projects (.csproj, .vbproj). Adding new projects and documents to this workspace is not supported. string solutionPath = @"C:\Path\To\Solution\Sample.sln"; MSBuildWorkspace ...
In contrast to the other types of workspaces, the VisualStudioWorkspace, cannot be created manually. It can be accessed when building a Visual Studio extension. When inside your extension package project, go to [YourVSPackage]Package.cs file. There you can acquire the workspace in two ways: protec...
Swift: let services = [CBUUID(string: SERVICE1_UUID), CBUUID(string: SERVICE2_UUID)] centralManager.scanForPeripherals(withServices: services, options: nil) Objective C: NSArray *services = @[[CBUUID UUIDWithString:SERVICE1_UUID], [CBUUID UUIDWithString:SERVICE2_UUID]]; [centralManager scanFo...
Swift: var centralManager:CBCentralManager! centralManager = CBCentralManager(delegate: self, queue: nil) Objective C: @property (nonatomic, strong) CBCentralManager *centralManager; centralManager = [[CBCentralManager alloc] initWithDelegate:self queue:nil];
Swift: var centralManager:CBCentralManager! centralManager = CBCentralManager(delegate: self, queue: nil, options: [CBCentralManagerOptionRestoreIdentifierKey : "com.companyname.appname.central"]) Objective C: @property (nonatomic, strong) CBCentralManager *centralManager; self....
This simple example will remove the service with name "visualizer": docker service rm visualizer
This example will scale the service to 4 instances: docker service scale visualizer=4 In Docker Swarm Mode we do not stop a service. We scale it down to zero: docker service scale visualizer=0
success and Error : A success callback that gets invoked upon successful completion of an Ajax request. A failure callback that gets invoked in case there is any error while making the request. Example: $.ajax({ url: 'URL', type: 'POST', data: yourData, datat...
var syntaxRoot = await document.GetSyntaxRootAsync(); var semanticModel = await document.GetSemanticModelAsync(); var sampleMethodInvocation = syntaxRoot .DescendantNodes() .OfType<InvocationExpressionSyntax>() .First(); var sampleMethodSymbol = semanticModel.GetSymbolI...
Standard usage in Activity: Context context = getApplicationContext(); Standard usage in Fragment: Context context = getActivity().getApplicationContext(); this (when in a class that extends from Context, such as the Application, Activity, Service and IntentService classes) TextView textVi...

Page 122 of 134