This section describes each of the services compared in the throwdown and the algorithms/models used.
Decision trees.
| /** | |
| * The basic class syntax. | |
| */ | |
| public class BasicClass { | |
| public BasicClass() { | |
| // This is the constructor. | |
| } | 
| var myImages = ['img/star.png','img/koin.png']; | |
| (function() { | |
| var imageCount = myImages.length; | |
| var loadedCount = 0, errorCount = 0; | |
| var checkAllLoaded = function() { | |
| if (loadedCount + errorCount == imageCount ) { | |
| // do what you need to do. | |
| console.log("laodedddddd"); | 
| from flask import Flask, json, request | |
| app = Flask(__name__) | |
| @app.route('/') | |
| def api_root(): | |
| return 'Welcome' | |
| @app.route('/hello') | |
| def api_hello(): | |
| if 'name' in request.args: | 
| (ns topoged.model.type | |
| (:import | |
| (javax.persistence Entity Id Column Table GeneratedValue) | |
| )) | |
| (definterface IType (getId [])) | |
| (deftype | |
| ^{Entity {} Table {:name="TYPE"} org.hibernate.annotations.Entity {:mutable false}} | |
| TypeX [^Long id] | 
| backend default { | |
| .host = "app.rhcloud.com"; | |
| .port = "80"; | |
| } | |
| sub vcl_recv { | |
| set req.http.host = "app.rhcloud.com"; | |
| if (req.http.cache-control ~ "no-cache") { | 
| if(typeof Math.imul == "undefined" || (Math.imul(0xffffffff,5) == 0)) { | |
| Math.imul = function (a, b) { | |
| var ah = (a >>> 16) & 0xffff; | |
| var al = a & 0xffff; | |
| var bh = (b >>> 16) & 0xffff; | |
| var bl = b & 0xffff; | |
| // the shift by 0 fixes the sign on the high part | |
| // the final |0 converts the unsigned value into a signed value | |
| return ((al * bl) + (((ah * bl + al * bh) << 16) >>> 0)|0); | |
| } | 
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| { | |
| "format_version": "1.0", | |
| "generated_by": "cytoscape-3.1.1", | |
| "target_cytoscapejs_version": "~2.1", | |
| "data": { | |
| "selected": true, | |
| "__Annotations": [ "" ], | |
| "shared_name": "main_islands_japan(1)", | |
| "SUID": 20760, | |
| "name": "tokyo_only" |