Tutorial by Examples: er

Pretext: These are detailed instructions on how to set up a Raspberry Pi with the Raspbian operating system. These instructions are somewhat Windows specific. Some installation steps may apply to other operating systems as well, but keep the former in mind. Contents Requirements Choosing an ...
Wrapping a group of inserts in a transaction will speed them up according to this StackOverflow Question/Answer. You can use this technique, or you can use Bulk Copy to speed up a series of related operations to perform. // Widget has WidgetId, Name, and Quantity properties public void InsertWidg...
Scala has the following built-in operators (methods/language elements with predefined precedence rules): TypeSymbolExampleArithmetic operators+ - * / %a + bRelational operators== != > < >= <=a > bLogical operators&& & || | !a && bBit-wise operators& | ^ ~ <...
In Scala you can define your own operators: class Team { def +(member: Person) = ... } With the above defines you can use it like: ITTeam + Jack or ITTeam.+(Jack) To define unary operators you can prefix it with unary_. E.g. unary_! class MyBigInt { def unary_! = ... } var ...
CategoryOperatorAssociativityPostfix() []Left to rightUnary! ~Right to leftMultiplicative* / %Left to rightAdditive+ -Left to rightShift>> >>> <<Left to rightRelational> >= < <=Left to rightEquality== !=Left to rightBitwise and&Left to rightBitwise xor^Left to ri...
!!! Container should be positioned relatively or absolutely $direction - top, bottom, left, right $margin - margin by the edge in $direction. For top and bottom direction - it's from left to right. For left and right - it's from top to bottom. $colors - first is a border color, second - is a back...
//define a short alias to avoid chubby method signatures using AppFunc = Func<IDictionary<string, object>, Task>; class RequestTimeMiddleware { private AppFunc _next; public RequestTimeMiddleware(AppFunc next) { _next = next; } public async Task...
Define a Target (Target1) for which an execution request will cause Target2 to be executed afterward. <Target Name="Target2" AfterTargets="Target1"> </Target> <Target Name="Target1"> </Target>
We now know how to create a modal. But what if we want to pass some data from modal to our home page. To do so, let us look into an example with modal as Register page passing parameters to parent page. Register.html <ion-header> <ion-toolbar> <ion-title> Login ...
Passing parameters to a modal is similar to how we pass values to a NavController. To do so, we are altering our list in home.html to open a modal when clicking a list item and passing the required parameters as a second argument to the create method. Home.html <ion-list> <ion-item ...
A basic reducer would look like this: // Import the action types to recognise them import { ACTION_ERROR, ACTION_ENTITIES_LOADED, ACTION_ENTITY_CREATED } from './actions'; // Set up a default state const initialState = { error: undefined, entities: [] }; // If no state is provi...
If you want to check the existence of one file or do a couple of actions for every file in a folder you can use the Foreach Loop Container. You give the path and the file mask and it will run it for every file it finds
{ "Records": [ { "eventVersion": "2.0", "eventTime": "1970-01-01T00:00:00.000Z", "requestParameters": { "sourceIPAddress": "127.0.0.1" }, "s3": { &qu...
One of the best uses for markup extensions is for easier usage of IValueConverter. In the sample below BoolToVisibilityConverter is a value converter but since it's instance independent it can be used without the normal hasles of a value converter with the help of markup extension. In XAML just use...
To easily link your Redux store to your React components you can use an additional library: react-redux. First, you need to wrap your app in a Provider, which is a component that passes your store to be used by child components: import { Provider } from 'react-redux'; /// ... store = createStor...
After you wrapped your app into provider you can use connect function to subscribe your component to store changes and provide mapping between Redux state properties and React components' properties: import { connect } from 'react-redux'; const MyComponent = ({data}) => ( <div>{data...
using Xunit; public class SimpleCalculatorTests { [Theory] [InlineData(0, 0, 0, true)] [InlineData(1, 1, 2, true)] [InlineData(1, 1, 3, false)] public void Add_PassMultipleParameters_VerifyExpected( int inputX, int inputY, int expected, bool isExpectedCorrect) ...
Merging key names are same pd.merge(df1, df2, on='key') Merging key names are different pd.merge(df1, df2, left_on='l_key', right_on='r_key') Different types of joining pd.merge(df1, df2, on='key', how='left') Merging on multiple keys pd.merge(df1, df2, on=['key1', 'key2']) Treatment...
You'll first send the user to the Twitch authorization endpoint. This URL is made up of a the base authorization URL (https://api.twitch.tv/kraken/oauth2/authorize) and query string parameters that define what you're requesting. The required parameters are response_type, client_id, redirect_uri, and...
When the user goes to the authorization endpoint, they will be asked to give your application permission to the scopes that you've requested. They can decline this, so you must make sure to take that into consideration in your code. After they've allowed your application access, the user will be red...

Page 283 of 417