(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 static io.vavr.API.*; | |
import io.vavr.collection.Iterator; | |
import io.vavr.control.Either; | |
public class FizzBuzz { | |
public static void main(String[] args) { | |
var fizzBuzz = Iterator.from(1).map(i -> |
@Grab(group='com.craigburke.document', module='pdf', version='0.3.1') | |
@Grab(group='com.craigburke.document', module='word', version='0.3.1') | |
@Grab('com.bloidonia:ascii-image:1.1') | |
import com.bloidonia.asciiimage.AsciImageProcessor | |
import java.awt.image.BufferedImage | |
import java.awt.RenderingHints | |
import java.awt.Color | |
import javax.imageio.ImageIO | |
import com.craigburke.document.builder.PdfDocumentBuilder |
#%RAML 0.8 | |
title: World Music API | |
baseUri: http://example.api.com/{version} | |
version: v1 | |
schemas: | |
- halLink: | | |
{ "$schema": "http://json-schema.org/schema", | |
"type": "object", | |
"description": "a Hypertext Application Language link", |
package mongodbdemo.config; | |
import java.util.Locale; | |
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; | |
import org.springframework.context.annotation.Bean; | |
import org.springframework.context.annotation.ComponentScan; | |
import org.springframework.context.annotation.Configuration; | |
import org.springframework.context.support.ReloadableResourceBundleMessageSource; |
(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.
#! /bin/sh | |
# | |
# /etc/rc.d/init.d/logstash | |
# | |
# Starts Logstash as a daemon | |
# | |
# chkconfig: 2345 20 80 | |
# description: Starts Logstash as a daemon | |
### BEGIN INIT INFO |
//Minimal configuration needed for Gradle build file with GMetrics integration | |
apply plugin: 'groovy' | |
repositories { | |
mavenCentral() | |
} | |
configurations { | |
gmetrics | |
} |
<?php | |
function seo($url) { | |
$url = strToLower($url); | |
$url = str_replace( | |
array("á", "é", "í", "ó", "ú", "ñ", "ü"), | |
array("a", "e", "i", "o", "u", "n", "u"), | |
$url); | |
$tokens = preg_split("/[^a-zA-Z0-9]+/", $url); | |
$url = implode("-", $tokens); |