(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.
| package com.willowtreeapps.demo; | |
| import android.app.Activity; | |
| import android.os.Bundle; | |
| import android.view.KeyEvent; | |
| import android.view.Window; | |
| import android.webkit.WebView; | |
| import android.webkit.WebViewClient; | |
| public class MainActivity extends Activity { |
(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.
| <canvas></canvas> | |
| <canvas></canvas> |
| //Web Api Config | |
| private void ConfigureWebApi(IAppBuilder app) { | |
| var config = new HttpConfiguration(); | |
| config.MapHttpAttributeRoutes(); | |
| config.Routes.MapHttpRoute( | |
| name: "DefaultApi", | |
| routeTemplate: "api/{controller}/{id}", | |
| defaults: new { id = RouteParameter.Optional } | |
| ); | |
| config.UserCoreServices(); |
| //Detecting an incoming call coming to an Android device | |
| //Remember to set the appropriate permissions in AndroidManifest.xml as suggested in the Stackoverflow link. | |
| //Usage example in comments. Source: http://stackoverflow.com/a/15564021/264619 | |
| //Explanation: http://gabesechansoftware.com/is-the-phone-ringing/#more-8 | |
| package com.gabesechan.android.reusable.receivers; | |
| import java.util.Date; | |
| import android.content.BroadcastReceiver; | |
| import android.content.Context; |
| var orderPattern = new int[] { 1, 4, 5, 3, 2 }; | |
| var myObject = Enumerable.Range(1, 5).Select(i => new | |
| { | |
| Id = i, | |
| Value = $"Value-{i}" | |
| }); | |
| myObject.Dump("My Original Object"); | |
| var orderedObj = myObject.OrderBy(data => Array.IndexOf(orderPattern, data.Id)).Select(data => data).ToArray(); | |
| orderedObj.Dump("Ordered Object"); |
| var MyMath = (function(){ | |
| // Put your private variables and functions here | |
| return { // Here are the public methods | |
| add:function(a, b){ | |
| return a + b; | |
| } | |
| }; | |
| })(); |
Create and edit an HTML5 table without the use of a library. Uses HTML5's contenteditable and minimal JavaScript.
A Pen by MinChanSike on CodePen.
| Enterprise: NJVYC-BMHX2-G77MM-4XJMR-6Q8QF | |
| Professional: KBJFW-NXHK6-W4WJM-CRMQB-G3CDH | |
| Keys are generic ones. These are the same from MSDN account. | |
| Product Key : -6Q8QF | |
| Validity : Valid | |
| Product ID : 00369-90000-00000-AA703 | |
| Advanced ID : XXXXX-03699-000-000000-00-1032-9200.0000-0672017 |