This is a summary of the "Learn You A Haskell" online book under http://learnyouahaskell.com/chapters.
- Haskell is a functional programming language.
 
| // I did this in Chrome... | |
| // | |
| // Go to https://www.facebook.com/ads/preferences/ | |
| // Click the "Advertisers" section to open it up. | |
| // Click "See more" once | |
| // Before doing anything else, just keep clicking space bar to trigger the "see more" button | |
| // Do this for a bit until all the advertisers are loaded | |
| // then run this below in the dev tools console... | |
| // (It will take a few minutes, depending how many you have, and your browser may lock up, but once it's done you will see it auto clicked the "remove" X in the top right for all of them) | 
| import java.io.ByteArrayOutputStream | |
| import java.io.File | |
| import java.nio.charset.StandardCharsets.UTF_8 | |
| import java.util.zip.GZIPInputStream | |
| import java.util.zip.GZIPOutputStream | |
| fun gzip(content: String): ByteArray { | |
| val bos = ByteArrayOutputStream() | |
| GZIPOutputStream(bos).bufferedWriter(UTF_8).use { it.write(content) } | |
| return bos.toByteArray() | 
This is a summary of the "Learn You A Haskell" online book under http://learnyouahaskell.com/chapters.
It's now here, in The Programmer's Compendium. The content is the same as before, but being part of the compendium means that it's actively maintained.
(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 org.gradle.api.Plugin | |
| import org.gradle.api.Project | |
| import org.gradle.api.artifacts.Configuration | |
| import org.gradle.api.file.FileTreeElement | |
| import org.gradle.api.internal.file.FileResolver | |
| import org.gradle.api.internal.tasks.DefaultScalaSourceSet | |
| import org.gradle.api.plugins.JavaBasePlugin | |
| import org.gradle.api.plugins.JavaPluginConvention | |
| import org.gradle.api.reporting.ReportingExtension | |
| import org.gradle.api.tasks.ScalaRuntime | 
This tweaks the darcula IntelliJ theme to better match the solarized color scheme found here https://github.com/jkaving/intellij-colors-solarized
To enable, after installing the color scheme linked above set your theme to darcula.
Preferences -> Appearance -> Theme -> Darcula
Exit IntelliJ then add the tweaked darcula properties file to the idea.jar file with the following command
jar -ufv idea.jar com/intellij/ide/ui/laf/darcula/darcula.properties 
| (defroutes app | |
| (GET "/" [] "<h1>Index route</h1>") | |
| (route/not-found "<h1>Page not found</h1>")) | |
| (defn fake-request [routes uri method & params] | |
| (let [localhost "127.0.0.1"] | |
| (routes {:server-port 80 | |
| :server-name localhost | |
| :remote-addr localhost | |
| :uri uri | 
| #!/usr/bin/env ruby | |
| # encoding: utf-8 | |
| SILENT = ENV['SL_SILENT'] =~ /false/i ? false : true || true | |
| VERSION = '2.2.23' | |
| # SearchLink by Brett Terpstra 2015 <http://brettterpstra.com/projects/searchlink/> | |
| # MIT License, please maintain attribution | |
| require 'net/https' | |
| require 'uri' | 
| import android.content.Context; | |
| import android.text.SpannableStringBuilder; | |
| import android.text.Spanned; | |
| import android.util.AttributeSet; | |
| import android.util.Log; | |
| import android.widget.TextView; | |
| import com.github.jobs.BuildConfig; | |
| import java.util.ArrayList; | |
| import java.util.List; |