Make sure everything is up to date.
2. Install Xcode and its "Command Line Tools"
- Go to App Store and install Xcode.
- Open and accept the terms
| package wb.java17; | |
| import java.math.BigInteger; | |
| import java.util.Map; | |
| import java.util.concurrent.ConcurrentHashMap; | |
| public class StaticsInLocalClassesExample { | |
| public static void main(String[] args) { | |
| System.out.println(factorial(120)); |
Make sure everything is up to date.
(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.
| CREATE TABLE IF NOT EXISTS `country` ( | |
| `id` int(11) NOT NULL AUTO_INCREMENT, | |
| `iso` char(2) NOT NULL, | |
| `name` varchar(80) NOT NULL, | |
| `nicename` varchar(80) NOT NULL, | |
| `iso3` char(3) DEFAULT NULL, | |
| `numcode` smallint(6) DEFAULT NULL, | |
| `phonecode` int(5) NOT NULL, | |
| PRIMARY KEY (`id`) | |
| ) ENGINE=MyISAM DEFAULT CHARSET=latin1; |
| #%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", |
| //Minimal configuration needed for Gradle build file with GMetrics integration | |
| apply plugin: 'groovy' | |
| repositories { | |
| mavenCentral() | |
| } | |
| configurations { | |
| gmetrics | |
| } |
| @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 |
| 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; |
| // This is a comparison between Haskell and Groovy based on some simple problems found in the following | |
| // Haskell Introduction: | |
| // http://learnyouahaskell.com/starting-out#ready-set-go | |
| // Ex 1. If we have two lists, [2,5,10] and [8,10,11] and we want to get the products of all the possible | |
| // combinations between numbers in those lists, here's what we'd do. | |
| /* HASKELL */ | |
| [ x*y | x <- [2,5,10], y <- [8,10,11]] |