Tutorial by Examples

Starter guide is custom navigation that we ordered by ourselves to make topic browsing easier especially for beginner. This navigation is ordered by level of difficulty. Getting Started Installation Laravel Views Blade : Introduction Blade : Variables and Control Structures Or Installation fr...
While in combination with path compression, union by rank nearly achieves constant time operations on union-find data structures, there is a final trick that allows us to get rid of the rank storage altogether by storing the rank in out-of-bounds entries of the parentarray. It is based on the follow...
gradle.taskGraph.whenReady {taskGraph -> if (taskGraph.hasTask(assembleDebug)) { /* when run debug task */ autoIncrementBuildNumber() } else if (taskGraph.hasTask(assembleRelease)) { /* when run release task */ autoIncrementBuildNumber() } }
/*Wrapping inside a method avoids auto incrementing on every gradle task run. Now it runs only when we build apk*/ ext.autoIncrementBuildNumber = { if (versionPropsFile.canRead()) { def Properties versionProps = new Properties() versionProps.load(new FileInputStream(versio...
def versionPropsFile = file('version.properties') def versionBuild /*Setting default value for versionBuild which is the last incremented value stored in the file */ if (versionPropsFile.canRead()) { def Properties versionProps = new Properties() versionProps.load(new FileInputStream(ve...
each and eachWithIndex are methods to iterate over collections. each have it(default iterator) and eachWithIndex have it,index(default iterator, default index). We can also change the default iterator/index. Please see below examples. def list = [1,2,5,7] list.each{ println it } list.ea...
A bracket is considered to be any one of the following characters: (, ), {, }, [, or ]. Two brackets are considered to be a matched pair if the an opening bracket (i.e., (, [, or {) occurs to the left of a closing bracket (i.e., ), ], or }) of the exact same type. There are three types of matched p...
Let's create a new project, I'm choosing Single View Application for better demonstration Drag a page view controller to the storyboard, there are 2 things you should change after that: Set the page view controller as initial view controller Change the transition style to scroll ...
We got the hive2 jars first and made it working on through java to check the connectivity. Then we realized the jars to be used are : hadoop-common-2.7.0-mapr-1703.jar hive-common-2.1.1-mapr-1703-r1.jar hive-jdbc-2.1.1-mapr-1703-r1-standalone.jar If you are using SOLR Cloud then these jars a...
<cfcomponent displayname="myAPI" output="false"> <cffunction name="init" access="public" output="no"> <!--- do some basic stuff ---> <cfreturn this> </cffunction> <cffunction name=&q...
<cfscript> api_request = GetHttpRequestData(); api = createObject("component","myAPI").init(); </cfscript> <cfif api_request.method is 'GET'> <cfoutput>#api.welcome()#</cfoutput> <cfelseif api_request.method is 'POST'> ...
Components and functions variables this local arguments Custom tags attributes thisTag caller Global Scopes Server Application Session Request Scopes request variables form url cgi
std::boolalpha and std::noboolalpha - switch between textual and numeric representation of booleans. std::cout << std::boolalpha << 1; // Output: true std::cout << std::noboolalpha << false; // Output: 0 bool boolValue; std::cin >> std::boolalpha >> bool...
std::ends - inserts a null character '\0' to output stream. More formally this manipulator's declaration looks like template <class charT, class traits> std::basic_ostream<charT, traits>& ends(std::basic_ostream<charT, traits>& os); and this manipulator places charact...
std::ws - consumes leading whitespaces in input stream. It different from std::skipws. #include <sstream> ... std::string str; std::istringstream(" \v\n\r\t Wow!There is no whitespaces!") >> std::ws >> str; std::cout << str; // Output: Wow!There is n...
Getting all serial ports information from Windows is often necessary, you may want to give the user a choice of ports to open, or check if your device is connected. In addition, some ports just cannot be opened using a "COMx" string and need to be opened using a device name. Some older v...
Detailed instructions on getting wsdl set up or installed.
As the powershell is installed by default on every windows system from 7/2008 and above it can be used for more complex calculations: @echo off set "expression=(2+3)*10/1000" for /f %%# in ('"powershell %expression%"') do set result=%%# echo %result% Mind the additional do...
WSH/JScript is installed on every windows system since NT so using it for more complex calculations makes it pretty portable. JScript is easier for combining it with batch file : @if (@codesection==@batch) @then @echo off set "expression=2*(2+3)/1000" for /f %%# in ('cscript //nologo...
Here can be found the most comprehensive math library that emulates pen and paper calculations and allows working with bigger numbers. Here are another examples of pen and paper emulations: ADD , Comparison , Multiply Some math functions implementations can be found here.

Page 1303 of 1336