Tutorial by Examples: er

To get OAuth2 access token simply do curl https://login.salesforce.com/services/oauth2/token -d "grant_type=password" -d "client_id=myclientid" -d "client_secret=myclientsecret" -d "[email protected]" -d "password=mypassword123456" Y...
Before you can build anything, you are required to make your machine ready for building. For this you need to install a lot of libraries and modules. The most recommended Linux distribution is Ubuntu, so this example will focus on installing everything that is needed on Ubuntu. Installing Java Fir...
Code the_title( '<h1>', '</h1>' ); Output The title of the current post or page in h1 tags
In mathematics, especially Set Theory, we have a collection of things which is called set and we name those things as elements. We show a set with its name like A, B, C, ... or explicitly with putting its member on brace notation: {a, b, c, d, e}. Suppose we have an arbitrary element x and a set Z, ...
Create enum of custom errors enum RegistrationError: Error { case invalidEmail case invalidPassword case invalidPhoneNumber } Create extension of RegistrationError to handle the Localized description. extension RegistrationError: LocalizedError { public var errorDescription...
See list of http headers. public function someAction(){ // Action's code $response = new Response(); $response->headers->set('Content-Type', 'text/html'); return $response; }
In this example, User Table will have a column that references the Agency table. CREATE TABLE agencies ( -- first create the agency table id SERIAL PRIMARY KEY, name TEXT NOT NULL ) CREATE TABLE users ( id SERIAL PRIMARY KEY, agency_id NOT NULL INTEGER REFERENCES agencies(id) DEFERR...
It is possible to use integer variables with latex. To create a new variable we need the \newcounter{name} command, where name is the name of the new counter. The name must contain only letters. This command creates a new one with name \thename. With this command we can print name variable onto the ...
One good reason to use Filters is for logging. Using this technique a REST call can be logged and timed easily. public class RestLogger implements ClientRequestFilter, ClientResponseFilter { private static final Logger log = LoggerFactory.getLogger(RestLogger.class); // Used for timing...
package com.test.ws.example; import javax.xml.soap.MessageFactory; import javax.xml.soap.MimeHeaders; import javax.xml.soap.SOAPBody; import javax.xml.soap.SOAPConnection; import javax.xml.soap.SOAPConnectionFactory; import javax.xml.soap.SOAPElement; import javax.xml.soap.SOAPEnve...
This example shows how to use mathematical operations with counters. It may be useful for loops in latex. Addition: \addtocounter{num}{n} this command adds n to num, where num is a counter and n is a positive integer. Subtraction: \addtocounter{num}{-n} this command subtracts n from num, where n...
Generator comprehensions follow a similar format to array comprehensions, but use parentheses () instead of square brackets []. (expression for element = iterable) Such an expression returns a Generator object. julia> (x^2 for x = 1:5) Base.Generator{UnitRange{Int64},##1#2}(#1,1:5) Fun...
A semicolon separates just two commands. echo "i am first" ; echo "i am second" ; echo " i am third"
Adding a video that will autoplay on a loop and has no controls or sound. Perfect for a video header or background. <video width="1280" height="720" autoplay muted loop poster="video.jpg" id="videobg"> <source src="video.mp4" type="...
<ItemGroup> <ProjectReference Include="Foo.csproj"> <Project>{01234567-0123-0123-0123-0123456789AB}</Project> <Name>Foo</Name> </ProjectReference> </ItemGroup>
Each attribute is associated with a component count, type, normalized, offset, stride and VBO. The VBO is no passed explicitly as a parameter but is instead the buffer bound to GL_ARRAY_BUFFER at the time of the call. void prepareMeshForRender(Mesh mesh){ glBindVertexArray(mesh.vao); glBi...
4.3 OpenGL 4.3 (or ARB_separate_attrib_format) adds an alternative way of specifying the vertex data, which creates a separation between the format of the data bound for an attribute and the buffer object source that provides the data. So instead of having a VAO per mesh, you may have a VAO per ver...
The following regular expression: us.phones.regex <- "^\\s*(\\+\\s*1(-?|\\s+))*[0-9]{3}\\s*-?\\s*[0-9]{3}\\s*-?\\s*[0-9]{4}$" Validates a phone number in the form of: +1-xxx-xxx-xxxx, including optional leading/trailing blanks at the beginning/end of each group of numbers, but not ...
HTML: <div class="wrapper"> <div class="content"></div> </div> CSS: .wrapper{ min-height: 600px; } .wrapper:before{ content: ""; display: inline-block; height: 100%; vertical-align: middle; } .content { display...
var EmberApp = require('ember-cli/lib/broccoli/ember-app'); module.exports = function(defaults) { var app = new EmberApp(defaults, { // Add options here datatables: { core: true, style: 'bs', extensions: [ { name: 'buttons', extensions: ['colVi...

Page 363 of 417