Tutorial by Examples: c

When you group CSS selectors, you apply the same styles to several different elements without repeating the styles in your style sheet. Use a comma to separate multiple grouped selectors. div, p { color: blue } So the blue color applies to all <div> elements and all <p> elements. Wit...
When objects are created or modified they are not automatically available for IntelliSense. To make them available to IntelliSense the local cache has to be refreshed. Within an query editor window either press Ctrl + Shift + R or select Edit | IntelliSense | Refresh Local Cache from the menu. Aft...
~~ Could be used on non-numeric values. A numeric expression will be first converted to a number and then performed bitwise NOT operation on it. If expression cannot be converted to numeric value, it will convert to 0. true and false bool values are exceptions, where true is presented as numeric v...
The following example illustrates use of the bitwise NOT (~) operator on decimal numbers. To keep the example simple, decimal number 3.5 will be used, cause of it's simple representation in binary format. let number = 3.5; let complement = ~number; Result of the complement number equals to -4;...
Here are some basic best practices for Excel: Flat File Database - Excel IS a Flat File application and should be treated as such Less Worksheet/Workbooks is more. Analyzing will be much faster with fewer worksheets/workbooks to go through. Try to ensure that all raw data is on one workshe...
A simple OGL 4.0 GLSL shader program that shows the use shader subroutines. The program is executed with a phyton script. To run the script, PyOpenGL and NumPy must be installed. The subroutines switch between different geometry generated in the geometry shader and change the surface representatio...
add_action('rest_api_init', 'my_rest_validate_endpoint' ); function my_rest_validate_endpoint() { // Declare our namespace $namespace = 'myrest/v1'; // Register the route // Example URL matching this route: // http://yourdomain/wp-json/myrest/v1/guides/tag=europe/price=...
From the GitHub repo of RxJava, RxJava is a Java VM implementation of Reactive Extensions: a library for composing asynchronous and event-based programs by using observable sequences. It extends the observer pattern to support sequences of data/events and adds operators that allow you to compose seq...
STUFF(Original_Expression, Start, Length, Replacement_expression) STUFF() function inserts Replacement_expression, at the start position specified, along with removing the characters specified using Length parameter. Select FirstName, LastName,Email, STUFF(Email, 2, 3, '*****') as StuffedEmail Fr...
We will add a file on Google Drive. We will use the createFile() method of a Drive object to create file programmatically on Google Drive. In this example we are adding a new text file in the user’s root folder. When a file is added, we need to specify the initial set of metadata, file contents, and...
This is an example of a basic GUI with two buttons that change a value stored in the GUI's handles structure. function gui_passing_data() % A basic GUI with two buttons to show a simple use of the 'handles' % structure in GUI building % Create a new figure. f = figure(); ...
SQL Server 2012 Returns the item at the specified index from a list of values. If index exceeds the bounds of values then NULL is returned. Parameters: index: integer, index to item in values. 1-based. values: any type, comma separated list SELECT CHOOSE (1, 'apples', 'pears', 'oranges', 'b...
1.The Unit return type declaration is optional for functions. The following codes are equivalent. fun printHello(name: String?): Unit { if (name != null) println("Hello ${name}") } fun printHello(name: String?) { ... } 2.Single-Ex...
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...
While using scrollviews in storyboard it's better to calculate content size according to number of views present in scrollview rather than giving content size programatically with static value. Here are the steps to get content size dynamically. Step 1 : Add Scrollview to view in storyboard and ...
Starting from react-native version 0.38, a Jest setup is included by default when running react-native init. The following configuration should be automatically added to your package.json file: "scripts": { "start": "node node_modules/react-native/local-cli/cli.js ...
A simple OGL 4.0 GLSL shader program that shows that shows how to add details with tessellation shader to the geometry. The program is executed with a python script. To run the script, PyOpenGL and NumPy must be installed. The basic mesh in this example is an icosahedron that consists of 20 triang...
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...

Page 802 of 826