(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.
| import * as t from 'io-ts' | |
| import * as React from 'react' | |
| import { render } from 'react-dom' | |
| type Field = t.StringType | t.NumberType | t.BooleanType | |
| interface Form extends t.InterfaceType<{ [key: string]: Field }> {} | |
| const toReactElement = (f: Form | Field): React.ReactElement<any> => { | |
| // f is a tagged union | |
| switch (f._tag) { | 
| /** | |
| 1. Install the Stylish(https://chrome.google.com/webstore/detail/stylish/fjnbnpbmkenffdnngjfgmeleoegfcffe?hl=en) extension for Chrome. | |
| 2. Open up extension options and paste the CSS mentioned below. | |
| 3. Specify the "URLs on the domain" to be `github.com`. | |
| 4. Add a title and save. | |
| */ | |
| .dashboard-sidebar { | |
| float: right; | |
| padding-right: 10px; | 
| { | |
| {I have|I’ve} been {surfing|browsing} online more than {three|3|2|4} hours today, yet | |
| I never found any interesting article like yours. {It’s|It is} | |
| pretty worth enough for me. {In my opinion|Personally|In my view}, | |
| if all {webmasters|site owners|website owners|web owners} and bloggers made good content as you did, the {internet|net|web} will be {much more|a lot more} useful than ever before.| | |
| I {couldn’t|could not} {resist|refrain from} commenting. | |
| {Very well|Perfectly|Well|Exceptionally well} written!| | |
| {I will|I’ll} {right away|immediately} {take hold of|grab|clutch|grasp|seize|snatch} your {rss|rss feed} as I {can not|can’t} {in finding|find|to find} your {email|e-mail} subscription {link|hyperlink} or {newsletter|e-newsletter} service. | |
| Do {you have|you’ve} any? {Please|Kindly} {allow|permit|let} me {realize|recognize|understand|recognise|know} {so that|in order that} I {may | |
| just|may|could} subscribe. Thanks.| | 
(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.
| { | |
| {I have|I've} been {surfing|browsing} online more than {three|3|2|4} hours today, yet I never found any interesting article like yours. {It's|It | |
| is} pretty worth enough for me. {In my opinion|Personally|In my view}, if all {webmasters|site owners|website owners|web owners} and bloggers made good content as | |
| you did, the {internet|net|web} will be {much more|a lot more} | |
| useful than ever before.| | |
| I {couldn't|could not} {resist|refrain from} commenting. {Very well|Perfectly|Well|Exceptionally well} written!| | |
| {I will|I'll} {right away|immediately} {take hold of|grab|clutch|grasp|seize|snatch} | |
| your {rss|rss feed} as I {can not|can't} {in finding|find|to find} your {email|e-mail} subscription {link|hyperlink} or {newsletter|e-newsletter} service. Do {you have|you've} any? | |
| {Please|Kindly} {allow|permit|let} me {realize|recognize|understand|recognise|know} {so that|in order that} I {may just|may|could} subscribe. | |
| Thanks.| | 
| // Say we have a List of names and we would like to find all those names where "am" occurs: | |
| { | |
| // LINQ | |
| // string[] names = { "Sam", "Pamela", "Dave", "Pascal", "Erik" }; | |
| // List<string> filteredNames = names.Where(c => c.Contains("am")) | |
| // .ToList(); | |
| // Java Streams | |
| // String[] names = {"Sam","Pamela", "Dave", "Pascal", "Erik"}; | |
| // List<String> filteredNames = stream(names) | 
| package main | |
| import ( | |
| "database/sql" | |
| "errors" | |
| "fmt" | |
| _ "github.com/bmizerany/pq" | |
| "os" | |
| "regexp" | |
| "strings" |