Tutorial by Examples: c

Donald Knuth is often quoted as saying this: "Programmers waste enormous amounts of time thinking about, or worrying about, the speed of noncritical parts of their programs, and these attempts at efficiency actually have a strong negative impact when debugging and maintenance are considered....
The DeriveFunctor language extension allows GHC to generate instances of Functor automatically. {-# LANGUAGE DeriveFunctor #-} data List a = Nil | Cons a (List a) deriving Functor -- instance Functor List where -- automatically defined -- fmap f Nil = Nil -- fmap f (Cons x xs...
Since Ruby 2.0, Ruby allows to have safer Monkey Patching with refinements. Basically it allows to limit the Monkey Patched code to only apply when it is requested. First we create a refinement in a module: module RefiningString refine String do def reverse "Hell riders" ...
The embed tag is new in HTML5. This element provides an integration point for an external (typically non-HTML) application or interactive content. <embed src="myflash.swf">
Read a 16-bit unsigned integer from input. This function uses the interrupt service Int 21/AH=0Ah for reading a buffered string. The use of a buffered string let the user review what they had typed before passing it to the program for processing. Up to six digits are read (as 65535 = 216 - 1 has ...
Go to the repository you want to create issue for, something like: https://bitbucket.org//<repo_name>/ Go to setting, left bottom corner Select Issue tracker under Issues Select the type of the issue tracker you want to enable (no issue tracking, private or public) Click save Now the ...
Go to the repository, e.g.: https://bitbucket.org/username/repo_name/ On the left menu, choose commits Select the commit you want to add comments to On the selected files related to that commit, click on the small + sign appearing near the line numbers A small window will appear to enter the ...
Channel adapter is one of message endpoints in Spring Integration. It is used for unidirectional message flow. There are two types of channel adapter: Inbound Adapter: input side of the channel. Listen or actively read message. Outbound Adapter: output side of the channel. Send message to Java cla...
Print a number in binary, quaternary, octal, hexadecimal and a general power of two All the bases that are a power of two, like the binary (21), quaternary (22), octal (23), hexadecimal (24) bases, have an integral number of bits per digit1. Thus to retrieve each digit2 of a numeral we simply brea...
Suppose the following matrix is the transition probability matrix associated with a Markov chain. 0.5 0.2 0.3 P= 0.0 0.1 0.9 0.0 0.0 1.0 In order to study the nature of the states of a Markov chain, a state transition diagram of the Markov chain is drawn. \documentclass[12pt...
Go to the repository, e.g.: https://bitbucket.org/username/repo_name/ On the left menu, choose branches On the right side of the branches page, select Create branch A popup window will appear, select Branch from and enter the new branch you want to create in the Branch name textbox Click cre...
Go to the repository, e.g.:https://bitbucket.org/username/repo_name/ On the left menu, choose branches Select the branch you want to delete from the branches page Click on ... at the top right of the page, then click Delete branch A confirmation popup will appear, click Confirm
Salesforce DataLoader Dataloader.io Jitterbit SFXOrgData DreamFactory Monarch Pentaho Kettle Talend
CodeClimate: Cloud Service CodeScan: Cloud Service Clayton.io: Cloud Service VSCode Apex PMD: VS Code extension for realtime static analysis as you code Apex PMD: command line core that runs most the above tools
var pipeline = {}; // (...) adding things in pipeline for(var key in pipeline) { fs.stat(pipeline[key].path, function(err, stats) { if (err) { // clear that one delete pipeline[key]; return; } // (...) pipeline[key].count++; }); } The problem i...
var pipeline = {}; // (...) adding things in pipeline var processOneFile = function(key) { fs.stat(pipeline[key].path, function(err, stats) { if (err) { // clear that one delete pipeline[key]; return; } // (...) pipeline[key].count++; }); }; ...
Some of the Class properties Ext.Data.Connection PropertiesDetailsurlAddress of the requesttimeoutWaiting time in millisecondssuccessReturn on successfailureReturn on failure Ext.Ajax.on("beforerequest", function(conn , options , eOpts) { console.log("beforerequest"); });...
TEST CASE – A test case is a set of conditions and steps that when followed/applied, a tester can determine whether a feature, an application or a software system is working as originally designed. A test case usually contains References to the original task, Pre-conditions ( if the pre-conditions...
Ajax : New request : Client sends request : Server , Do you have new notification ? Server sends response : Client , NO connection ends New request : Client sends request : Server , Do you have new notification ? Server sends response : Client , NO connection ends New request ...
In the official reference document, it says: The main function of an inbound Channel Adapter is to execute a SQL SELECT query and turn the result set as a message. The message payload is the whole result set, expressed as a List, and the types of the items in the list depend on the row-mapping st...

Page 654 of 826