Tutorial by Examples: build

Log into a Google Account and click New > More > Google Forms. Build the form fields required using the editor. If the form was built with an account that is part of an organisation then click on the cog and unselect the option that only members can complete the form. Set the form to save t...
Steps: Generate a Base 64 keyfile for Mongo node authentication. Place this file in chef data_bags Go to chef suppermarket and download docker cookbook. Generate a custom cookbook (e.g custom_mongo) and add depends 'docker', '~> 2.0' to your cookbook's metadata.rb Create an attribu...
If you have: infix fun <T> T?.shouldBe(expected: T?) = assertEquals(expected, this) you can write the following DSL-like code in your tests: @Test fun test() { 100.plusOne() shouldBe 101 }
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...
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 ...
// ember-cli-build.js /* global require, module */ var EmberApp = require('ember-cli/lib/broccoli/ember-app'); module.exports = function(defaults) { var app = new EmberApp(defaults, { // Add options here 'ember-cli-foundation-6-sass': { 'foundationJs': [ ...
Doc is an interface and the Java Print Service API provide a simple implementation called SimpleDoc. Every Doc instance is basically made of two aspects: the print data content itself (an E-mail, an image, a document etc) the print data format, called DocFlavor (MIME type + Representation class...
Sometimes we need to join multiple tables to get aggregate data in return. here is how we can achieve the same using CodeIgniter Query Builder / Active Records. public function getStudentInfo($studentid){ $query = $this->db->select("st.id, st.name, st.class, mk.maths, mk.science&quo...
gradle.taskGraph.whenReady {taskGraph -> if (taskGraph.hasTask(assembleDebug)) { /* when run debug task */ autoIncrementBuildNumber() } else if (taskGraph.hasTask(assembleRelease)) { /* when run release task */ autoIncrementBuildNumber() } }

Page 11 of 11