Tutorial by Examples: er

Since Git 2.13, multiple usernames and email addresses could be configured by using a folder filter. Example for Windows: .gitconfig Edit: git config --global -e Add: [includeIf "gitdir:D:/work"] path = .gitconfig-work.config [includeIf "gitdir:D:/opensource/"] ...
The following app will start an HTTP server listening on port 8080 that returns Hello world on GET /hello/world import akka.actor.ActorSystem import akka.http.scaladsl.Http import akka.http.scaladsl.server.Directives._ import akka.http.scaladsl.server._ import akka.stream.ActorMaterializer i...
<build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>project-info-reports</artifactId> <version>2.9</version> <executions> ...
If necessary, change to your project directory cd MyAwesomeProject 1- Add react and react-router meteor npm install --save [email protected] [email protected] [email protected] 2- Edit client/main.html, and replace the content will be: <body> <div id="react-root"></div...
The simplest approach to the problem (and the most commonly used so far) is to split sentences into tokens. Simplifying, words have abstract and subjective meanings to the people using and receiving them, tokens have an objective interpretation: an ordered sequence of characters (or bytes). Once sen...
Integral type ranges ( IntRange , LongRange , CharRange ) have an extra feature: they can be iterated over. The compiler takes care of converting this analogously to Java's indexed for-loop, without extra overhead for (i in 1..4) print(i) // prints "1234" for (i in 4..1) print(i) // pri...
This will be a very basic app which will illustrate different ModalpresentationStyle in iOS. According to documentation found here, There are 9 different values for UIModalPresentationStyle which are as follows, fullScreen pageSheet formSheet currentContext custom overFullScreen overCurrent...
When generating new Angular 2 components in a .NET Core project, you may run into the following errors (as of version 0.8.3): Error locating module for declaration SilentError: No module files found OR No app module found. Please add your new Class to your component. Identica...
JavaScript: const MainPage = { template: '#mainpage-template' } const Page1 = { template: '#page1-template' } const Page2 = { template: '#page2-template' } const Page3 = { template: '#page3-template' } const router = new VueRouter({ mode: 'hash', routes: [{ path: ...
const foop = { get value() {}, set value(v) {} }; it('can spy on getter', () => { spyOnProperty(foop, 'value', 'get').and.returnValue(1); expect(foop.value).toBe(1); }); it('and on setters', () => { const spiez = spyOnProperty(foop, 'value', 'set'); foop.v...
The following example declares a new instance of the Random class and then uses the method .Next to generate the next number in the sequence of pseudo-random numbers. Dim rnd As New Random Dim x As Integer x = rnd.Next The last line above will generate the next pseudo-random number and assign ...
The following features added in SQL Server 2000 from its previous version: New data types were added (BIGINT, SQL_VARIANT, TABLE) Instead of and for Triggers were introduced as advancement to the DDL. Cascading referential integrity. XML support User defined functions and partition views. In...
We can call an action result in another action result. public ActionResult Action1() { ViewData["OutputMessage"] = "Hello World"; return RedirectToAction("Action2","ControllerName"); //this will go to second action; } public ActionResult...
##= # The variable $Bit will hold either 64 or 32 depending on system architecture # This is used with ${Register::DLL} and ${UnRegister::DLL} # Use this in the beginning of your code. # This snippet should only be used once. # Var Bit System::Call "kernel32::GetCurrentProcess()i.s&quot...
##= # The variable $Bit will hold either 64 or 32 depending on system architecture # This is used with ${Register::DLL} and ${UnRegister::DLL} # Use this in the beginning of your code. # This snippet should only be used once. # Var Bit System::Call "kernel32::GetCurrentProcess()i.s&quo...
I am assuming that you have aware about the some syntax of Kotlin and how to use, just add RecyclerView in activity_main.xml file and set with adapter class. class MainActivity : AppCompatActivity(){ lateinit var mRecyclerView : RecyclerView val mAdapter : RecyclerAdapter = ...
By creating multiple properties files for the different environments or use cases, its sometimes hard to manually change the active.profile value to the right one. But there is a way to set the active.profile in the application.properties file while building the application by using maven-profiles. ...
If you have: class MyExample(val i: Int) { operator fun <R> invoke(block: MyExample.() -> R) = block() fun Int.bigger() = this > i } you can write the following DSL-like code in your production code: fun main2(args: Array<String>) { val ex = MyExample(233) ex ...
interface MyInterface { fun funcOne() { //optional body print("Function with default implementation") } } If the method in the interface has its own default implementation, we can use super keyword to access it. super.funcOne()
When you want the current date and time, you can do this with the Javascript function Date, but will return the following format which isn't always useful: Wed Jun 07 2017 13:26:15 GMT+0200 (Romance (zomertijd)). Copy the following code into app/helpers/helpers.js, and simply call getCurrentDateAnd...

Page 397 of 417