Tutorial by Examples: f

IIF

SQL Server 2012 Returns one of two values, depending on whether a given Boolean expression evaluates to true or false. Parameters: boolean_expression evaluated to dtermine what value to return true_value returned if boolean_expression evaluates to true false_value returned if boolean_expressi...
There are three main ways to do sequential plot or animations: plot(x,y), set(h , 'XData' , y, 'YData' , y) and animatedline. If you want your animation to be smooth, you need efficient drawing, and the three methods are not equivalent. % Plot a sin with increasing phase shift in 500 steps x = lin...
Replace firebase values with your app api values: import firebase from 'firebase'; componentWillMount() { firebase.initializeApp({ apiKey: "yourAPIKey", authDomain: "authDomainNAme", databaseURL: "yourDomainBaseURL", projectId: "yourProjectID", ...
When performing data science tasks, it’s common to want to use data found on the internet. You’ll usually be able to access this data via an Application Programming Interface(API) or in other formats. However, there are times when the data you want can only be accessed as part of a web page. In case...
For better performance it's important to avoid using of array (lambda) function in JSX. As explained at https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-no-bind.md : A bind call or arrow function in a JSX prop will create a brand new function on every single render. Th...
With the help of react-navigation, you can add navigation to your app really easy. Install react-navigation npm install --save react-navigation Example: import { Button, View, Text, AppRegistry } from 'react-native'; import { StackNavigator } from 'react-navigation'; const App = StackNavigat...
animated_android_dialog_box.xml <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" android:padding="16dp"> &...
Install the Cordova and Ionic Native plugins: $ ionic cordova plugin add cordova-plugin-camera $ npm install --save @ionic-native/camera Your app.module.ts will need to inject camera: import { Camera } from '@ionic-native/camera'; .......... @NgModule({ declarations: [ MyApp ], ...
function REReplaceCallback(re,str,callback) { /* Thanks to Ben Nadel "Learning ColdFusion 8: REMatch() For Regular Expression Matching" from 2007-06-13 https://www.bennadel.com/blog/769-learning-coldfusion-8-rematch-for-regular-expression-matching.h...
REReplaceCallback('YOUR REGEX GOES HERE','AND YOUR STRING HERE',function(groups) { //now you can access the 'groups' array containing all the captured groups return result; //return whatever you've processed inside });
Add below function to your <form> tag. This function will generate a hidden field named _token and filled value with the token. {{csrf_field()}} Add csrf_token () function to your hidden _token in the value attribute. This will generate only encrypted string. <input type="hidden&q...
There are many ways to send _token on AJAX call Get all input field's value within <form> tag using var formData = new FormData($("#cart-add")[0]); Use $("form").serialize(); or $("form").serializeArray(); Add _token manually on data of Ajax. using $('meta[n...
First some general information about how arrays behave in Coldfusion as compared to other programming languages. Arrays can have numeric indexes only (if you want to have a string index use structs instead) Arrays begin at index [1] Arrays can have one ore more dimensions
I get the file path from document directory and read that file in chunks of 1024 and save (append) to NSMutableData object or you can directly write to socket. // MARK: - Get file data as chunks Methode. func getFileDataInChunks() { let doumentDirectoryPath = NSSearchPathForDirectoriesI...
The sec:authorize attribute renders its content when the attribute expression is evaluated to true <div sec:authorize="hasRole('ROLE_ADMIN')"> Content for administrators </div> <div sec:authorize="hasRole('ROLE_USER')"> Content for users </div&g...
Arrays of bit-fields, pointers to bit-fields and functions returning bit-fields are not allowed. The address operator (&) cannot be applied to bit-field members. The data type of a bit-field must be wide enough to contain the size of the field. The sizeof() operator cannot be applied to a b...
Install by using npm install --save react-native-router-flux In react-native-router-flux, each route is called a <Scene> <Scene key="home" component={LogIn} title="Home" initial /> key A unique string that can be used to refer to the particular scene. componen...
<p> Today: <span th:text="${#calendars.format(today,'dd MMMM yyyy')}">30 May 2017</span> </p>
<p> Order sum: <span th:text="${#numbers.formatDecimal(orderSum, 0, 'COMMA', 2, 'POINT')}">1,145,000.52</span> </p>

Page 444 of 457